Jetbot - PiOLED access

Hi Guys,
I’ve successfully built Jetbot from the NVIDIA Example project https://github.com/NVIDIA-AI-IOT/jetbot/wiki

As part of the build we’ve installed the Adafruit PiOLED 128x32 screen.
Has anyone managed to make changes to the screen?

I found Adafruits Python scripts, however i cant seem to find the device and the guide is for RPi

Any helpful pointers would be very much appreciated!

Hi primiq, glad to hear you built your JetBot!

The PiOLED is used by this code in the JetBot repo: https://github.com/NVIDIA-AI-IOT/jetbot/blob/master/jetbot/apps/stats.py

This Python code imports the Adafruit_SSD1306 driver library to drawing text to the display.

This code should be configured to run as a service on your JetBot’s Jetson Nano, so it should start updating text after boot. If not, try running this create_stats_service.py script which should configure it to run as a service: https://github.com/NVIDIA-AI-IOT/jetbot/blob/master/jetbot/utils/create_stats_service.py

If you continue to have issues with it, recommend posting an issue on the JetBot GitHub to get connected with our devs there.

1 Like

Hi dusty!

Thanks very much for your reply!

I was close with importing Adafruit manually i think! I was missing the gpio=1 and kept getting platform error.
disp = Adafruit_SSD1306.SSD1306_128_32(rst=None, i2c_bus=1, gpio=1) # setting gpio to 1 is hack to avoid platform detection

For anyone else who used the image prepared for the Jetbot project, for me the service was using stats.py from here : /usr/local/lib/python3.6/dist-packages/jetbot-0.3.0-py3.6.egg/jetbot/apps/
And the service is called jetbot_stats

Cant wait to use the screen a bit more now ! :)

Thanks !

Hi,

Seeed Studio just announced that the Grove.py python library for Grove devices support Nvidia Jetson nano now.

And a Demo using an OLED showing Temperature and humidity information, Demo code can be found here. https://github.com/Seeed-Studio/grove.py/blob/master/grove/grove_oled_display_128x64.py

Nice! Thanks for sharing this elainedan!