How do I program the Arduino board?
Step 1: Connect Arduino Maker Uno to computer via USB cable
Step 2: Open Arduino IDE software
Step 3: Do your own coding or just copy from the internet.
Using tinkercad
1. Potentiometer with the serial monitor
What I learned from interfacing an input device to Arduino board?
In the unicorn challenge, I used pin 2 as an input device. I learned that when the programmable button is pressed the output device is on. When the button is released, the output device is off.
What I learned from interfacing an output device to arduino board?
In the unicorn challenge, I used pin 9 as an output device for the servo. I learned that if we use pin 11 as the output device. We didn't change the pinMode(9, OUTPUT) to pinMode(11, OUTPUT) the servo will not work as the data cannot be transferred to the servo.
Source code:
Problems that I occur and how I fixed them?
The problem that occurs is the servo is not smooth when turning. I need to increase the delay time from 15 milliseconds to 150 milliseconds. To make the servo turn smoothly.