Let's Make a Web Based Light Switch | Go and Raspberry Pi Tutorial
Go on the Pi sounds pretty tasty--so let's make something somewhat interesting. š¤
Let's make a simple web server to turn on and off a led light!
We will first set up our wiring: just a basic led light with a resistor, using pin 7 from the GPIO.
Next we will test it out using the command line utility that can be found at: https://github.com/WiringPi/WiringPi
My Raspberry Pi Distro: https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4
Once that is working we will set up our web server using Go and then attach a couple endpoints to turn on and off the light!
ā”ļø Links: The Raspberry Pi 2B (of course it's a bit out dated and overly priced) https://amzn.to/3MKpVaa
LED Lights š” https://amzn.to/39lEWli
Raspberry Pi Jumper Cables š https://amzn.to/3aWuXU2
Breadboard š https://amzn.to/3NFcnOC
Decent Kit with Everything to get Started š¦: https://amzn.to/3xk6XSo
(These links are affiliate links--so I make a tiny bit of money if you use them and buy something. Don't worry; it doesn't cost anything extra!! So it is a way you could support this channel.)
If you wanna support my channel, you can buy me a coffee: āļø https://www.buymeacoffee.com/nerdcademy Coffee make the code go!!!
š„ Everything I use to record my vids ā”ļø https://kit.co/nerdcademy/my-video-kit
All code found in this video will be at: š» https://github.com/NerdCademyDev/golang
#golang #nerdcademy #raspberrypi ... https://www.youtube.com/watch?v=36CTJ_FIiKI
125781237 Bytes