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

10-W Class A Amplifier
12V stroboscope
Circuit Implementation of a Chaotic Lorenz System
Would this USB detection circuit work as expected
Laser1 RoboBrick
android bluetooth oscilloscope
infrared transmitters using lm3909
water level indicator
Digital Combination LockCircuit Project Tutorial
Versatile Micropower Battery Protector
Index 2 - Power-Supply Circuits-DC to DC - power supply circuit - SeekIC.com
Ensemble II VHF RX rf



Top