
[NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)
Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)
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 

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)
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?
Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)
Move them around while Es is loading. They need to calibrate. Slow circles a few times on each stick.
- 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)
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
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

-
- 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)
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.
And I have to calibrate it in windows before it works.
Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)
How have you wired up the leonardo pro micro to the raspberry pi zero?
-
- 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)
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.
- 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)
Put one lead on GND and one lead on X or Y axis and measure the resistance change as you move the joystick.
-
- 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)
Is it normal to have it go from 230-430-530? (the middle value is when its in the idle position)?goosewerks wrote: ↑Sat Aug 12, 2017 8:18 pmPut one lead on GND and one lead on X or Y axis and measure the resistance change as you move the joystick.
- 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)
Yes. It's measuring resistance from 0 (bottom) to 1xxx (top). The arduino translates that data into an open or close for the Pi.Baconbomb80 wrote: ↑Sun Aug 13, 2017 12:41 pmIs it normal to have it go from 230-430-530? (the middle value is when its in the idle position)?goosewerks wrote: ↑Sat Aug 12, 2017 8:18 pmPut one lead on GND and one lead on X or Y axis and measure the resistance change as you move the joystick.
Who is online
Users browsing this forum: No registered users and 1 guest