The picture of this article is from the Internet
preface
How do I turn on the LED lights remotely
Speaking in
Unconsciously, I have reached the age of no more than one, and the only constant has not found the so-called love. When I was a child, the elders often asked me the question, what do you like to do? Now it’s me asking myself what do I love to do? After 20 years of survival, I’ve learned that sitting still may never be found, so I’m trying to be proactive.
Today I want to share I made a remote control LED light small toy
Come on, show
Show a toy
Web address: 348r02z653.qicp.vip/#/ (effect you can not see)
demand
If I wanted to remotely control devices in my home, here’s what I could think of
- Hire a nanny to turn on the device at home every day
- Install a smart home system in your home
- Buy a raspberry pie and control the raspberry pie remotely
Everyone who knows me knows my economic situation. I can’t say that I am very rich, but at least I am extremely rich. So I choose the first plan. So I choose the third option. Don’t ask me why I don’t choose 2. I think 2 is a number I don’t like and it doesn’t fit my temperament.
The flow chart
Something I use
hardware
- Raspberry PI 4B and related accessories
Power cord (raspberry PI power supply), memory card (burned in advance into the system), fan (heat dissipation use) rainbow wire, bread board
Download raspberry PI system recommended domestic mirror station
Domestic mirror station, how to burn system
- LED 3 color light module
software
- Web uses vue3 + ant-design-vue, etc
- API using the NET5
What is raspberry pie?
This is raspberry pie, and this article is about another raspberry pie
LED 3-color lights look like this
Connect the line
My access mode is GPIO pin 8 (red light), 10 (green light), 12 (blue light), 14 (ground)
Start the service
API (can’t run in Docker (currently no solution found) because it controls raspberry PI pins)
Direct independent deployment, raspberry PI does not need to install the running environment, the environment is in the package
Web (can run in Docker)
Configure nginx to start
code
I put all the code on GitHub
Web
API
Afterword.
Sensors are constantly coming in, remote infrared controlled air conditioners, access to Apple HomeKit via The Home Assistant, and a few interesting ideas here and there
Reference, source
Smart Home Assistant builds from entry to pit
Drawing tools
Source of emojis
Video compression
Turn video GIF