![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRJYjtOynzPD3Bm37FWFAH5kcpeJ1QI3M878i6I6axfrpuspy1vZijllhdKuvqe4MJ9g_bs_OzdozgMRu5YZGBUAxgdhFHqwbOjgwZehKWZV5sAWyiQUebP5uDJx80I-G9cOcfzecKXwNH/s1600/LineFollower.jpg)
Arduino Uno
Arduino Uno can be used to control devices puck ATmega328P, has 14 digital pins input output (6 pins can be used as PWM output6 pins are used as analog inputs), 16 MHz crystal oscillatora USB port, electric plugs, Reset button. The operating voltage of the Arduino Uno is 5 Volts. Here's why resource which is connected to electric plugs It also works with 7-12 Volts. It also works on USB ports, and also uses 5 Volt ports.
![]() |
Figure 1. Arduino Uno board |
![]() |
Figure 2. Sensors used (line sensor) |
What is an IR LED (Infrared LED)?
It is an LED where if given a forward voltage the LED will emit hot light or light infrared. This light is invisible to the eye. How to use IR LEDs is the same as other LEDs or diodes.
Photodiode It is a diode component which when exposed to hot light (infrared)
This photodiode can be downloaded from the list. Do not know what to do
photodiode Will work only if the surface is exposed to light
![]() |
Figure 3. Light receiver circuit infrared |
photodiode There are a lot of people who are in love, but also what people talk about when they are there, but they are in the same place. photodiode separate conditions come back on diodes or other LEDs. It doesn't matter infrared Regarding the surface photodiodecurrent will flow from the Cathode to the Anode despite conditions photodiode in a state of come back Or inversely relative to voltage. The amount of current flowing at the terminal photodiode depending on the light intensity infrared which is about photodiode.
- Von+ Read more Vin the- (Von+ > Vin the-) so output op-amp will tall. Tall here it means voltage output op-amp approaches the source voltage.
- If tense Vin+ smaller in comparison Vin the- (Vin+
in the- )or Vin+ together with Vin the- (Vin+ =Vin the-) then the voltage output (Vgo out) become low (0 volts).Figure 4. Op-amp
No need to replace DC pad photodiode with a dc voltage source whose voltage can be changed via a potentiometer. To get a complete sensor circuit then enter The comparator circuit is combined with the circuit photodiode.
![]() |
Figure 5. Circuit for adjusting photodiode sensitivity |
In Figure 5, when photodiode receive light infrared, output become low (close to 0 Volts or 0 Volts) Where the LED indicator lights up because current flows from the source to terminal number 1 of the op-amp. This circuit is intended for active programmed Arduino low where the voltage is low (low) will be trigger Or Arduino trigger to end program command. Potentiometers are used to adjust the sensitivity of light reception infrared on. on photodiode.
![]() |
Figure 6. PWM signal |
The yellow signal in Figure 6 above is a PWM signal and is produced from a dc voltage (green) with a sawtooth wave voltage (pink).
The sawtooth wave is input to the (+) terminal of the op-amp, dc voltage is input to the (-) terminal via a potentiometer so that the dc voltage can be changed. By changing the dc voltage as a result of changing the potentiometer value, the square wave (PWM) will change cycleit or changes in comparison tall And low-his. No need to worry about the position of the potentiometer which can also be used cycle PWM wave.
![]() |
Figure 7. Setting settings cycle |
![]() |
Figure 8. Illustration of how PWM works on the ATmega328P microcontroller |
The internal PWM in a microcontroller works similarly to PWM in an analog circuit, namely by comparing values ward off TCNTn with the OCRnx register value, the resulting PWM signal is output at harbor
Or the OCnx terminal which can be seen in the Arduino Uno specifications. For a detailed explanation regarding PWM, discuss the Arduino Uno PWM chapter.
Driver L239D DC motor
![]() |
Figure 9. Circuit driver L293D DC motor |
- Terminal No. 1 available possible or disabled M2 motor rotation. At terminal no 1 tall This M2 motorbike can be used without problems.
- Terminals no.2 and no.7 are used to control the rotation of the M2 motor to rotate cw (clockwise) or cw (counterclockwise)
Or simply to set whether the M2 motor rotates to the right or left. Voltage enter This terminal is obtained from the terminal or pin on the Arduino Uno. - Terminals no.3 and no.6 are connected directly to the dc motor M2 so that they can be used.
- Terminal No. 8 has a large number of L239D ICs powered by a large terminal pad with a maximum capacity of +5 Volts.
- Terminal No. 9 is for possible or disabled M1 motor rotation. At terminal no.9 tall The M1 motor can be installed without using it.
- Terminals no. 10 and 15 are connected directly to the dc motor M1 so that they can be used.
- Terminal 16 Is the terminal enter voltage used to run a DC motor. Maximum recommendation is 12 Volts.
- Terminals no. 3 and 6 are connected directly to the dc motor.
- Terminals 5, 6, 13, 12 are connected to grounding or 0 Volt voltage.
- Grid Line Follower Working Concept
- How Arduino Uno's PWM works for regulating dc motor speed
- Interrupt timer For line sensor reading
- Line Sensor Reading Program Code
- Mechanics and movement Grid Line Follower
- Complete Code Grid Line Follower
- PCB and Grid Line Follower Circuit