Introduction: OLED Name Tag Using XinaBox and Arduino
I built this little OLED name tag for events. It's really cool and can impress who-ever you meet. All built using XinaBox xChips.
Step 1: Things Used in This Project
Hardware components
- XinaBox OD01 xChip x 1
xChip 128x64 Pixel OLED Display - XinaBox PB02 xChip x 1
CR2032 Coin Cell Battery Power - XinaBox CC03 xChip x 1
xChip 32-bit ARM® Cortex®-M0+ processor - XinaBox IP03 xChip x 1
xChip interface for SWD, JTAG and SPI programmers with USB port - XinaBox XC10 xBUS Connector x 1
xBUS connectors - XinaBox - XC55 x 1
- CR2032 Coin Cell Battery x 1
- Lapel Badge Magnet or Similar x 1
Software apps and online services
Step 2: Story
Intro
I built this OLED Name Tag using XinaBox xChips. It is a very simple, quick build with straight forward software. The XinaBox technology made this project extremely easy to do in under 10 minutes. Uses very low power (less than 4 mA) since it has no running MCU. MAGIC!
This is so I don't forget my own name ;)
Step 3: What You Will Need
Apart from the set of xChips, you will need Arduino installed and the following libraries.
- Arduino M0 Board Driver from Arduino Board Manager
- xCore (XinaBox Library)
- xOD01 (XinaBox Library)
Step 4: Programming the CC03
Click in an IP03 xChip onto the CC03 using an XC10 and XC55 connector and plug into a USB port on your computer via micro-USB cable. Connect as shown in the picture below. Open Arduino and select the correct COM port. Under Tools select Board: "Arduino M0", then upload the sketch, which I will provide in the code section of this page.
Programming the CC03
Step 5: Building It
Click, click click, DONE!. The xChips make it very easy, simply click them together with the XC10 connectors. The only thing to bare in mind, the small XinaBox logos with chip name must all face the same direction, the bus at the top and bottom of the board are NOT the same. Then put a CR2032 into the back of the PB02 for power. When you're finished it will look something like the picture below.
xChip Assembly Complete
Now if you want to mount it on your shirt, you will need to mount a badge magnet on the back of the device using some sticky tape or something of the like. Look at how I did it below.
Badge Magnet mounted on back of OD01
Step 6: Running It
Switch on at the power switch of the PB02. Pull out the CC03 after the text is displayed and VIOLA! Mount it on your shirt and have fun with it! The completed name tag uses less than 4 mA to operate, so you can expect about 55 hours of operation out of a CR2032 coin cell battery.
Step 7: Code
OD01 Name Tag Arduino
This code is used in an Arduino sketch (.ino file) to run the project.
#include <xCore.h> #include <xOD01.h> void setup() { // Start I2C bus Wire.begin(); // Start OLED OLED.begin(); //Print your name on the tag print_name("BEN DIXON"); } void loop() { //Nothing needed here } void print_name(String your_name) { //Clears the OLED to take away anything previously displayed. OD01.clear(); //Set to large font size and print first line OD01.set2X(); OD01.println("HELLO"); //Print next line OD01.println("my name is"); //Set to smaller font size to print a space OD01.set1X(); OD01.println(); //Set to large font size and print name OD01.set2X(); OD01.println(your_name); }
Comments