Skip to content

Commit 7229bf9

Browse files
added images & hardware instructions to readme
1 parent 3c7c684 commit 7229bf9

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

README.md

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
11
# Lightr
2-
Control Hue lights in a room with a Raspberry Pi and roatry encoder switches
32

4-
# Running
3+
Control Philips Hue smart lights in a room with a Raspberry Pi and rotary encoder switches. Each switch controls the Hue, Saturation, & Lightness of a particular light.
4+
5+
![Showing colors changing](/lightr.gif)
6+
7+
## Software
8+
59
- Copy/clone the source across to a Raspberry Pi running Raspbian
6-
- Run ```cp config.default.json config.json``` and then open config.json and ensure the Philips Hue bridge IP/UserId & GPIO pin configuration matches the GPIO connections you've set up
10+
- Get the IP and a user id from your Philips Hue Bridge (Guide [here](https://developers.meethue.com/develop/get-started-2/))
11+
- Run ```cp config.default.json config.json``` and then open config.json and ensure the Philips Hue bridge IP/UserId are set
712
- Run ```sudo scripts/install_deps.sh``` from the source root folder
813
- Run ```npm install```
914
- Run ``sudo systemctl restart lightr```
1015

1116
The app should now start up (and automatically restart when the Pi is rebooted). The first screen will give you an option to select which light group it should control (You can get back to this screen laster by pressing the toggle buttons in the order 3-2-1-2-3-1).
17+
18+
## Hardware
19+
20+
- 3x rotary encoder switches [Amazon](https://www.amazon.com/gp/product/B06XQTHDRR/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1)
21+
- 1x I2C OLED screen [Amazon](https://www.amazon.com/gp/product/B072Q2X2LL/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1)
22+
- open up config.json and using the [pinout](https://pinout.xyz/) for your Raspberry PI wire up each rotary encoder from the GPIO pin to the following pin on the encoder as follows. So for example using the defaults, GPIO pin 6 would go to rotary encoder 3's DT pin.
23+
- a<x>Pin -> Encoder<x> DT
24+
- b<x>Pin -> Encoder<x> CLK
25+
- toggle<x>Pin -> Encoder<x> SW
26+
- The I2C screen needs to be hooked up to GPIO pins 2 (SDA) & 3 (SCL)
27+
28+
![The assembled light controller](/assembly.jpg)
29+

assembly.jpg

628 KB
Loading

lightr.gif

31.6 MB
Loading

0 commit comments

Comments
 (0)