-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mega Rx from Xbee causing high voltage 1023 on all analog input pins #20
Comments
Problem actually appears code related somehow after I tried to scrap away code..also the hardware reasoning would not make much sense. I gutted some blocks of code and issue went away... will post back with more info if I find the cause for why the analog pin readings were being affected.. For whatever reason the Rx serial data from xbee was causing an issue with the analog input voltage readings, which would remain high at 1023 even if you then took the pin and grounded it while looping..readings would not zero out. |
Backing up and looking for more info on the analog pins, I found that there must have been an issue with the reference voltage. |
What XBee shield are you using? Did you try with just the XBee shield or just the GSM shield? |
Are you just jumping the 5V pin to aRef? If so, I'd suspect that the voltage regulator is struggling a bit here. Are you just plugged into USB?
|
Direct Xbee or an Xbee adaptor directly to the board, 5v/3.3v, GND, Tx, Rx Best Regards, Alec Mayall On Wed, Dec 23, 2015 at 5:14 AM, ClintonKeith notifications@github.com
|
But what is supplying the power to the Arduino? Some USB hubs don't supply enough current and might show what you are seeing. The VCC that you're plugging directly into the aref (with EXTERNAL) acts the same as using the INTERNAL flag, except that the 5V that is used for the internal reference is further from the voltage regulator. While your solution works, you might be seeing some other low-current effects elsewhere. I'd test this by plugging in a 9V power supply. |
I have a custom board built more or less as a shield on the mega, and then Not sure why adjusting to EXTERNAL and providing the 5V directly to the The problem began, or I noticed it rather, when I was trying to read the Things are looking fine now. Best Regards, Alec Mayall On Wed, Dec 23, 2015 at 8:54 AM, ClintonKeith notifications@github.com
|
Hello,
Having a very strange issue that seems associated to the Tx packet from the Xbee to the Mega Rx (on any serial port) which then causes a stuck high voltage on all the mega input pins. Nothing seems to reset the high voltage (1023 analog reading on any input pin) except a hard reset which then reads normal until a the xbee is attached. Prior to updating the latest Xbee lib, it would only start the issue when a Rx packet came through to the mega, now it happens when I connect the Tx from the Xbee to the Rx of the mega pretty quickly. and hangs as it had before. Not sure if you might understand more of how the Rx packets might affect the analog input readings of the mega.
Thanks.
Alec
The text was updated successfully, but these errors were encountered: