Control a motor or a light using visual basic

AI Thread Summary
Controlling a motor or light using Visual Basic involves understanding the connection between the computer and the device. Historically, during the DOS and Windows 95/98/ME eras, direct access to ports allowed users to toggle pins on the parallel port to drive stepper motors, typically requiring only four pins. Timer0 was used for timing intervals, but modern Pentium processors have high-speed timers that can serve this purpose. For newer Windows versions like NT, 2000, XP, and Vista, a driver is necessary to facilitate communication between the PC and the motor. The specific method of interfacing with the motor was not detailed in the discussion, highlighting the need for clarification on connection types.
darkness_limits
Messages
11
Reaction score
0
can anyone tell me how to control a motor or a light using visual basics (i know how o use visual basics but i don't know how to use it to control a motor or something)
 
Technology news on Phys.org
How is it connected to the computer? Serial port?
 
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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top