aboutsummaryrefslogtreecommitdiffstats
path: root/readme.rst
blob: 032186c3810838f3ffdd517ccc2308854ed75b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Simple project to switch lights on/off with a servo (for fun)
#############################################################

Description
===========

This is a two night project to allow a little linux board to control the
lights of the home. It does it by flapping a switch with a servo going from
a position to another.

Simple control is done on the serial line. Exemple with python:

    import serial
    s = serial.Serial('/dev/serial/device', baudrate=9600)
    s.write(b't') # toggle switch


In `doc` directory, there is example of a daemon to turn light on and off from
a jolla phone (a simple python script easily adaptable: 3 lines). The daemon
can also turn on light in the good time range by just detecting the phone mac
address requesting an address on the dhcp local server. This possibility is
only available if the dhcp server is on the same device as where the usb servo
switch is plugged into.

License
=======

Unless specified otherwise, this project is licensed under the terms of the
GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version. You
should have received a copy of the GNU General Public License along with this
program. If not, see <https://opensource.org/licenses/GPL-3.0> or
<http://www.gnu.org/licenses/>.

SPDX-License-Identifier: GPL-3.0+

Copyright © 2016 vg <vg@devys.org>

Contact
=======

developer
    vg

mail
    vg@devys.org