C
C
Cyril2015-01-14 23:45:53
Python
Cyril, 2015-01-14 23:45:53

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

4 answer(s)
A
Armenian Radio, 2015-01-14
@awayyy

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

S
ssssergey, 2015-01-16
@ssssergey

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.

A
Andrey Ermachenok, 2015-01-15
@eapeap

And what about python????
www.volgorobot.ru/product_info.php?products_id=23 - 670 rubles and that's it....

R
Robert, 2015-01-23
@Rob79

www.ebay.com/itm/Adjust-IR-Pyroelectric-Infrared-I...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question