Tuesday, July 26, 2016

Filled Under: , , ,

OLED I2C analogPin dynamic plotting

Arduino UNO R3 easy oled project

Cool project to begin with OLED 128x64 work, done with a twisted logic to fix the refresh flashing screen.





Step 1: What You Need?



1 x Arduino Breadboard 5V 3.3V Power Supply Module (for OLED)



Don't have components? Don't worry. Just click the component's name. 


Step 2: Build Your Circuit.



Step 3: Download The Library & Upload The Code.



You need to download the libraries needed in the code below and uncomment one #define thing at the <Adafruit_SSD1306.h>

We comment the 128x32 define line and uncomment the 128x64 define line because our screen has 128x64 pixels of definition

Your library should end like that



Short scheme of how are the pixels maped in our screen:

The origin of coordinates is for some silly reason located on the top left of the screen and our function display.drawFastVLine cant draw negative heights so we are going to play with the cursor point along with the databar height



Step 4: Test Your Circuit.


Unknown

Author & Editor

My Robot Education Sdn. Bhd. (Robotedu.my) was founded in 2015 as the first robotics education centre in Malaysia to provide Arduino-based robotics courses for youths. Our vision is to be able to provide robotics education to every youth in Malaysia.

0 comments:

Post a Comment

 

  • Copyright © Arduino Tutorial ™ is a registered trademark.
    Designed by Templateism. Hosted on Blogger Templates.