Browse Source

extended readme

Thomas B 2 months ago
parent
commit
95a0fb91c0
1 changed files with 36 additions and 0 deletions
  1. 36
    0
      README.md

+ 36
- 0
README.md View File

1
 # AutoBrightness
1
 # AutoBrightness
2
 
2
 
3
+Simple solution to measure ambient room lighting conditions with an AtTiny85 based USB lux sensor and set external display backlight intensity accordingly via DDC/CI.
3
 
4
 
5
+See [this blog post for details](https://www.xythobuz.de/auto_brightness.html).
6
+
7
+## Sensor
8
+
9
+Uses a [Digispark Rev. 3 clone](https://www.az-delivery.de/en/products/digispark-board) with a [GY-302 BH1750 breakout board](https://www.az-delivery.de/en/products/gy-302-bh1750-lichtsensor-lichtstaerke-modul-fuer-arduino-und-raspberry-pi) connected to the I2C bus.
10
+
11
+[![Front of PCB](https://www.xythobuz.de/img/autobrightness_pcb_1_small.jpg)](https://www.xythobuz.de/img/autobrightness_pcb_1.jpg)
12
+[![Back of PCB](https://www.xythobuz.de/img/autobrightness_pcb_2_small.jpg)](https://www.xythobuz.de/img/autobrightness_pcb_2.jpg)
13
+
14
+### Quick Start
15
+
16
+Check out the repo and required submodules.
17
+
18
+    git clone https://git.xythobuz.de/thomas/AutoBrightness.git
19
+    cd AutoBrightness
20
+    git submodule update --init
21
+
22
+Build the firmware and upload it.
23
+
24
+    make -C sensor upload
25
+
26
+Prepare udev rules for our new device.
27
+
28
+    sudo cp sensor/49-autobrightness.rules /etc/udev/rules.d/49-autobrightness.rules
29
+    sudo udevadm control --reload-rules
30
+    sudo udevadm trigger
31
+
32
+## Client
33
+
34
+### Quick Start
35
+
36
+Install dependency and run the client.
37
+
38
+    yay -S python-pyusb
39
+    ./client/brightness.py
4
 
40
 
5
 ## License
41
 ## License
6
 
42
 

Loading…
Cancel
Save