OLED & Arduino Heaven

I had posted some images online of some prototypes that I had been working on, and Marcelo Souza commented about trying an OLED. I had thought about it before but the ones I had looked at (or even ordered to play around with) all were relatively expensive if I wanted to incorporate it – but the display I was using, an LCD, was taking up a lot of space, both in size and in number of ports – so I decided to have a look.

The OLED is sold from Mike Rankin (Miker) through the Tindie shop, and it’s so fantastic – on the site he’s said “I used to buy these little displays off ebay but the price kept climbing so I decided to create my own.” and he has created brilliant tiny OLEDs at a great price! There are two versions, and I bought them both because I want to try them in different projects. The main selling point for me aside from the price was that there are only 2 wires I’d need to connect to my board – this was fantastic compared to the line to a 10K pot, and all the data lines connected. (dimensions are 26.7mm from right to left, 26mm from top to bottom and 5mm thick)

So, if you are newer to electronics or not too sure where to start here is where I went to get this up and running:

tindieOLEDYou’ll need to solder the pins (which are provided) or, I soldered to stranded wire because my project isn’t using a breadboard and need flexibility.

I downloaded the test code provided by Mike Rankin, from his site {I have put the zip here incase OLED_Test_Code }

I also headed over to Adafruit who are genius at tutorials and explaining how to do things, and why do them, they have some great information about the wiring up and hook up depending on your board. Wiring OLEDs. This was the important bit for me:

Connect the pins to your Arduino
  • GND goes to ground
  • Vin goes to 5V
  • Data to I2C SDA (on the Uno, this is A4 on the Mega it is 20 and on the Leonardo digital 2)
  • Clk to I2C SCL (on the Uno, this is A5 on the Mega it is 21 and on the Leonardo digital 3)
  • and RST to digital 4 (you can change this pin in the code, later)

That details where to put those two connections, so for the Uno that I used to test it, meant that it was A4 & A5 that would need connecting.