Back to Parent

Outcome


At first, I conducted tests to check if the LED brightness could decrease to the desired level using a photoelectronic sensor (SEN-09088).

For the photoelectronic sensor, which has a known value range of 0-4095, I needed to adjust the mapping values to match the amount of light exposed to the sensor. By reducing the Particle Cloud's stream reading values to a range of 2500-3600, I was able to visually distinguish the brightness of the light. (Please enlarge the video to the full screen below)

Show Advanced Options
Show Advanced Options

In the second test, I added a Flex Sensor (SEN-08606) as the second component. The scenario I had in mind was as follows: when the day is bright, the LED lighting should either turn off or maintain a low level of brightness. When the day becomes dark, the LED lighting should become brighter, and the user should be able to customize this using a bending switch. When the day is bright, the amount of light should decrease, so I set the mapping values to (3000, 1700) in reverse.

When the LED lighting is dim (20-100), bending the flex sensor inward increases the light, and when the LED lighting is bright (255), bending the flex sensor outward decreases the light. There were cases where the mapped LED lighting size resulted in a negative value when exceeding the limits set in the mapping. In such cases, the amount of light decreased significantly, so I intentionally set the mapping values for the flex sensor to be (1000, 250).

Show Advanced Options
Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.