Phil Speed
Published © GPL3+

Remotely Control GPIO Pins on the RPIzw Using Only Node-RED

Go from a blank SD card to wireless control of the GPIO pins on the RPI z w using Node-RED. No Python code or cloud service needed.

IntermediateFull instructions provided3 hours3,658
Remotely Control GPIO Pins on the RPIzw Using Only Node-RED

Things used in this project

Hardware components

Adafruit raspberry pi zero w (with headers)
×1
Adafruit USB A to Micro-B 3 ft long
×1
Adafruit Super bright white led
×1
Adafruit MicroSD Memory Card 16GB
×1
Adafruit Resistor 100 ohm
×1
Adafruit Tiny breadboard
×1
Adafruit Premium male/female jumper
×1

Story

Read more

Schematics

Raspberry Pi Zero W to Led

Simple circuit controlled remotely by Node-red

Code

Simple Node-red LED Controller

Plain text
This flow must be imported to Node-red
[{"id":"d411d61e.b5f","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"f3df5e1f.bfddf8","type":"rpi-gpio out","z":"d411d61e.b5f","name":"","pin":"32","set":"","level":"0","freq":"","out":"pwm","x":300,"y":240,"wires":[],"icon":"node-red/light.svg"},{"id":"11c135c8.8f58a2","type":"ui_button","z":"d411d61e.b5f","name":"","group":"7f6ce92c.287418","order":1,"width":0,"height":0,"passthru":false,"label":"on button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"100","payloadType":"num","topic":"","x":100,"y":100,"wires":[["f3df5e1f.bfddf8"]]},{"id":"ebe37914.930738","type":"ui_button","z":"d411d61e.b5f","name":"","group":"7f6ce92c.287418","order":2,"width":0,"height":0,"passthru":false,"label":"off button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"0","payloadType":"num","topic":"","x":100,"y":160,"wires":[["f3df5e1f.bfddf8"]]},{"id":"87f32a15.ae9498","type":"ui_switch","z":"d411d61e.b5f","name":"","label":"switch","tooltip":"","group":"45c91218.5ecf2c","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"100","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":90,"y":260,"wires":[["f3df5e1f.bfddf8"]]},{"id":"98aabd8b.2c2a88","type":"ui_slider","z":"d411d61e.b5f","name":"","label":"slider","tooltip":"","group":"616fdfda.f628d","order":3,"width":0,"height":0,"passthru":true,"outs":"all","topic":"","min":0,"max":"100","step":1,"x":90,"y":320,"wires":[["f3df5e1f.bfddf8"]]},{"id":"7f6ce92c.287418","type":"ui_group","z":"","name":"Push Button","tab":"35f781b0.f3871e","disp":true,"width":"6","collapse":false},{"id":"45c91218.5ecf2c","type":"ui_group","z":"","name":"Slide Swich","tab":"35f781b0.f3871e","order":2,"disp":true,"width":"6","collapse":false},{"id":"616fdfda.f628d","type":"ui_group","z":"","name":"Dimmer","tab":"35f781b0.f3871e","order":3,"disp":true,"width":"6","collapse":false},{"id":"35f781b0.f3871e","type":"ui_tab","z":"","name":"LED Control","icon":"dashboard","disabled":false,"hidden":false}]

Credits

Phil Speed

Phil Speed

4 projects • 1 follower
Repaired anything in a computer room back in the late 60s and 70s. Also, did some assembly and machine language programming.

Comments