All in One PCB Support Thread
-
- Posts: 16
- Joined: Mon Jul 25, 2016 10:58 pm
- Has thanked: 1 time
- Been thanked: 3 times
Re: All in One PCB Support Thread
yeah thats how I had it wired, I was in the process of rewiring it. Just wanted to show how I have the power wires twisted from the Power boost. Ill clean up the wiring more and take another picture if I am still having issues.
-
- Posts: 16
- Joined: Mon Jul 25, 2016 10:58 pm
- Has thanked: 1 time
- Been thanked: 3 times
Re: All in One PCB Support Thread
I've re wired it and checked all the areas that the problem could be in. I even changed the usb with another one that was prewired.
I have no idea why It sill wouldn't be recognizing the usb hub. The only thing left I could think of is possibly interference in the power wires since they are just all twisted together going to the power boost.
I'm gonna pick up a power distribution board this week and see if it still happens, other than that I'm stumped.
I have no idea why It sill wouldn't be recognizing the usb hub. The only thing left I could think of is possibly interference in the power wires since they are just all twisted together going to the power boost.
I'm gonna pick up a power distribution board this week and see if it still happens, other than that I'm stumped.
- Attachments
-
- image.jpeg (1.7 MiB) Viewed 10862 times
- ubidefeo
- Posts: 10
- Joined: Mon Aug 29, 2016 5:35 am
- Location: Amsterdam
- Has thanked: 13 times
- Been thanked: 13 times
- Contact:
Re: All in One PCB Support Thread
if the code on your gitHub is up to date, I think your issue with reading A0 and A1 stands in these lines in the setup() function.Helder wrote: The fix stabilizes the analog reading a bit but it still has issues with random control movements. Best thing is to reprogram it either with the Arduino IDE and some luck with bootloader mode or a USBasp. If you ground the pads instead it's a little more stable, I'm going to see if using some resistors in place of the caps will have better results but in the end reprogramming it is the way to go and it's cheap to get a solid programmer.
Code: Select all
pinMode(STICK_X, INPUT);
pinMode(STICK_Y, INPUT);
If you use pinMode on those pins you'll be setting DDRF0/1 to act as a Digital Input, which means that at every analogRead() you'll re-initialize the ADC which will probably find a value there already for some weird current and send an apparently random value through.
When you are using a variable voltage divider (such as the micro-pots in the analog stick) you should absolutely not place capacitors: they will store charge and kinda ruin your reading. A resistor will also not do much more than affect the voltage divider giving you a false read.
I also think these lines from the setup() should be placed later in time, maybe after a 100ms delay right before the end of the setup (unless you need them to happen before the Gamepad.begin()
Code: Select all
xZero = analogRead(STICK_X);
yZero = analogRead(STICK_Y);

cheers
ubi
ubi de feo
very curious human being
Future Tailors
Amsterdam- the Netherlands
http://ubidefeo.com
@ubidefeo
very curious human being
Future Tailors
Amsterdam- the Netherlands
http://ubidefeo.com
@ubidefeo
- ubidefeo
- Posts: 10
- Joined: Mon Aug 29, 2016 5:35 am
- Location: Amsterdam
- Has thanked: 13 times
- Been thanked: 13 times
- Contact:
Re: All in One PCB Support Thread
oh, also make sure you have AREF to VCC (and the 10µF aluminium/tantalum cap) and AGND to GND (no cap).
those affect the behaviour of the ADC.

those affect the behaviour of the ADC.

ubi de feo
very curious human being
Future Tailors
Amsterdam- the Netherlands
http://ubidefeo.com
@ubidefeo
very curious human being
Future Tailors
Amsterdam- the Netherlands
http://ubidefeo.com
@ubidefeo
Re: All in One PCB Support Thread
So I'm having the same issues with the usb port. My keyboard and usb joystick work fine, WiFi and usb memory stick don't work. The memory stick light just flashes and never stops. I tried twisting the wires, no help. Used power strip to attach the green and white wires to for troubleshooting.The keyboard and WiFi dongle and usb memory stick work fine until I attached the board. I could take off the usb hub wires and the board works fine. Have nothing else to try. The board is no good to me if I can't add games. I can deal with no WiFi but the usb memory stick not working is a deal breaker. Hope someone figures this out soon.
All the power and grounds are coming from the power strip. Checked the voltage at the usb hub and got 5.05 vdc.
All the power and grounds are coming from the power strip. Checked the voltage at the usb hub and got 5.05 vdc.
- Attachments
-
- 20160912_212121.jpg (4.49 MiB) Viewed 10798 times
-
- Posts: 16
- Joined: Mon Jul 25, 2016 10:58 pm
- Has thanked: 1 time
- Been thanked: 3 times
Re: All in One PCB Support Thread
I'm having the same problem now. I rewired mine and finally got the USB drive to flash, but all I get is flashing from one and it never stops. Or the others I've tried flash for a few seconds stop and don't do much else. All my flash drives are formatted to fat32 and have the folder named retropie in it, so I'm sure its not that.msykos wrote:So I'm having the same issues with the usb port. My keyboard and usb joystick work fine, WiFi and usb memory stick don't work. The memory stick light just flashes and never stops. I tried twisting the wires, no help. Used power strip to attach the green and white wires to for troubleshooting.The keyboard and WiFi dongle and usb memory stick work fine until I attached the board. I could take off the usb hub wires and the board works fine. Have nothing else to try. The board is no good to me if I can't add games. I can deal with no WiFi but the usb memory stick not working is a deal breaker. Hope someone figures this out soon.
All the power and grounds are coming from the power strip. Checked the voltage at the usb hub and got 5.05 vdc.
I've twisted the data cables and tried the code fix and nether of these work. Its all wired up as it should be. Anyone have any idea what it could be? Here's the latest rewired pics if they could help at all. I'm almost positive it cant be the wiring at this point, I've redone it like 4 times.
- Attachments
-
- Photo Sep 13, 3 23 59 AM.jpg (1.69 MiB) Viewed 10790 times
-
- Photo Sep 13, 3 24 22 AM.jpg (1.75 MiB) Viewed 10790 times
-
- Photo Sep 13, 3 24 46 AM.jpg (1.67 MiB) Viewed 10790 times
Re: All in One PCB Support Thread
The usb is a known problem. Try adding "dwc_otg.speed=1" to cmdline.txt without the quotes. At the very least should be able to get wifi dongle working and ssh games into pi sd card.
Re: All in One PCB Support Thread
Correct me if I'm wrong. I haven't read anywhere that the first set of boards had this usb problem, just the second set. I tried shielded wire but floated both ends, today I'll ground one end and see what that does. I'll also add the line to slow down the speed.
Re: All in One PCB Support Thread
Its a known problem with version 1.4 of the AIO. The Usb chip does not play nice with the pi.msykos wrote:Correct me if I'm wrong. I haven't read anywhere that the first set of boards had this usb problem, just the second set. I tried shielded wire but floated both ends, today I'll ground one end and see what that does. I'll also add the line to slow down the speed.
-
- Posts: 16
- Joined: Mon Jul 25, 2016 10:58 pm
- Has thanked: 1 time
- Been thanked: 3 times
Re: All in One PCB Support Thread
In my post I wrote that I tried the code fix, Helder said to write it in the config.txt. I've tried that and that didn't work. Just tried putting it in the cmdline.txt like you just said and that didn't work either.HoolyHoo wrote:The usb is a known problem. Try adding "dwc_otg.speed=1" to cmdline.txt without the quotes. At the very least should be able to get wifi dongle working and ssh games into pi sd card.

Who is online
Users browsing this forum: No registered users and 1 guest