Creating Modules with Ruby for Unsuported USB Hardware
Posted: Thu May 02, 2013 5:26 pm
Hello. I've been working on a little project which uses Servo controlles. Flowstone supports servos by a company called Phidgets. When I went to the Phidgets website I was disapointed to see that their cheapest usb servo controller was about £40 and it only supported one servo. If you want to control up to 6 you're looking at nearly £200. I noticed on the phidgets website that they provided programming examples and saw they even provided samples for Ruby.
After searching the web I found an ideal usb servo controller by the Polulu company for £15 which supports 6 independant servos. The Micro Maestro 6-Channel USB Servo ControllerPerfect. It's a company based in Las Vegas Nevada but Proto-Pic here in the U.K. sells it. Only one problem though. How do I use Flowstone to control it? Well the people at Polulu have considered this sort of problem. They have designed it to work with a Com Port to usb converter driver. and since flowstone supports a Com Port module it should be easy to send com port commands to the usb device via the com port converter driver. It's not really an ideal solution though. ideally you want flowstone to directly control the device.
the question here is this. Is it possible for Ruby to work with any unkown usb device that you might install onto your system? I'm assuming of course that you have the driver for the device and it's installed. Would ruby be able to directly control The Micro Maestro without using the Com Port driver and the com port module? You would think it would.. I'm still learning it though and I havent' gotten very far.
I'm going to buy the Maestro and experiment with the com port driver at first just to get things up and running.. But does anyone here have knowledge if it's possible to get Ruby to control the device itself? the Maestro comes with lots of documentation and all that. it comes with programming examples, but unfortunately not ruby examples.
any insights would be greatly appreciated!
Grant
After searching the web I found an ideal usb servo controller by the Polulu company for £15 which supports 6 independant servos. The Micro Maestro 6-Channel USB Servo ControllerPerfect. It's a company based in Las Vegas Nevada but Proto-Pic here in the U.K. sells it. Only one problem though. How do I use Flowstone to control it? Well the people at Polulu have considered this sort of problem. They have designed it to work with a Com Port to usb converter driver. and since flowstone supports a Com Port module it should be easy to send com port commands to the usb device via the com port converter driver. It's not really an ideal solution though. ideally you want flowstone to directly control the device.
the question here is this. Is it possible for Ruby to work with any unkown usb device that you might install onto your system? I'm assuming of course that you have the driver for the device and it's installed. Would ruby be able to directly control The Micro Maestro without using the Com Port driver and the com port module? You would think it would.. I'm still learning it though and I havent' gotten very far.
I'm going to buy the Maestro and experiment with the com port driver at first just to get things up and running.. But does anyone here have knowledge if it's possible to get Ruby to control the device itself? the Maestro comes with lots of documentation and all that. it comes with programming examples, but unfortunately not ruby examples.
any insights would be greatly appreciated!
Grant