maxuino - problem with bouncing analog input

ćwiek's icon

hi! i have a problem with simple patch, with even more simple schematics. it is voltage divider, and i cant get rid of bouncing values from analog input. i don't want to smooth it by software, because of my need to get data with good accuracy.

anyway, finally i want to make something like galvanic skin response reader, but for a group of people connected in series, to sense number of them. do you know any better way, to do this other than using voltage divider?

3608.shit.jpg
jpg
dtr's icon

what kind of power supply are you using with the arduino? i had noise trouble because of a switching power supply. it's better to get a regular one.

you're problem might be something else though. the regularity in the oscillation is odd.

Luke Woodbury's icon
ćwiek's icon

thanks for answers.
dtr:
I have just tried with external power source - 9v batery, but nothing has changed. maybe the problem is in shared ground with usb interface?
Luke Woodbury:
good idea to use external ic, but unfortunately this chip is for hex operations, so it works only with binary numbers..

nnimar's icon

How about using a capacitor ?

ćwiek's icon

i found that capasitor, works like slide object, and it doesnt works for my situation. i need accurate readings...

cappy2112's icon

Cwiek:
"but unfortunately this chip is for hex operations, so it works only with binary numbers.. "

A hex contact debouncer means there a 6 contact debouncers in 1 IC package.
It has nothing to do with binary numbers.
In other words, you could use it to debounce the contacts of 6 switches or 6 relays.

Your issue has nothing to do with debouncing. I haven't seen you mention any switches or contacts opening/closing.

Where is the signal coming from that you are looking at with an analog input?

I would try isolating that using an optoisolator..

You have power supply noise (aka ripple) or some kind of ground loop.

If you can avoid using the USB connection, try doing that.
Many PCs (even big name brands) use the cheapest, crappiest power supplies on the planet.

I recently measured 150mv p-p of noise coming from a brand new Acer computer.

A small capacitor between power & ground may help.

ćwiek's icon

finally i have used ADuM4160 + external 9v bat, and it works super great! thanks for help :)
adam