How to Control a Motor with Visual Basics and a Serial Port?

  • Thread starter Thread starter darkness_limits
  • Start date Start date
  • Tags Tags
    Basics Visual
Click For Summary
SUMMARY

This discussion focuses on controlling a motor using Visual Basic (VB) through a serial port connection. A serial-TTL converter is essential for interfacing the motor with the computer, as direct connection is not feasible. Users can send commands like "on 1" or "off 1" to control the motor via a switch or relay. The discussion also highlights the use of homemade commands such as 'getInput()', 'setDirection()', and 'setOutput()' to manage motor operations effectively.

PREREQUISITES
  • Familiarity with Visual Basic programming
  • Understanding of serial communication protocols
  • Knowledge of electronic components like relays and switches
  • Experience with serial-TTL converters
NEXT STEPS
  • Research how to implement serial communication in Visual Basic
  • Learn about different types of serial-TTL converters available
  • Explore the use of IO-boards for controlling multiple outputs
  • Study relay circuits and their applications in motor control
USEFUL FOR

This discussion is beneficial for hobbyists, robotics enthusiasts, and developers looking to control motors through Visual Basic and serial communication. It is particularly relevant for those involved in electronics projects requiring motor control.

darkness_limits
Messages
11
Reaction score
0
hi please 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 )
 
Technology news on Phys.org
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.
 
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 through 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.
 

Similar threads

Replies
11
Views
2K
Replies
4
Views
4K
Replies
2
Views
3K
Replies
17
Views
3K
Replies
19
Views
2K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K