Page 7 of 10

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

Posted: Sat Jun 03, 2017 2:39 am
by PacDad
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)

Posted: Thu Jun 22, 2017 7:43 pm
by Atom
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)

Posted: Sat Jun 24, 2017 11:10 am
by jermzz
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.

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

Posted: Wed Jul 12, 2017 6:41 pm
by isaakrydel
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

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

Posted: Wed Aug 09, 2017 2:12 pm
by Baconbomb80
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.

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

Posted: Fri Aug 11, 2017 9:17 am
by Benny
How have you wired up the leonardo pro micro to the raspberry pi zero?

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

Posted: Sat Aug 12, 2017 1:38 pm
by Baconbomb80
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.

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

Posted: Sat Aug 12, 2017 8:18 pm
by goosewerks
Put one lead on GND and one lead on X or Y axis and measure the resistance change as you move the joystick.

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

Posted: Sun Aug 13, 2017 12:41 pm
by Baconbomb80
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)?

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

Posted: Sun Aug 13, 2017 12:49 pm
by goosewerks
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.