There I was, messing about with GPIO pins on my Raspberry Pi 3 B+ recently and as usual could not remember the pin numbers. I stumbled on this image below - thanks to @pinout for this handy Raspberry Pi connector layout (see link to Raspberry Pi site further down) and to readers for links for prototyping boards. Indeed this started as a simple entry and is rapidly filling up with REALLY useful content and comments.
Anyone not familiar with this should note that on the PI, I2C when used, usually works with BCM pins 2 and 3 (real pins 3 and 5) and unlike some other boards used as i2c masters, you don’t need pull-up resistors. I thought I may as well pin the connector here rather than on a piece of paper I’ll likely lose.
I’ve just been setting up an I2c display (128x64 pixel SSD1306) on my Pi software, running “the script” to control various IOT (ESP8266) devices. The display runs under Node-Red but this is merely turning the display on and off, the controlling software is a little Python program (Node-Red is accessing the display via an “exec” node).
Meanwhile I’ve added a couple of indicator LEDs using BCM pins 17 and 18. Normal Raspberry Pi indicators are OK in a transparent box, not much use in a non-transparent plastic case of course. It did occur to me that I’ve never seen a Node-Red node or function code to run an SSD1306-based display directly in Node-Red. Anyone out there done this?
How about some command-line parameter driven C code (for speed – as both NR and Python are interpreters). I have some such code running on ESP-GO on the ESP8266 but not on the Raspberry Pi.
I’ve been brushing up on my (pretty basic knowledge of) Python to get that handy (and cheap) display on the Pi. Note those SSD1306 OLED boards cost a wopping £1.60 or thereabouts from AliExpress. Why pay more.. Depending on your code, up to 8 lines of clearly readable text. The “up” line uses a Python built-in function to return the board up-time in a readable form – no effort involved.
And as you can see, the comments section is rapidly filling up with RPI adaptor plates and boards... this entry is going to be a useful resource. Thanks to all of you – and in particular Darren and Antonio this morning for triggering me off – MORE prototyping boards – here’s another AliExpress link.
Raspberry Pi 3 Prototyping Board, compatible B+/A+ Model HAT Hole Plate Prototyping Board https://tech.scargill.net/yourls/morepiboards
On the subject of pinouts – see this useful page and resource on the Raspberry Pi website: https://www.raspberrypi.org/documentation/usage/gpio/
Command-line command “pinout” for example. Thanks for that, Antonio.
This caught my attention: Keyestudio LED Traffic Light Module 5V (Black and Eco friendly) For Arduino/Raspberry Pi https://tech.scargill.net/yourls/trafficlight
I just ordered some of these… even cheaper – 72p inc post. Mini 5V Traffic Light LED Display Module for Arduino Red Yellow Green 5mm https://tech.scargill.net/yourls/ledtraffic