Simple Motor Optical Encoder Circuit


Posted on Feb 6, 2014

The simple motor optical encoder circuit is not terribly difficult however it will take some double checking to make sure you have everything hooked up properly before working the first time. The main devices used in the circuit are the 7805, 18F4520 and L298HN. This is a basic +5v power regulator circuit for the digital signals/components. Thi


Simple Motor Optical Encoder Circuit
Click here to download the full size of the above Circuit.

s +5v is also fed to the IR detector circuit. A 7805 device is used for regulating. This a very common +5v regulator and can be found at nearly any manufacturer. The PIC has two man chores for this circuit. (1) It is controlling the motor through RC1 & RC2 which are outputing PWM signals. RC1 outputs a certain PWM signal and RC2 outputs the exact inverse. (2) The PIC is also getting data from the IR detector circuit. Namely the voltage at the output. The change in voltage at the point will tell us whether the optical encoder sees black or white. This is as simple as it gets for IR detector circuits. We use two resistors and the two IR components with a power supply. The IR LED shines onto the encoder paper we will build and the IR detector gets the reflected signal. The L298 will receive all its commands from the PIC microcontroller at input 3 and input 4. I chose to make Enable B always enabled just so there would be less programming in the PIC. The motor controller is also directly hooked up to the 12v battery supply voltage as well as the +5v supply for the digital signals.




Leave Comment

characters left:

New Circuits

.

 


Popular Circuits

12 VOLT GEL CELL CHARGER
PLL 1 Watt FM transmitter
Model rocket launcher
100W Inverter
Cmos Pair 2-Mhz Crystal Oscillator
simple switch off time delay schematic
5 Zone Alarm System



Top