Brightness Sensor - opencardev/crankshaft GitHub Wiki

Starting with Pre14 you can use a brightness sensor to control the display.

Required: TSL2561 i2c sensor (cheap and available everywhere)

  • Connect the sensor to th RPi's i2c bus

    • Sensor -> RPi3-Pin
    • GND -> Pin 6 (GND)
    • Vcc/Vin -> Pin 1 (3,3V)
    • SDA -> Pin 3 (SDA)
    • SCL -> Pin 5 (SCL)
  • Enable the sensor in the Settings app, CS-HW tab

  • Reboot

  • Adjust your values for lux (switch level) and display brightness which is set by switch level in /boot/crankshaft/crankshaft_env.sh if needed. A more comfortable way to adjust the values will be integrated in later builds - currently it is a bringup.

Update: Starting with Pre15 you will get a config page in settings after light sensor is enabled in CS-HW. Do a reboot after setup. Now changed settings are used instantly for the TSL2561 sensor.

Note: If you are using a light sensor manual switching between day/night is disabled.