[NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Various user-contributed guides for hardware-related things
PacDad
Posts: 1
Joined: Sat Jun 03, 2017 2:24 am

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by PacDad » Sat Jun 03, 2017 2:39 am

This is awesome. Thank you for sharing the build and the code. I'm working on my second handheld right now and I'm hoping to use your guide to improve on my last one. I have the osepp pro mini and ftdi header (Closest thing I could get for now) I have almost finished wiring everything up, and then I'll be testing it with your code to see if it works for me. This is my first project to include Arduino boards and coding so I can't imagine I'll get it right first time, but fingers crossed. Thanks again :)

Atom
Posts: 5
Joined: Thu Apr 20, 2017 5:22 pm
Has thanked: 1 time

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by Atom » Thu Jun 22, 2017 7:43 pm

I am using two psp1000 analog sticks and they are outputting to the Leonardo pro micro when I am not moving them. Any suggestions to fix this?

jermzz
Posts: 253
Joined: Sat Jun 18, 2016 7:40 pm
Has thanked: 43 times
Been thanked: 89 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by jermzz » Sat Jun 24, 2017 11:10 am

Atom wrote:
Thu Jun 22, 2017 7:43 pm
I am using two psp1000 analog sticks and they are outputting to the Leonardo pro micro when I am not moving them. Any suggestions to fix this?
Move them around while Es is loading. They need to calibrate. Slow circles a few times on each stick.

User avatar
isaakrydel
Posts: 10
Joined: Wed Jul 12, 2017 6:36 pm
Has thanked: 13 times
Been thanked: 8 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by isaakrydel » Wed Jul 12, 2017 6:41 pm

Hey Sota! I really appreciate your guide, it's been a lot of help to me! But, I'm getting an error on Arduino when I program gamecontroller.ino to my Leonardo Pro Micro clone (the same blue one you have). Here's the error:

Gamecontroller:13: error: 'Bounce' does not name a type
Gamecontroller:14: error: 'Bounce' does not name a type
Gamecontroller.ino: In function 'void setup()':
Gamecontroller:32: error: 'Joystick' was not declared in this scope
Gamecontroller.ino: In function 'void loop()':
Gamecontroller:44: error: 'button9' was not declared in this scope
Gamecontroller:45: error: 'button10' was not declared in this scope
Gamecontroller:48: error: 'Keyboard' was not declared in this scope
Gamecontroller:48: error: 'KEY_ENTER' was not declared in this scope
Gamecontroller:54: error: 'Keyboard' was not declared in this scope
Gamecontroller:54: error: 'KEY_ESC' was not declared in this scope
Gamecontroller:61: error: 'Joystick' was not declared in this scope

Any idea how to fix it? I would really appreciate it :D

Baconbomb80
Posts: 13
Joined: Tue Jul 04, 2017 12:12 pm
Has thanked: 5 times
Been thanked: 2 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by Baconbomb80 » Wed Aug 09, 2017 2:12 pm

I'm using a psp 2000 and having some issues. Can only get it to go left and up.
And I have to calibrate it in windows before it works.

Benny
Posts: 4
Joined: Tue Aug 08, 2017 1:36 am

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by Benny » Fri Aug 11, 2017 9:17 am

How have you wired up the leonardo pro micro to the raspberry pi zero?

Baconbomb80
Posts: 13
Joined: Tue Jul 04, 2017 12:12 pm
Has thanked: 5 times
Been thanked: 2 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by Baconbomb80 » Sat Aug 12, 2017 1:38 pm

Benny wrote:
Fri Aug 11, 2017 9:17 am
How have you wired up the leonardo pro micro to the raspberry pi zero?
I haven't. Was trying to the pc first before i did that but im thinking it's the Pro Micro as it's an old one used before.

I would like some instructions on how to measure the jostick with a multimeter to make sure i haven't destroyed it.

User avatar
goosewerks
Posts: 93
Joined: Mon May 22, 2017 8:27 am
Has thanked: 18 times
Been thanked: 39 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by goosewerks » Sat Aug 12, 2017 8:18 pm

Put one lead on GND and one lead on X or Y axis and measure the resistance change as you move the joystick.

Baconbomb80
Posts: 13
Joined: Tue Jul 04, 2017 12:12 pm
Has thanked: 5 times
Been thanked: 2 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by Baconbomb80 » Sun Aug 13, 2017 12:41 pm

goosewerks wrote:
Sat Aug 12, 2017 8:18 pm
Put one lead on GND and one lead on X or Y axis and measure the resistance change as you move the joystick.
Is it normal to have it go from 230-430-530? (the middle value is when its in the idle position)?

User avatar
goosewerks
Posts: 93
Joined: Mon May 22, 2017 8:27 am
Has thanked: 18 times
Been thanked: 39 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by goosewerks » Sun Aug 13, 2017 12:49 pm

Baconbomb80 wrote:
Sun Aug 13, 2017 12:41 pm
goosewerks wrote:
Sat Aug 12, 2017 8:18 pm
Put one lead on GND and one lead on X or Y axis and measure the resistance change as you move the joystick.
Is it normal to have it go from 230-430-530? (the middle value is when its in the idle position)?
Yes. It's measuring resistance from 0 (bottom) to 1xxx (top). The arduino translates that data into an open or close for the Pi.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest