From owner-freebsd-usb@FreeBSD.ORG Wed Oct 14 19:27:32 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66A251065692 for ; Wed, 14 Oct 2009 19:27:32 +0000 (UTC) (envelope-from tlb@tlb.org) Received: from anybots.com (mail.anybots.com [64.142.12.96]) by mx1.freebsd.org (Postfix) with SMTP id 410568FC1D for ; Wed, 14 Oct 2009 19:27:31 +0000 (UTC) Received: (qmail 71603 invoked from network); 14 Oct 2009 19:27:30 -0000 Received: from unknown (HELO mobile005.mycingular.net) (tlb@32.177.201.13) by mail.anybots.com with SMTP; 14 Oct 2009 19:27:30 -0000 Message-Id: <45D4F638-E36E-4073-BA26-7A747E3DC58C@tlb.org> From: Trevor Blackwell To: Sven Hazejager In-Reply-To: <09101419165353.-1077948416@somehost.domainz.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 14 Oct 2009 12:27:28 -0700 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> X-Mailer: Apple Mail (2.936) Cc: freebsd-usb@freebsd.org Subject: Re: Simple manner to read 1-pin high/low from USB under FBSD? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2009 19:27:32 -0000 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