Content on this site may not be resold or reproduced. Copying is strictly prohibited. This post may contain affiliate links. See the Affiliate Disclosure for more information. Use of information on this site is at your own risk. View the Terms of Service.
The Raspberry Pi is a single-board linux computer that has exposed General Purpose Inputs and Outputs (GPIO). In this tutorial, I'm going to show you how to program the Raspberry Pi to control an LED using Node-RED. Then, we will create a dashboard UI to control the LED from any web browser. You will need a Raspberry Pi 3 B+, an LED & Resistor, breadboard, and jumper wires to complete this project. I recommend the Cana kit because it has all the components you need (and more). First, you'll need to install NOOBS on an SD card (8GB or greater). You can download NOOBS from the Raspberry Pi website. It's a pretty large download, so while that's running, let's wire up our circuit!
Table of Contents
Wire an LED to Raspberry Pi GPIO
This is the wiring diagram we will use for Raspberry Pi Node-RED program. Connect the resistor and positive leg of…
About Liz Miller
Creator of LearnRobotics.org. Liz is a Robotics Engineer with experience ranging from Robotics Research at UPenn, Teaching at MIT, and Automated Manufacturing Engineering at United Technologies. Liz writes technical tutorials that anyone can follow and provides tips and tricks to help engineers grow their careers. Liz has authored over 100 pieces of unique content on this site. You can support her work here. Learn more about Learn Robotics on our About Us page.
You may also like
Welcome to Learn Robotics!
I’m Liz, a Robotics Engineer, and the creator of Learn Robotics.