Hi fellas. I start this thread in the right section this time I hope.
I'm looking for a ready made device or a wiring diagram that would allow me to control around 10 transistors via usb port.
I'm sure that someone on here has built such a device.
Thanks in advance
Controlling transistors via usb
Re: Controlling transistors via usb
@admin and/or @moderator,
maybe just move this post and then delete this thread (duplicate) of programming/beginners.
(for that, you're certainly at 'the wong place' here)
Most used devices around here are available 'of the shelve' and provide VCP (virtual COM port).
(with libraries perhaps possible, not certain however)
maybe just move this post and then delete this thread (duplicate) of programming/beginners.
It is worse to duplicate threads than posting in another forum section.Maybe I should have posted it under "Hardware Interfaces / Communication" section of the forum.
I start this thread in the right section this time I hope.
And, what I've said there is still true: search at a DIY-hardware forum for 'self-made' hardware.I'm sure that someone on here has built such a device.
(for that, you're certainly at 'the wong place' here)
And NO, there is no direct access to USB 'built-in' to the language.You mean to say that there is no way for Freebasic to send commands through usb or maybe even receive them?
Most used devices around here are available 'of the shelve' and provide VCP (virtual COM port).
(with libraries perhaps possible, not certain however)
They certainly are, but 'self-made' hardware, is clearly 'out of scope' here ...I posted it on this website since the two are very much connected - the software and the hardware.
Re: Controlling transistors via usb
Use an Arduino--see the other post.
When you plug an Arduino in your USB, it shows as a COM port. Just use the FreeBasic serial comms to send commands to the Arduino. Then use a sketch in the Arduino to set the GPIO pins accordingly. Examples come with the Arduino IDE.
You can easily do the reverse too, read the GPIO with the Arduino and send to PC (running FreeBasic) for status. Use the A/D converters to read voltage values.
When you plug an Arduino in your USB, it shows as a COM port. Just use the FreeBasic serial comms to send commands to the Arduino. Then use a sketch in the Arduino to set the GPIO pins accordingly. Examples come with the Arduino IDE.
You can easily do the reverse too, read the GPIO with the Arduino and send to PC (running FreeBasic) for status. Use the A/D converters to read voltage values.
Re: Controlling transistors via usb
Thank you that's exactly what I'm looking for. I will have to do more research on this.bfuller wrote:Use an Arduino--see the other post.
When you plug an Arduino in your USB, it shows as a COM port. Just use the FreeBasic serial comms to send commands to the Arduino. Then use a sketch in the Arduino to set the GPIO pins accordingly. Examples come with the Arduino IDE.
You can easily do the reverse too, read the GPIO with the Arduino and send to PC (running FreeBasic) for status. Use the A/D converters to read voltage values.
I'm still open to other alternatives
-
- Posts: 606
- Joined: Nov 28, 2012 1:27
- Location: CA, USA moving to WA, USA
- Contact:
Re: Controlling transistors via usb
You could also use a Pi. The same functionality exists, with an OS included. Many ways to build that mousetrap. Most of the other learning small 'complete' learning tools have a direct pin interface.
An Arduino will probably be more fun, though.
david
An Arduino will probably be more fun, though.
david
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
Re: Controlling transistors via usb
The simplest solution are boards with an FT2232 USB chip and a lot of I/O ports.
something like this: eBay: FT2232-HL-USB
With the FTDI driver you can use FreeBASIC to control the parallel I/O ports via serial COM ports !
Stuff from FTDChip are working well with Linux also.
Joshy
something like this: eBay: FT2232-HL-USB
With the FTDI driver you can use FreeBASIC to control the parallel I/O ports via serial COM ports !
Stuff from FTDChip are working well with Linux also.
Joshy