Skip to main content

Brightness Sensor

LEDNet version >1.6.17 supports a brightness sensor for determining the target brightness.

Testing the brightness sensor

Plug the provided USB adapter into a USB port on the PC, then plug in the sensor using an ethernet cable.

Download Terra Term from here.

Use the following serial port settings:

SettingValue
Port{Select COM port}
Speed9600
Data8 bit
Parityeven
Stop bits2 bit
Flow controlnone

You should now see an output every few seconds in the Terra Term output window.

Terra Term configuration

Setting up the LEDNet Serial program

First, create a new writable directory for writing the sensor values to, i.e. c:\Serial

Open a new PowerShell window in LEDNet directory.

Run the LEDNet Serial program using the following arguments:

ArgumentFunction
--portSpecify the COM port
--fileFile to read sensor values from

Example usage:

& ".\LEDNet Serial.exe" --port COM3 --file "c:\Serial\serial.txt"

Add a new startup task for the LEDNet Serial program

In addition to adding the LEDNet Daemon as a startup task, add the LEDNet Serial program also.

Right click on the shortcut and specify the arguments in the Target field:

LEDNet Serial shortcut properties

Configuring LEDNet to use the brightness sensor

Navigate to the target setting for the screen.

First, configure the target for Sun Rise/Set, then change the input to Light Sensor.

Set the target range. These values should be the same as the setting for Sun Rise/Set.

Set the sensor range. We recommend between 3L - 1200L. The range you define to the sensor maps to the target range.

Enable Time of day fallback.

Set the Sensor URL to the file that you provided to the LEDNet Serial program in the previous step.

note

The brightness sensor works in conjunction with the Sun Rise/Set target mode. Whichever mode provides the lowest value determines the target brightness.

LEDNet target brightness sensor