Search in The Electromania's Blog

Sunday, 29 November 2015

ESP8266 ESP-12E nodemcu 1.0 SPI OLED Display 128x64 on using U8Glib with esplorer a Non-Arduino IDE

After several days of struggle...finally managed to get 4pin SPI OLED display running on ESP8266  ESP-12E nodemcu 1.0 dev. kit, using esplorer, a Non-Arduino IDE.

The beginning of fun with powerful ESP8266  ESP-12E nodemcu 1.0 Wifi dev kit.



Please note, the display arrived with pin markings that are different than those shown on their website.

 Pin connections between ESP8266-12E  and SPI OLED display
     -- D3 pin of ESP to RES pin of Display
     -- D4 pin of ESP to DC pin of Display
     -- D5 pin of ESP to SCL pin of Display  Hardware SPI CLK  = GPIO14
     -- D7 pin of ESP to SDA pin of Display  Hardware SPI MOSI = GPIO13



--** Same pin out can be used to run the default U8Glib library graphics code available here.

ESP8266 ESP-12 Nodemcu dev kit V 1.0-
http://eu.banggood.com/Wholesale-Warehouse-NodeMcu-Lua-ESP-12E-WIFI-Development-Board-wp-Uk-985891.html 

Display- 0.96 inch 4 pin SPI OLED display with 64x128 resolution
http://eu.banggood.com/Wholesale-Warehouse-0_96-Inch-White-IIC-I2C-OLED-Display-Module-12864-LED-For-Arduino-wp-Uk-932606.html


Note- I dont get any royalty from banggood for these projects, I mention this because it makes easy for you all to understand exactly which make electronic device I am using and how to make it work :). I noticed every make has different pin markings.

Monday, 23 November 2015

Arduino Due and OLED Display using U8GLIB library in SPI mode


Getting started with 0.96 Inch 128x64 White SPI OLED Display Module from Banggood using U8GLIB library on Arduino Due.


Thanks to 32bit microcontroller of Arduino Due, the rendering of animation is superfast, compared to previous 8bit Arduino board versions.



U8GLIB  Universal 8bit Graphics Library https://github.com/olikraus/u8glib/ 

Sketch/code for above quick project is available on my GitHub page here
 
//I used following pin connections, you can use any other free pins of your board but make sure to use same pin numbering while calling the constructor in main code.
// 13 - SCL    or   CLK   13
// 11 - SDA    or   MOSI  
// 8  - RES     or   RESET 8
// 7  - DC       or   DC    7
// 10 - keep open

// U8GLIB_SSD1306_128X64 u8g(13, 11, 10, 9, 8);    //constructor used to call display



Display purchased from banggood.com
http://eu.banggood.com/Wholesale-Warehouse-0_96-Inch-White-IIC-I2C-OLED-Display-Module-12864-LED-For-Arduino-wp-Uk-932606.html

Contact Electromania

Name

Email *

Message *