Analog pins spike suddenly to 1.8V

287 views
Skip to first unread message

Weboide

unread,
Jun 19, 2013, 10:34:19 AM6/19/13
to beagl...@googlegroups.com
Using the analog pins on my BBB, i have a light sensor (resistor) and a TMP36 temperature sensor, both plugged as shown on adafruit.

Would there any reason (on a BBB) that the following spike to 1.8V appear on both pins (and delayed)? This happened to me twice now. Otherwise they work fine...

See the second chart at http://beaglebone.codealpha.net/

I would understand that the light sensor could somehow show 1.8V if it is too bright, but the temperature sensor suddenly climbs up as well and shows 130 degrees Celsius! Is there any interference between the ADC pins or GND's,etc..., or did I hit a fuse or something?


The down spikes at the end are when I blew on the sensors and put my hand over the light sensor. And then it looks like the TMP36 finally went down in temperature.

Arnaud

Gerald Coley

unread,
Jun 19, 2013, 10:37:18 AM6/19/13
to beagl...@googlegroups.com
Are you using the ADC ground as your reference ground?

Gerald



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Gerald
 

Arnaud Soyez

unread,
Jun 19, 2013, 10:40:01 AM6/19/13
to beagl...@googlegroups.com
Yes, using ADC ground for both.

The TMP36 is connected to 5V DC though (but should always return <= 1.8V).

2013/6/19 Gerald Coley <ger...@beagleboard.org>:
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/jm2QpEQNYoY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Weboide

unread,
Jun 19, 2013, 10:43:17 AM6/19/13
to beagl...@googlegroups.com
Could it be related to http://hipstercircuits.com/noise-on-the-analog-pins-causes-the-adc-sampler-to-go-out-of-whack/ ?
>> email to beagleboard+unsubscribe@googlegroups.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
>
>
>
> --
> Gerald
>
> ger...@beagleboard.org
> g-co...@ti.com
> http://beagleboard.org/
> http://circuitco.com/support/
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/jm2QpEQNYoY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beagleboard+unsubscribe@googlegroups.com.

Gerald Coley

unread,
Jun 19, 2013, 10:52:26 AM6/19/13
to beagl...@googlegroups.com
Could be. Which pins are you using?

Gerald



To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Arnaud Soyez

unread,
Jun 19, 2013, 10:58:34 AM6/19/13
to beagl...@googlegroups.com
P9_38 and P9_40 for reading ADC.

2013/6/19 Gerald Coley <ger...@beagleboard.org>:
>>> >> email to beagleboard...@googlegroups.com.
>>> >>
>>> >> For more options, visit https://groups.google.com/groups/opt_out.
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Gerald
>>> >
>>> > ger...@beagleboard.org
>>> > g-co...@ti.com
>>> > http://beagleboard.org/
>>> > http://circuitco.com/support/
>>> >
>>> > --
>>> > For more options, visit http://beagleboard.org/discuss
>>> > ---
>>> > You received this message because you are subscribed to a topic in the
>>> > Google Groups "BeagleBoard" group.
>>> > To unsubscribe from this topic, visit
>>> > https://groups.google.com/d/topic/beagleboard/jm2QpEQNYoY/unsubscribe.
>>> > To unsubscribe from this group and all its topics, send an email to
>>> > beagleboard...@googlegroups.com.
>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>> >
>>> >
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to beagleboard...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
>
>
>
> --
> Gerald
>
> ger...@beagleboard.org
> g-co...@ti.com
> http://beagleboard.org/
> http://circuitco.com/support/
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/jm2QpEQNYoY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Gerald Coley

unread,
Jun 19, 2013, 11:02:08 AM6/19/13
to beagl...@googlegroups.com
You have the ability in the processor to connect AIN0-3 to a pullup. It is used in TSC mode. Move to a higher AIN number and see if the same thing happens there. 

Gerald

Arnaud Soyez

unread,
Jun 19, 2013, 11:14:03 AM6/19/13
to beagl...@googlegroups.com
You mean the same setup but different pin for my temperature sensor?
How would a pullup help in analog?

2013/6/19 Gerald Coley <ger...@beagleboard.org>:

Gerald Coley

unread,
Jun 19, 2013, 11:15:48 AM6/19/13
to beagl...@googlegroups.com
Yes.

It is for the Touch Screen Controller mode which is the primary function of this interface.. Have you looked at the TRM?

Gerald

Arnaud Soyez

unread,
Jun 19, 2013, 11:29:53 AM6/19/13
to beagl...@googlegroups.com
Yes I did, that's why I picked those, since I didn't use the touch
screen controller.

Do you think that for example when the light sensor is in direct
sunlight there is a lot of noise coming in and messing up the ADC? And
you think using a pullup or switching to a higher pin would solve
this?

Just trying to understand what I am doing wrong and what my solutions are.

2013/6/19 Gerald Coley <ger...@beagleboard.org>:

Gerald Coley

unread,
Jun 19, 2013, 11:46:19 AM6/19/13
to beagl...@googlegroups.com
Put a storage scope on the analog signal and capture it to check the raw data being fed into the inputs over time.

You can also connect the scope and expose your sensor to various light levels and see what the output does,.

Gerald

Weboide

unread,
Jun 19, 2013, 3:48:47 PM6/19/13
to beagl...@googlegroups.com
Would there be any problems with the two sensors sharing the same AGND? Can noise propagate through the GND pin?

Gerald Coley

unread,
Jun 19, 2013, 3:51:33 PM6/19/13
to beagl...@googlegroups.com
Not likely. 

Gerald

Arnaud Soyez

unread,
Jun 19, 2013, 6:52:12 PM6/19/13
to beagl...@googlegroups.com
I think the voltage on the analog pin to the light sensor may have
been > 1.8V (probably around 3V) when too much light was coming in.
What do you think would happen on the ADC in that case? Wouldn't it just fry?
I redid my whole circuit and so far all tests are good.



2013/6/19 Gerald Coley <ger...@beagleboard.org>:

Gerald Coley

unread,
Jun 19, 2013, 7:10:10 PM6/19/13
to beagl...@googlegroups.com
OH, eventually it will burn out and the processor will need to be replaced. If that is likely to happen, you may want to consider a voltage divider and a zener diode.

Gerald

Matthew

unread,
Oct 23, 2014, 7:19:23 PM10/23/14
to beagl...@googlegroups.com
Hi Gerald,

It is stated many times that the maximum voltage for the analog inputs is 1.8V, will a zener diode of 1.8V be enough to protect the analog input ?

The chip will need a little head room above 1.8V (say 0.05V or so) for a 1.8V zener to protect it. Is there a little bit of head room above 1.8V where the input would be saturated, but chip will not be damaged?

                100omh
___  /\  /\  /\  /\________________________________ AIN[X]
   \/  \/  \/  \/             |
                           ___|__/
                          /  /\     1.8V Zener
                            /__\
                              |
______________________________|____________________ AGND


Thanks,
Matthew

John Syn

unread,
Oct 24, 2014, 2:18:55 PM10/24/14
to beagl...@googlegroups.com

From: Matthew <mat...@optimal-power-solutions.com>
Reply-To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Date: Thursday, October 23, 2014 at 4:19 PM
To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Subject: Re: [beagleboard] Analog pins spike suddenly to 1.8V

Hi Gerald,

It is stated many times that the maximum voltage for the analog inputs is 1.8V, will a zener diode of 1.8V be enough to protect the analog input ?

The chip will need a little head room above 1.8V (say 0.05V or so) for a 1.8V zener to protect it. Is there a little bit of head room above 1.8V where the input would be saturated, but chip will not be damaged?

                100omh
___  /\  /\  /\  /\________________________________ AIN[X]
   \/  \/  \/  \/             |
                           ___|__/
                          /  /\     1.8V Zener
                            /__\
                              |
______________________________|____________________ AGND

The zener will start to conduct near 1.8V so the accuracy of your analog inputs will be affected. It is better to use a diode with a small volt drop (Schottky or something equivalent) with the anode connected to the AIN and the cathode connected to the analog supply 1V8 rail. The processor will normally have an internal diode doing the same thing, but the current capabilities will be limited. By placing a fast low volt drop diode in parallel will help protect the analog input. A small capacitor (10nF ceramic 0402) between AIN and AGND will help slow the input pulse and give the diode time to respond.  

Regards,
John
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages