Larry really enjoyed his camp but always, he was never totally happy. His fire was burning too fast, and the fan was blowing so strong that he was actually cold. Could he slow it down?
And the night light. It helped keep the night monsters away all right… but it also meant that he couldn’t sleep. He needed light but did it have to be SO bright..
- Use the rotary angle sensor or potentiometer as analog input
- Use the LED module as analog output
To download the code below, kindly right click to save file.
What Will Happen?
Kindly refer here for more information.
When the knob at the rotary angle sensor (or potentiometer) is rotated, it changes the analog input reading. In turn this changes the analog output values. This principle is used to regulate the current, speed or frequency of the output actuators.
- Experiment with different output modules e.g. the servo motor