Now you have an understanding of analogInput and the Serial monitor, let's transfer it to text-based code and the physical realm via the Arduino IDE
We will explore how we observe and reflect upon the relationship between code (software) and components (hardware).
Observe the behaviour of the dial that controls the LED brightness.
We will take the control task into physical components and Arduino IDE. Wire your components to the following pins
If you have a feedback shield place it on top of your Arduino board and view what visual feedback you get when you make changes to your code.
Remember the Feedback Shield provides colour coded feedback via its corresponding LEDs
Observe the output in the physical space. What is the physical LED doing?
When using the shield ...
In addition ...
Try edit the code to make the relationship between the potentiometer and the brightness of the LED correlate. Consider what line of code might need to be added to create the visual difference.
Copy the Function Error code below into your Arduino IDE and begin editing it. Once you think you have solved the Functional Error upload to your board to see the visual difference. Remember to check the board and port match your Arduino board and USB port in use.
Please provide feedback on how you understood the use of the Feedback Shield in this task.
Select your name from the dropdown menu so your feedback can be collated over the duration of this teaching module. ***
*** All data collected will then be anonomised before being used in future research.