Help with arduino UNOJOY app

440 views
Skip to first unread message

gazz

unread,
Sep 7, 2013, 10:36:19 PM9/7/13
to notti...@googlegroups.com
Has anyone used 'unojoy' before? 
it allows an arduino uno to be used as a HID joystick device by changing the software on the board from the arduino serial to HID usb, 

I've had the example working, but it is set up as a PS3 controller, so 8 axis, 12 buttons designated as the PS3 buttons, i.e. 'triangle' 'square' etc.
I was hoping to modify it to remove the axis', rename the buttons, add more buttons and so on, but it is very complicated as no end of things seem to need changing, usb descriptors and so on,

The main problem is i need to use a keypad matrix rather than direct connection buttons, as i have 36 buttons to assign to joystick button inputs,

I have no need for analog axis, but i have read at least one axis is needed or windows won't accept it as a joystick???

Of course i am going to complicate it later on by trying to run a keypad to lcd script at the same time... so pressing a button sends a joystick button press over usb, and puts text on the lcd.

I have the button press text to lcd part working fine, so now i'm looking at the button press to usb joystick part,
i've attached my script as a text file, to try and stop clogging my posts up and putting people off reading it, 

What i am hoping is that i just need to add a bit of code to each 'case' statement after the lcd.print part, something like 'send usb button 1', but of course that would be too simple wouldnt it?


ticket printer.txt

jfowkes

unread,
Sep 8, 2013, 8:04:11 AM9/8/13
to notti...@googlegroups.com
What's the reason for using the joystick?

If you're looking to modify the unojoy code, you might want to try an Arduino specific group or forum. Not wanting to put you off posting here, but you'll probably have more success with another site. Looks like http://unojoy.tumblr.com is active for the unojoy specifically.

USB descriptors are a bit complex, but if you read around the subject you should be able to figure it out. Try "USB in a nutshell" and Jan Axelson's site to start with.

Michael Erskine

unread,
Sep 8, 2013, 8:26:32 AM9/8/13
to nottinghack

I used a minimus for my HID joystick input on BMO but perhaps you might get good mileage by hacking a cheap USB joypad rather than put all the work onto one poor UNO!

--
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Gazz

unread,
Sep 8, 2013, 8:56:01 AM9/8/13
to notti...@googlegroups.com
The joystick part is needed to get the ticket machine key presses into the
bus simulator,
i am thinking i could do it by connecting the buttons in parallel to usb
joystick input board that accepts a matrix (i.e. a leo bodnar inpout board)
or program up my spare minimus as a gamepad input,

i guess Michael is right tho... what i am trying to do may just be too much
for a uno,

--------------------------------------------------
From: "jfowkes" <james...@gmail.com>
Sent: Sunday, September 08, 2013 1:04 PM
To: <notti...@googlegroups.com>
Subject: [Nottinghack] Help with arduino UNOJOY app

Joe Duckhouse

unread,
Sep 8, 2013, 7:19:29 PM9/8/13
to notti...@googlegroups.com
Try http://kadevice.com/loader-software/
Really simple way to use a minimus as a custom joypad.
Should be perfect for what you need.


To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack+unsubscribe@googlegroups.com.

Gazz

unread,
Sep 8, 2013, 7:54:28 PM9/8/13
to notti...@googlegroups.com
i'd already found the kade thingy, asked a question but not had a reply on
there forum yet,
but thanks anyway,

and you are right, that kade thing is absolutely brilliant, upto 20 buttons
as a gamepad or keyboard, and nice and easy to set up,
i just need it to be able to accept a matrix of buttons and it'll be what i
use.

--------------------------------------------------
From: "Joe Duckhouse" <cong...@gmail.com>
Sent: Monday, September 09, 2013 12:19 AM
To: <notti...@googlegroups.com>
Subject: Re: [Nottinghack] Help with arduino UNOJOY app

> Try http://kadevice.com/loader-software/
> Really simple way to use a minimus as a custom joypad.
> Should be perfect for what you need.
>
>
> On 8 September 2013 13:56, Gazz <ga...@kampenwagen.co.uk> wrote:
>
>> The joystick part is needed to get the ticket machine key presses into
>> the
>> bus simulator,
>> i am thinking i could do it by connecting the buttons in parallel to usb
>> joystick input board that accepts a matrix (i.e. a leo bodnar inpout
>> board)
>> or program up my spare minimus as a gamepad input,
>>
>> i guess Michael is right tho... what i am trying to do may just be too
>> much for a uno,
>>
>> ------------------------------**--------------------
>> From: "jfowkes" <james...@gmail.com>
>> Sent: Sunday, September 08, 2013 1:04 PM
>> To: <notti...@googlegroups.com>
>> Subject: [Nottinghack] Help with arduino UNOJOY app
>>
>>
>> What's the reason for using the joystick?
>>>
>>> If you're looking to modify the unojoy code, you might want to try an
>>> Arduino specific group or forum. Not wanting to put you off posting
>>> here,
>>> but you'll probably have more success with another site. Looks like
>>> http://unojoy.tumblr.com is active for the unojoy specifically.
>>>
>>> USB descriptors are a bit complex, but if you read around the subject
>>> you
>>> should be able to figure it out. Try "USB in a nutshell" and Jan
>>> Axelson's
>>> site to start with.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups
>>> "Nottingham Hackspace - Nottinghack" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> email to
>>> nottinghack+unsubscribe@**googlegroups.com<nottinghack%2Bunsu...@googlegroups.com>
>>> .
>>> For more options, visit
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>.
>>>
>>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Nottingham Hackspace - Nottinghack" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to
>> nottinghack+unsubscribe@**googlegroups.com<nottinghack%2Bunsu...@googlegroups.com>
>> .
>> For more options, visit
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Nottingham Hackspace - Nottinghack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nottinghack...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages