All in One PCB Support Thread

lookitsneil
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

Post by lookitsneil » Sun Sep 11, 2016 8:51 pm

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.

lookitsneil
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

Post by lookitsneil » Sun Sep 11, 2016 10:45 pm

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.
Attachments
image.jpeg
image.jpeg (1.7 MiB) Viewed 10864 times

User avatar
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

Post by ubidefeo » Mon Sep 12, 2016 11:32 am

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.
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.

Code: Select all

 
pinMode(STICK_X, INPUT);
pinMode(STICK_Y, INPUT);
when you do an analogRead the ADC is initialised through a macro and reading for that particular port are going to go through the polling/conversion process. No need to set the pin as 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);
hope it helps :)

cheers
ubi
ubi de feo
very curious human being

Future Tailors
Amsterdam- the Netherlands

http://ubidefeo.com
@ubidefeo

User avatar
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

Post by ubidefeo » Mon Sep 12, 2016 11:51 am

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.
:)
ubi de feo
very curious human being

Future Tailors
Amsterdam- the Netherlands

http://ubidefeo.com
@ubidefeo

msykos
Posts: 16
Joined: Sat Jul 09, 2016 10:08 am
Been thanked: 10 times

Re: All in One PCB Support Thread

Post by msykos » Mon Sep 12, 2016 9:35 pm

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.
Attachments
20160912_212121.jpg
20160912_212121.jpg (4.49 MiB) Viewed 10800 times

lookitsneil
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

Post by lookitsneil » Tue Sep 13, 2016 1:36 am

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'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.

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
Photo Sep 13, 3 23 59 AM.jpg (1.69 MiB) Viewed 10792 times
Photo Sep 13, 3 24 22 AM.jpg
Photo Sep 13, 3 24 22 AM.jpg (1.75 MiB) Viewed 10792 times
Photo Sep 13, 3 24 46 AM.jpg
Photo Sep 13, 3 24 46 AM.jpg (1.67 MiB) Viewed 10792 times

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: All in One PCB Support Thread

Post by HoolyHoo » Tue Sep 13, 2016 4:36 am

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.

msykos
Posts: 16
Joined: Sat Jul 09, 2016 10:08 am
Been thanked: 10 times

Re: All in One PCB Support Thread

Post by msykos » Tue Sep 13, 2016 5:13 am

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.

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: All in One PCB Support Thread

Post by HoolyHoo » Tue Sep 13, 2016 5:25 am

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.
Its a known problem with version 1.4 of the AIO. The Usb chip does not play nice with the pi.

lookitsneil
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

Post by lookitsneil » Tue Sep 13, 2016 6:05 am

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.
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. :?:

Locked

Who is online

Users browsing this forum: No registered users and 1 guest