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:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    13 Volt 20 Amp with current limiter
    I/O monitor program for AVR
    CM2 Practical
    MSF detector - turning the radio signal into data
    Telephone amplifiers
    Hot Tub Hack
    Space Charge and Low-Voltage Tubes
    MINI ROULETTE
    RF amplifier coupling
    SPARK GAP OSCILLATOR
    Lights Out circuit
    The battery voltage is low frequency amplifying circuit diagram 1v
    Three temperature switch circuits



    Top