-
-
Notifications
You must be signed in to change notification settings - Fork 263
Ignition switch AND i2c brightness
Christopher Harper edited this page Dec 5, 2019
·
1 revision
Having a brightness sensor as well as an ignition switch is possible by bitbanging i2c on other gpios (in this case GPIO22 and 23) with the following steps:
Materials: 2 x 1.8k resistors (1k also seems to work) soldering iron
- open /boot/config.txt
- add the following on its own line anywhere in the file
dtoverlay=i2c-gpio,i2c_gpio_sda=22,i2c_gpio_scl=23
Replace the 22 and 23 with whichever pins you want to use - reboot. Upon reboot you should see /dev/i2c-3
- Turn off and solder pull up resistors on the pins you chose to 3.3v
- Plug in light sensor using your newly defined sda and scl
- check that your i2c device shows up by running i2cdetect -y 3
- open /opt/crankshaft/service_lightsensor.py and change
BUS=1
toBUS=3
- Follow normal i2c light sensor install instructions
You may have to enable the regular i2c in raspi-config to get rid of warnings during crankshaft start still
- Home
- Roadmap
- General Changes / Changelog
- Installing / Updating
- When Issue occur
- Hardware
- Configuration
- Features
- Home
- Get started
- Hardware
- Software and Settings
- For Advanced Users
- Et Cetera