Posted 17 February 2014 - 04:39 PM
I'm developing a sensor station.... it will have more than 20 digital sensor. so in this case, I will using IC's 4066 to switch a USB Game Controller buttons.
Digital Sensors ==> 4066 ==> Drive USB Game Controller Buttons ==> Send Byte to PC / Netduino
I've got no problem to do it in windows app. but hopefully to do it on Netduino. is any one have an idea how to send byte from USB to netduino? can I solve this by using USB host shield? or maybe FTDI cable?
appreciate any suggestion.
4066 is just like a relay, it has 4 block switch on 1 IC.
Posted 23 February 2014 - 10:36 AM
Posted 23 February 2014 - 11:19 AM
I find your project description to be somewhat cryptic - are you looking to have the Netduino act as USB host reading the gamepad or is it the other way around - e.g. the Netduino should act as a gamepad that will be read by a PC over USB as means of sending sensor information to the PC?
thanks for your response. Actually I just need to watch 16 and more digital input at the same time. last time I did it in my PC using usb gamepad. This gamepad sent data byte to my PC. (button 1 = byte 1, Button 3 = byte 4, button 4 = byte 8 and so on).
but I dont know how to do it in the Netduino.
If there any shield which has 16 button connect to a serial port then it would be solve the problem.
Posted 23 February 2014 - 01:32 PM
ushort my16bits = bus.Value;Here's the driver with some examples: http://forums.netdui...17-io-expander/ The driver can also alert you with interrupts whenever any of the 16 pins changes.
Posted 23 February 2014 - 01:46 PM
but... I've using SPI pin to control 16x2LCD display using M74HC595, can I use it together?
Posted 23 February 2014 - 05:38 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users