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

Question about visual basics

  1. Sep 18, 2007 #1
    hi plz can anyone tel me how to control a motor connectd to an electronic chip connected to the computer uning serial port , using visual basics(iknow how to use VB )
  2. jcsd
  3. Sep 18, 2007 #2


    User Avatar
    Science Advisor
    Homework Helper

    You cannot connect a motor directly to a serial port
    You need to get a serial-ttl converter - available from lots of robotics toy companies.
    These will provide a pin that you can drive high or low from the serial port. You can use this to control a switch or relay to turn the motor on or off.
    You normally control it by sending text such as "on 1" "off 1" to turn on pin 1 etc.
  4. Sep 18, 2007 #3
    In electronics class we use something called an 'IO-board' which is connected through the serial port. Our teacher has written a script to run it and we can use simple commands to write high/Low out throught 8bit.
    So we basically use homemade commands like 'getInput()','setDirection()' and 'setOutput()' that does the job.
    This is how we do it, and then, as mgb_phys said, we connect the motor etc to a circuit which is controlled by the High/Low from the 8bit.

    Hope I was of some help.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Question about visual basics
  1. Visual basic question (Replies: 1)

  2. Fortran / Visual Basic ? (Replies: 13)