Difference: OledShield (1 vs. 3)

Revision 32019-05-17 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WeMosD1Mini"

The OLED shield

Line: 7 to 7
 wemosOled.png

Programming the shield

Changed:
<
<
The shield uses an SSD1306 OLED dot matrix controller which is accessed through the I2C bus. In order to see if we can access the chip we can first run a little program scanning the I2C bus and showing all uses I2C addresses:
>
>
The shield uses an SSD1306 OLED dot matrix controller which is accessed through the I2C bus. In order to see if we can access the chip we can first run a little program scanning the I2C bus and showing all uses I2C addresses:
  i2cscan.png

This shows us that the module must be accesses on I2C address 0x3c. The code of the i2c scanner can be found here:

Changed:
<
<
https://afnog.iotworkshop.africa/pub/AFNOG/OledShield/i2cScan.py.txt
>
>
https://github.com/uraich/MicroPython_IoTDemos/blob/master/drivers/i2c/i2cScan.py

The Cayenne client may use the OLED display. It first checks if it is connected and if yes it print information about the network state. This is particularly useful if the WeMos D1 mini runs on battery and there is no connection to the PC where state information can be displayed.

oled.png

  -- Uli Raich - 2019-03-22
Line: 24 to 28
 
META FILEATTACHMENT attachment="wemosOled.png" attr="" comment="" date="1553264469" name="wemosOled.png" path="wemosOled.png" size="312701" user="UliRaich" version="1"
META FILEATTACHMENT attachment="i2cscan.png" attr="" comment="" date="1553346279" name="i2cscan.png" path="i2cscan.png" size="29037" user="UliRaich" version="1"
META FILEATTACHMENT attachment="i2cScan.py.txt" attr="" comment="" date="1553346407" name="i2cScan.py.txt" path="i2cScan.py.txt" size="839" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="oled.png" attr="" comment="" date="1558109230" name="oled.png" path="oled.png" size="342325" user="UliRaich" version="1"

Revision 22019-03-23 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WeMosD1Mini"

The OLED shield

This shield features a 64x48 pixel OLED display. We would normally not connect it as IoT sensor but it comes it handy to display the state of out WeMos sensor node, especially when running from battery and without a serial connector to the PC.

wemosOled.png

Added:
>
>

Programming the shield

The shield uses an SSD1306 OLED dot matrix controller which is accessed through the I2C bus. In order to see if we can access the chip we can first run a little program scanning the I2C bus and showing all uses I2C addresses:

i2cscan.png

This shows us that the module must be accesses on I2C address 0x3c. The code of the i2c scanner can be found here:

https://afnog.iotworkshop.africa/pub/AFNOG/OledShield/i2cScan.py.txt

  -- Uli Raich - 2019-03-22
Line: 13 to 22
 
<--/commentPlugin-->

META FILEATTACHMENT attachment="wemosOled.png" attr="" comment="" date="1553264469" name="wemosOled.png" path="wemosOled.png" size="312701" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="i2cscan.png" attr="" comment="" date="1553346279" name="i2cscan.png" path="i2cscan.png" size="29037" user="UliRaich" version="1"
META FILEATTACHMENT attachment="i2cScan.py.txt" attr="" comment="" date="1553346407" name="i2cScan.py.txt" path="i2cScan.py.txt" size="839" user="UliRaich" version="1"

Revision 12019-03-22 - UliRaich

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WeMosD1Mini"

The OLED shield

This shield features a 64x48 pixel OLED display. We would normally not connect it as IoT sensor but it comes it handy to display the state of out WeMos sensor node, especially when running from battery and without a serial connector to the PC.

wemosOled.png

-- Uli Raich - 2019-03-22

Comments

<--/commentPlugin-->

META FILEATTACHMENT attachment="wemosOled.png" attr="" comment="" date="1553264469" name="wemosOled.png" path="wemosOled.png" size="312701" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback