servo control

For issues with communication ports, protocols, etc.
thesanman112
Posts: 538
Joined: Jul 15, 2005 4:13

Re: Interacting with Serial Ports

Post by thesanman112 »

jtlodi wrote:Hi Phishguy ... came across your post about servos. I am brand new to FB but have been programming in QB, VB, VisualFoxPro for lots of years. I have a stepper motor control board from Eggert Electrics which interactively operates steppers using QB at the DOS level (Print #1, ... ). Of course I have to run QB in DOS and am looking for a way to run the code under Windows.

Is FB able to control serial ports while running under XP? or do I need some sort of serial port dll control? Windows took away direct access to ports and that caused a lot of hassles.

Hopefully you will tell me that it is a piece of cake in FB!

Regards,

Jim in Lodi

hey jt, post some of your qb code, I can translate it to fb in seconds...
Eviltoaster
Posts: 26
Joined: Nov 08, 2007 16:59
Contact:

Post by Eviltoaster »

im so stupid sometimes :P

well i think i need to buy a new controller becouse i need to change computer . and now i need to use usb becouse my laptop dont have serial connection..
but my question is .. maybe i can connect my parallax serial controller to the usb om my own laptop .. but how :P

i think it is easyer to buy a new one with usb on it ..
and i didnt buy the first one, my school did so i dont think money is the problem..

EDIT: one more thing ... is it hard to program usb stuff?
phishguy
Posts: 1201
Joined: May 05, 2006 16:12
Location: West Richland, Wa

Post by phishguy »

You have 2 options. The first is to buy a USB to serial port converter to connect between the PC ant you servo controller. The second, and I think the best option, is to get the USB servo controller.( I use this and it works great) You would notice no difference in your program as both methods appear as a serial com port to your PC. No USB programming knowledge is required.
Eviltoaster
Posts: 26
Joined: Nov 08, 2007 16:59
Contact:

Post by Eviltoaster »

well i have the pololu servo controller now ..and i changed a little bit in your code and i got it to open a connection but i dont know how to send so i can get servo 0 to change positon ... well im a beginner in this so i dont know what im doing :D

http://www.pololu.com/catalog/product/390?tab=resources

here is how it works ...

please help me :S
Eviltoaster
Posts: 26
Joined: Nov 08, 2007 16:59
Contact:

Post by Eviltoaster »

nvm it works perfect now ...
technoweasel
Posts: 70
Joined: Aug 06, 2008 22:47

Post by technoweasel »

I don't know if anyone is still watching this post, and you have probably decided on a purchase, but here's my message:

I am playing around with freebasic and my Parallax BOE-bot in my spare time. I use the USB-serial adapter and it seems to work fine.
Post Reply