YOU NEED
- Any 40 pin GPIO Pi model
- An Explorer HAT Pro from Pimoroni
- 3 x Male to male jumper wires
- 10K Ohm Resistor (Brown-BlackOrange-Gold)
- 10K Potentiometer Small DC motor
- An internet connection
- Get the code: https://github. com/lesp/ LXF271-NodeRED-Explorer HAT/archive/ main.zip
The Explorer HAT has been the star of a few tutorials in your favourite Linux magazine, but we’ve always used it with Python. Yet did you know that we can also use it with Node-RED? This is an event-driven programming language used for Internet of Things and embedded projects. In this month’s tutorial we shall control an Explorer HAT and use it to trigger actions.
With the Raspberry Pi turned off, connect the Explorer HAT Pro to all of the GPIO pins so that it fits neatly on top of the Pi. In the breadboard place the potentiometer so that it points away from the board. Looking from the rear, connect the left pin of the potentiometer to the 5V connection on Explorer HAT. The centre pin goes to Analog 1, and the right pin to GND. Between the GND and centre pin place the 10K resistor so that the centre pin and GND are connected. This will pull the centre pin and the output pin down to GND, ensuring that we obtain the cleanest signal possible.
Connect your accessories to the Pi and power on the Raspberry Pi to the desktop.
Install the library
Diese Geschichte stammt aus der January 2021-Ausgabe von Linux Format.
Starten Sie Ihre 7-tägige kostenlose Testversion von Magzter GOLD, um auf Tausende kuratierte Premium-Storys sowie über 8.000 Zeitschriften und Zeitungen zuzugreifen.
Bereits Abonnent ? Anmelden
Diese Geschichte stammt aus der January 2021-Ausgabe von Linux Format.
Starten Sie Ihre 7-tägige kostenlose Testversion von Magzter GOLD, um auf Tausende kuratierte Premium-Storys sowie über 8.000 Zeitschriften und Zeitungen zuzugreifen.
Bereits Abonnent? Anmelden
Create your first WebSocket service
Mihalis Tsoukalos explains how to use the Go programming language to work with the WebSocket protocol.
Fantastic Mr Firefox
Nick Peers takes a trip down memory lane to reveal the story behind the rise - and slight fall - of Mozilla's popular web browser.
Set up your terminal and email like it's 1983
Jump in the hot terminal time machine with Mats Tage Axelsson who emails from the command line using the latest technology.
Universal layer text effects with GIMP
Posters use them, films and presentations are hard to imagine without them: text effects. Attract attention with Karsten Günther and GIMP.
Jump to a federated social network
Nick Peers reveals how you can get up and running with this free, decentralised and non-profit alternative to Twitter.
Free our SOFTWARE!
Taking anything for granted is dangerous, so Jonni Bidwell and Mike Saunders revisit how the free software movement got started to help free us from proprietary tyranny!
Master RPI.GPIO
Les Pounder goes back to the early days of the Raspberry Pi - and his career with this classic library! -
Waveshare Zero to Pi3
Transform your Pi Zero into a Pi 3, they promised Les Pounder, but it's more like adding on go-faster stripes.
The Best OPEN SOURCE Software Ever!
In an attempt to trigger controversy, Michael Reed and Neil Mohr unequivocally state these are the greatest free software apps ever. Probably. We’re just trying to be helpful.
Linux-Mandrake 7
Simplicity and a wide range of applications make this a great distribution for all Linux users.