element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Geeky Gadgets
  • Challenges & Projects
  • Project14
  • Geeky Gadgets
  • More
  • Cancel
Geeky Gadgets
Blog Project Portfolio Badge
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Geeky Gadgets to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fvan
  • Date Created: 14 Jun 2017 10:40 AM Date Created
  • Views 7604 views
  • Likes 18 likes
  • Comments 12 comments
  • epaper
  • raspberrypi
  • rpiexpert
  • pisupply
  • papirus
  • pizero
  • ggadgetsch
Related
Recommended

Project Portfolio Badge

fvan
fvan
14 Jun 2017

This is a quick project I cobbled together only days before the Pi Party. It's an epaper badge showing my name and information, but also a slideshow of my recent Pi projects. A portable portfolio and business card, if you will. Geeky and semi useful?

 

image

 

  • Hardware
  • Software
    • Code
  • Video

Hardware

 

The following hardware components are used in this project:

  • Raspberry Pi Zero / Pi Zero W
  • 8GB microSD card
  • Pimoroni Zero LiPo
  • Pimoroni 2200mAh Lithium Ion battery
  • Pi-Supply PaPiRus 2.7"
  • Adafruit M2.5 Standoffs (4x)

 

Because the Zero LiPo is not stack-compatible with the PaPiRus display (the JST connector bumps into the RTC battery), I soldered the power connection to the Pi Zero using some ribbon wire. A switch connected to the Zero LiPo's EN and GND pins makes it possible to turn the power on and off without having to disconnect the battery.

 

image

 

A 3D printed plate allows me to fasten all components using spacers, and includes two "ears" with rings to attach a lanyard to. A slot at the top prevents the backside of the GPIO pins from bumping into the plate and some slots at the bottom are used to fasten a battery using zipties or velcro straps.

 

image

 

The 3D model for the plate can be found on thingiverse: http://www.thingiverse.com/thing:2175935

 

Software

 

As with most projects, the Pi needs to be set up first. I've written a guide on how to do this easily without the need to connect a screen or keyboard: Headless Raspberry Pi Setup with Raspbian Jessie

 

image

 

Once the basic setup is taken care of, a few additional things need to be done. The first one is to enable SPI and I2C. This can easily be done using the "raspi-config" utility, and using menu 5 "Interfacing Options".

 

Next, is the installation of the PaPiRus software, which has improved quite a bit since the last time I used it. Only two commands are required:

  • installation of the software:

    curl -sSL https://goo.gl/i1Imel | sudo bash

  • configuration of the display size:

    sudo papirus-set [1.44 | 1.9 | 2.0 | 2.6 | 2.7 ]

 

Finally, to be able to display images on the PaPiRus, some conversions are required. GIMP can make these conversions easily and is available for free for Windows, Linux and OSX. I found the "threshold" function to be the best way to create a good black and white image.

 

image

 

Following steps need to be taken:

  • resize images to resolution of display: 2.7" = 264x176
  • use threshold function to find the right balance between black and white (Colors > Threshold)
  • convert to 1-bit color scheme (Image > Mode > Indexed > 1-bit palette)
  • save as *.bmp (where * is a number starting at 0, so "0.bmp" then "1.bmp", etc ...)

 

Using SCP, upload all converted images to a folder of your choice onthe Pi:

scp *.bmp pi@<hostname>.local:images/

 

The images can now be used by the PaPiRus.

 

Code

 

A folder containing 1-bit black and white pictures is read by the script. The script then waits for button presses in order to display the desired image(s). In my case, the buttons have been programmed to perform following actions:

  • button 1 displays a single image, my logo
  • button 2 displays a single image, my social links
  • button 3 cycles through all my project photos, changes on every press of the button
  • button 4 cycles through all images automatically (logo, links & projects), as a slideshow

 

Upload the code to the Pi using SCP and ensure it is run at boot time using a cron job:

sudo chmod +x /home/pi/ebadge.py

 

sudo crontab -e  

... 
# m h  dom mon dow   command 
@reboot sudo /home/pi/ebadge.py

 

The full code can be found below:

 

Video

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply

Top Comments

  • gadget.iom
    gadget.iom over 8 years ago +5
    Nice project. Looking forward to the video. Judging by the battery and the red and black wires I would strongly advise not travelling on public transport while wearing it, based on this guys experience…
  • fvan
    fvan over 8 years ago in reply to carmelito +4
    Indeed, and the Inky pHAT ( https://shop.pimoroni.com/collections/new-products/products/inky-phat ) seems like a neat upgrade: red/black/white ePaper
  • fvan
    fvan over 8 years ago in reply to gadget.iom +3
    Thanks gadget.iom ! Yeah, it's one of those projects I put in the suitcase at home, and doesn't leave it until on site, where people understand what it is
  • fvan
    fvan over 8 years ago in reply to ninjatrent

    Thanks Trent!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ninjatrent
    ninjatrent over 8 years ago

    Great idea. It is good to see a practical use like this for an ePaper display. Your logo is a great touch.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fvan
    fvan over 8 years ago in reply to carmelito

    Indeed, and the Inky pHAT (https://shop.pimoroni.com/collections/new-products/products/inky-phat ) seems like a neat upgrade: red/black/white ePaper image

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • carmelito
    carmelito over 8 years ago

    Awesome project. This is something that I am going to try and implement soon, ideal if your going to a conference and should serve as a great ice breaker.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fvan
    fvan over 8 years ago in reply to mcb1

    Wow, 2 years, that's impressive!

     

    Yeah, have a try, hope it works for your badge as well!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube