Date: Wed, 14 Oct 2009 12:27:28 -0700 From: Trevor Blackwell <tlb@tlb.org> To: Sven Hazejager <sven@hazejager.nl> Cc: freebsd-usb@freebsd.org Subject: Re: Simple manner to read 1-pin high/low from USB under FBSD? Message-ID: <45D4F638-E36E-4073-BA26-7A747E3DC58C@tlb.org> In-Reply-To: <09101419165353.-1077948416@somehost.domainz.com> References: <0910111122164F.-1077952704@somehost.domainz.com> <200910111217.49002.hselasky@c2i.net> <09101116183255.-1077948416@somehost.domainz.com> <200910111639.07588.hselasky@c2i.net> <09101118515750.-1077948416@somehost.domainz.com> <8CA5CC87-EA53-4055-9747-D23B1F853537@tlb.org> <09101419165353.-1077948416@somehost.domainz.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Sounds reasonable. I've also had good luck with the ADAM 6000 family, http://www.bb-elec.com/product_multi_family.asp?MultiFamilyId=12&TrailType=Sub&Trail=39 Plug them into power and Ethernet and you can telnet to them and give text commands to read A/D pins. Easy to automate from Python just using sockets. They're obviously less flexible than an Arduino, but they do come in nice little boxes with screw terminals, static zap protection on the inputs, blinking lights and all that good stuff for $200-$400 each. I think there's a USB version too that does the same protocol over serial instead of sockets. But Ethernet is pretty nice because you can put it anywhere, or have more than one. -- Trevor Blackwell tlb@tlb.org 650 776 7870 On Oct 14, 2009, at 10:21 , Sven Hazejager wrote: >> Try Phidgets. http://phidgets.com. It's easy to read digital >> signals as a HID device. You can get started with not much more than: > > Thanks for all the suggestions. I had trouble getting the crude > analog-to-digital (on/off) circuit to work, so I have decided to use > an Arduino Nano (http://www.arduino.cc) that actually has 10-bit > analog inputs. So, I will be doing the pulse counting on the > Arduino, and output interval values through its USB-serial > interface, which I'll read out from Perl or C or something. > > This should all work from FreeBSD without any problems! > > Sven
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45D4F638-E36E-4073-BA26-7A747E3DC58C>