This tutorial explains how to take analog output from Arduino.
One of the basic tutorials for Arduino. The output is taken on a LED that fades in and fades out.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Introduction:
A step by step illustrated very basic tutorial for Arduino. Here we
are taking analog output on a LED. This LED gets fade in and then fade out.
Arduino gives analog output in range of 0 to 255. Technically the output is digital but in the form of PWM, but it seems to be analog.
Arduino Boards have 6 PWM(Analog Pins) these are PIN No. 3,5,6,9,10,11.
Step 2: Hardware Requirements:
1 Arduino UNO - 1
2 Breadboard - 1
3 LED - 1
4 Resistor 1k - 1
5 Jumper - 4
Users can buy the Arduino Starter Kit online from Robo India Shop: https://roboindia.com/store/arduino-starter-kit-low-cost
Step 3: Schemetic Diagram:
Step 4: Circuit Layout:
Step 5: Programming:
Once we are done with circuit part, here is our programme to this circuit. You can download the sketch from here.
Step 6: Output:
The execution makes fed in and fed out effects on the LED. To vary speed of fed in and fed out effect try changing delay.
Step 7: Troubleshooting:
LED is not glowing: Try changing polarity of LED.
Code uploading Error: The code will only be uploaded if there is no error in the code. try removing error, if any.