Toptube Video Search Engine



Title:Node-RED Test Su Raspberry Pi In 60s!
Duration:02:10
Viewed:1,469
Published:09-04-2020
Source:Youtube

All the steps to activate an LED sensor with a Button connected to Raspberry Pi via Node-RED. This video is just "for fun" but the all the steps are those to be completed in order to control the LED by pushing the Button using Node-RED events. » PREREQUISITES 1) download Raspbian OS Buster (Lite or Full): https://downloads.raspberrypi.org/ 2) write the image on a microSD 3) enable SSH access with an empty "ssh" file into "/boot" partition 4) log into the pi and change the password of "pi" user 5) connect to Internet and update the system 6) install Node-RED and Chromium (if not installed) 7) optional: install VNC for remote access 8) connect LED and Button to Raspberry Pi GPIO at 11(board)/17(BCM) and 7(board)/4(BCM) PINs » STEP 1: add fake inputs to set LED on or off 1) create a new FLOW 2) add an OUTPUT node and set it to control the LED (PIN 11/7) 3) add two INPUT nodes (ON and OFF) to send 1 and 0 values respectively to the LED 4) (optional) add a DEBUG node 5) connect INPUT nodes to LED and DEBUG » STEP 2: test the LED 1) click on DEPLOY 2) click on INPUTs to send ON and OFF signals to the LED (see DEBUG and check the LED) » STEP 3: activate LED with the Button 1) add an INPUT node and set it to control the Button (PIN 7/4) 2) add a SWITCH node to switch the value of the Button (the default is 1) 3) add two CHANGE nodes to switch from 1 to 0 and viceversa 4) connect Button to DEBUG and SWITCH 5) connect SWITCH to CHANGE nodes 6) connect CHANGE nodes to LED » STEP 4: test Button 1) click on DEPLOY 2) click on Button to activate the LED and release the Button to deactivate (see also DEBUG for more details) [Soundtrack by Various Artists released under Creative Commons] #geekonerd #raspberrypi #nodered #led #button #nocode _____ FOLLOW ME ON https://linktr.ee/geekonerd



SHARE TO YOUR FRIENDS


Download Server 1


DOWNLOAD MP4

Download Server 2


DOWNLOAD MP4

Alternative Download :