Read joystick usb

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
elge10
Posts: 3
Joined: Mon Jan 16, 2012 3:30 pm

Read joystick usb

Post by elge10 »

i want to know if it's possible to read an usb joystick for pc with an ECIO40 or with an EB039 associate to a 16F877A ?
if it's possible can you explain me or give me source flowcode please
thank you.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times

Re: Read joystick usb

Post by kersing »

Not possible. An USB joystick (slave device) needs to be connected to an USB host. The 8 bit PIC processors (used on ECIO 40) are USB slaves, not USB hosts. EB039 is USB slave as well.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

elge10
Posts: 3
Joined: Mon Jan 16, 2012 3:30 pm

Re: Read joystick usb

Post by elge10 »

can i make this with an other PIC or an other composant with flowcode ?

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times

Re: Read joystick usb

Post by kersing »

No, Flowcode does not implement USB host mode at the moment. For an easy solution with a micro controller you could check arduino with USB host shield.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

elge10
Posts: 3
Joined: Mon Jan 16, 2012 3:30 pm

Re: Read joystick usb

Post by elge10 »

Thank you Kersing

Post Reply