EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / ir based stepper motor control

ir based stepper motor control

|

Microcontroller › 8051 › ir based stepper motor control

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 4 months ago by Ashutosh Bhatt.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 7, 2014 at 4:37 am #2848
    sakthi
    Participant

    hi,

     

     I’m doing a project using 8051. It has to control the steps of stepper motor based on the output of IR sensors.

     

    there will be 4 IR sensor pairs mounted vertically which is used to find the height of the person. based on the number of sensors blocked the conroller has to drive the stepper motor. 

     

    need your help regarding circuit diagram and codes..

     

                                            thank you.

    February 7, 2014 at 10:32 am #10955
    Ashutosh Bhatt
    Participant

    first find our which IR sensor u will use.

    simple photo diode or TSOP

    based on this prepare proper interface circuit to connect it with micro controller

    for stepper motor there are again two options

    bipolar stepper motor or unipolar stepper motor

    for bipolar stepper motor use L293/L298

    for unipolar stepper motor use ULN2003/ULN2008

     

    after finilasing circuit follow the tutorials for stepper motor control IR sensor interfacing on this site

     

    February 8, 2014 at 3:09 pm #10977
    sakthi
    Participant

    thanks for the reply..

     

      I have completed the circuit as u said..

     but I dont know how to write the program, I mean if X sexsors are blocked X steps have to be rotated. if possible suggest where to find or how to proceed the progtam.

                                                     

                                                    thank u… 

    February 21, 2014 at 6:00 pm #11077
    Ashutosh Bhatt
    Participant

    connect the output of all four sensors with any port in sequence like D0 – D3

    check for change in input for this port

    find out how many sensors are blocked like for 1 sensor blocked ip is 1000, for two sensors blocked ip is 1100…. (or it can be reversed)

    based on this input set a count like for 1000 ip count is 100, for 1100 ip count is 200…

    give pulses to motor till count reaches to 0.

    thats all

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Fun with AI and swordfish basic June 23, 2025
  • Simple LED Analog Clock Idea June 23, 2025
  • Microinverters and storeage batteries? June 23, 2025
  • PIC KIT 3 not able to program dsPIC June 23, 2025
  • Is AI making embedded software developers more productive? June 23, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise