Hi. I want to try and control a Servo motor directly from a USB port. (without using an intermediate microcontroller). To do this, I need to send pulse width modulation signals on one (or more) wires of the USB cable.
Is it possible to do this with python? (I found a library called pyserial but I can't figure out how to use it)
mahela007
6
Posting Whiz in Training
Recommended Answers
Jump to PostYou wont be able to do it with just the usb cable, a microcontroller will be needed to handle all the serial data.
You could use the parallel port to do this, though I haven't done it myself.
import serial #your COM port will be different …
All 4 Replies
Tech B
48
Posting Whiz in Training
mahela007
6
Posting Whiz in Training
Tech B
48
Posting Whiz in Training
mahela007
6
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.