Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Control a motor or a light using visual basic

  1. Sep 16, 2007 #1
    can anyone tell me how to control a motor or a light using visual basics (i know how o use visual basics but i dont know how to use it to control a motor or something)
     
  2. jcsd
  3. Sep 16, 2007 #2

    CRGreathouse

    User Avatar
    Science Advisor
    Homework Helper

    How is it connected to the computer? Serial port?
     
  4. Sep 16, 2007 #3

    rcgldr

    User Avatar
    Homework Helper

    Back in the days of Dos and Windows 95/98/ME, when programs could directly access ports, the pins of the parallel port could be toggle to drive a stepper motor. Normally only 4 pins were required for a standard stepper motor. In the old days, timer0 could be used to control the time intervals, but now Pentiums include a high speed timer that could be used instead.

    For Windows NT/2000/XP/Vista, you'd need a driver that provided an interface to control the motor.

    You didn't specify how the PC interfaces to the motor.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook