-
Notifications
You must be signed in to change notification settings - Fork 1
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
Software crashes on 5V boards #5
Comments
Hi @daan03er , I don't have a Leonardo, so I can't fully replicate what you are seeing. I will try running it on a 5V ATmega328P board, just to see if it demonstrates the same issue. I suspect this is something to do with either the Leonardo, or your set-up. But, from your description, you seem to be doing what I would do.
Best, |
Hi Paul, Yes, the crash still occurs when the analog signal is disconnected. It is however after a longer periode of time compared to when the analog signal is connected. When i set myADC.setInputMultiplexer(ADS1219_CONFIG_MUX_SINGLE_0) it does not crash when the analog signal is disconnected, when it is connected it does crash. No, the signal is set on 1.5V |
Nevermind, it just crashed |
I've got the example running on a 5V ATmega328P. No crashing. Everything is working. Please share a photo of your board, and the wires linking them. I wonder if this is something to do with I2C clock stretching? I know the Due does not support clock stretching. Maybe the Leonardo has the same issue? Thank you,. |
Oh. Hang on... My board just crashed...! Investigating... |
OK. I think this has something to do with the reference voltage. I just tried the following and it seems to have fixed the issue:
Let me know if this fixes the issue on Leonardo too. Thanks, |
This does seems to be working, the program has been running for a minute now, gonna keep it running longer. Do you have any idea what the issue is/was exactly? |
Not exactly... The internal reference is 2.048V. Maybe the chip doesn't like common mode voltages well outside that? Just a guess... But it does seem to have fixed it. I'm going to close this as I think we have resolved the issue - and that it's nothing to do with the library. But I will pin it, to make it easier to find. Please reopen if you see more weirdness... All the best, |
I think it just crashed after 8 minutes.... Running again now |
Yes, just stopped again. |
OK. Mine's still running... I'm not sure what else to suggest...? Maybe double-check those pull-ups? Are you able to put a 'scope or logic analyzer on the SDA and SCL lines? Or, are you able to test it on a 3.3V board - just to confirm that voltage is the critical issue? |
I'll put a scope and the SDA and SCL pins. I dont have a 3v3 board. |
Hi @daan03er , That line of code is just a standard Wire register read. The actual read is done by the Toolkit. I really don't understand why the read is crashing... Are you powering the ADS1219 directly from 5V? And pulling up SCL and SDA to 5V also? Please post a photo of your boards and the connections between them. It always helps... Best wishes, |
Another little trick is to put Thanks for the photo. Taking a look now. |
I connected the ADS1219 to 3v3 as power and now it has been working for over 20 minutes. |
Could it be that at 3v3 the I2C pullup resistors work better then at 5V? Right now I have 5Kohm pullup resistors. |
Your circuit looks OK. I can't see anything wrong... Except I can't make out your resistor values. 5K should be Green Black Red. Or Green Black Black Brown. They look like 500 Ohm: Green Black Black Black? |
I measured them to be sure and they are 5K. |
It seems to be working stable at 3v3. Been running for 1 hour now. |
That's good. I'm pleased it is working. Some decoupling capacitors may help. I suggest adding 2.2uF and 0.1uF close to the AVDD and DVDD pins. |
When running the every example code, the software crashes after around 10 seconds. The reset and power on and off does not reinstate de measurements, only reuploading the code makes sure that the software starts running again. However, crashes again after 10 seconds.
I have the internal I2C pullup resistors disabled and replaced with external 5K ohm resistors. The GND, 5V and address pins are all connected correctly. I am not using the data ready pin.
The IN1 is connected to ground and IN0 is connected to my analog signal.
The text was updated successfully, but these errors were encountered: