[Swlug] Raspberry Pi and Python - just a hello

Colin Law clanlaw at gmail.com
Fri Jan 21 21:36:11 UTC 2022


On Fri, 21 Jan 2022 at 01:00, Rhys Sage via Swlug
<swlug at mailman.lug.org.uk> wrote:
>
> Colin. That Node-red looks interesting. Can it handle multiple inputs and outputs from multiple boards using a board expander? I have a servo hat, a GPS mouse, altimeter/pressure sensor/temperature sensor thingy and a few other gizmos that will all have to be run simulteneously to put together an operational single-engine wingbourne drone.
>

Generally, yes, it can handle pretty much anything.  Some stuff comes
with libraries (often Python) and if node-red can't easily talk to it
directly then it can run a python script to get the data, either
running it when required or via a long-running service which
communicates back to node red using something like MQTT, which is
almost trivial to use both in node-red and in python.  If you don't
know about MQTT then it is a great way to communicate between
processes or systems across a network, or even across the internet.
Have a look at https://www.hivemq.com/mqtt-essentials/


Colin



More information about the Swlug mailing list