Back to Parent

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).


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0