Answer the question
In order to leave comments, you need to log in
How can I automate turning on / off the light in the room using python, a controller and a motion sensor?
The idea is to write a useful program that would turn on the light when moving in the room, and turn off the light if there is no movement (say more than 10 minutes).
Is Python good for writing such software? In general, what is the algorithm of work for all this? What may be needed besides the controller and the sensor itself?
I'm not asking for a ready-made solution, but rather for links to materials or impressions of experience in this area for further study. I'm interested, but I don't really know where to start.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
You don't even need a controller for this task. Such lamps operate on a primitive circuit, sometimes even without digital electronics.
Python in terms of embedded systems programming is very fat. It will be pulled by a full-fledged single-board computer, and even then not in real time.
Microcontrollers are programmed in C, C++, assembler. Other languages are usually used either to show "yes, this is also possible", or in very rare cases.
Link banal: easyelectronics.ru
I understand that the main goal is education. Start with Arduino. It was designed for this. Very low entry threshold into electronics and programming. It helped me a lot personally.
And what about python????
www.volgorobot.ru/product_info.php?products_id=23 - 670 rubles and that's it....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question