Adding OLED with I2C onto AE-CLOUD1 Board with Michael Li Tutorial

I had the very pleasant experience of going through Michael Li's excellent guide I2C Tutorial for Renesas S5D9 board: Show Temperature Reading on an OLED Display.

Standalone use with rechargeable battery.

The I2C Grove connector closest to the USB port

Michael's tutorial grabs the temperature data from the AMS EN210 sensor that is built into the board. Both the temperature and the display are handled with I2C. 

Like many of these projects, the main barrier is that you need to order the OLED module.  This is a good-quality 0.96" yellow and blue OLED module with 128x64 pixels.  It cost $16.99 on Amazon.com for 2 modules. http://a.co/5vPbzdU

After sitting on my behind for far too long, I finally decided to order the modules. It took only a few days to arrive.

The modules came in seals anti-static packaging. Both sealed packages came in a single cardboard box and the box was in a bubble wrap envelope. The 4 pin leads of the module came in foam and the display had a plastic wrap. Both modules arrived undamaged. The modules came with zero cables.

To build this project, you'll need a grove cable. I think most people have a breadboard and some spare wires, so that should be no problem. You can connect the wires directly to the LCD module and don't need a breadboard, but I think the breadboard makes the project easier to work on.

 

The only challenge I ran into is that I didn't look at the schematic correctly and reversed the SDA data and SCL serial clock pins.

Michael helped me out with the correct wiring.


Grove Pin 4 (black) = Ground
Grove Pin 3 (red) = VCC
Grove Pin 2 (white) = SDA, Data (correct position)
Grove Pin 1 (yellow) = SCL, Serial Clock (correct position)

Michael actually had the schematic in his tutorial, but I blazed right past it and didn't see that SDA1 goes to J4 pin 2.

 

The full code for Michael's tutorial is available in his GitHub repo.