

Grab your free PDF file with all the commands you need to know on Raspberry Pi! Follow the script given previously as a template to make sure the port is properly initialized before use. But basically, any green pins on my diagram are free to use. Use the diagram provided above to know which pin to use. Each pin can be used as input (for a thermometer, for example) or output (for a LED). Some of them provide power, others are ground, and others can be used in programming.

All The Best Raspberry Pi Project Ideas (with links)Įach pin has a different role.Top 13 Raspberry Pi HATs you need to try.The 11 Best Raspberry Pi Robots Kits for Beginners.You can find some concrete examples on this website: For example, a weather station, a robot, or an expansion card (named “HAT”). GPIO pins are used to connect additional devices, sensors, and wires to the Raspberry Pi, and use it as the brain of any electronic circuit. It’s an interface used to plug other electronic devices into the Raspberry Pi. GPIO stands for “General Purpose Input/Output”. My book: Master your Raspberry Pi in 30 days.15 best operating systems for Raspberry Pi (with pictures).25 awesome Raspberry Pi project ideas at home.In a few weeks, you’ll be ready, and this example will be easy to read for you.Īnyway, this was just a basic example to get you started and show you how to use the previous diagram. I explain everything you need (and only that), to use it for any project. Remember, if reading this Python script feels like deciphering hieroglyphs for you, you will benefit from reading my book “ Master Python on Raspberry Pi“. From there, I can set it on or off with:.

