Pages: [1]   Go Down
Author Topic: Atmega168 negative input protection  (Read 645 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear friends,

I would like to develop an electromyogram circuit using an Atmega168. For any of you who don't know, the electromyogram is the plot of the electrical activity of a muscle as it contracts. Depending on the amplifiers and filters used, it outputs voltage from -1V to +1V. I would like to read this voltage with an ADC pin of an Atmega168, considering I am interested only in the POSITIVE output of the electromyograph. I do not care about the negative waves, but:
1. Because the negative waves EXIST, is there any chance of destroying my Amega168? I know it does not read negative voltages, but in this case I do not need them. Will the Atmega ignore them or it will be fried by them?
2. If the answer is positive to the last question, how can I protect the Atmega from the negative voltage? I do not want it necessarily shifted above 0 (like when using a diode rectifier bridge), I simple don't need th signal.

Thank you very much.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Build a Voltage divider, see:
http://www.psocdeveloper.com/forums/viewtopic.php?f=42&t=8573
Make Vcc=2V, do not add the capacitor. Ignore any value, you get from the ADC, between 0 and +1V, this is ignore any conversion < ADC resolution / 2.

However, improvements are needed because you lose resolution.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you, it is a good idea. What about using an op-amp connecting the negative power supply to ground, would that output only the positive waves of the signal? Like in the first image on this link. http://mutable-instruments.net/forum/discussion/938/cv-inputs-how-to-protect-them-from-negative-or-too-high-voltages/p1

Would this lower the gain or influence the resolution of the signal?
Logged

UK
Offline Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

All you need is 2 diodes and a small resistor, and optionally a capacitor:


http://www.thebox.myzen.co.uk/Tutorial/Protection.html

Ideally you would use schottky diodes, as they have a lower voltage drop, and fast switching.
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1. Yes.
2. Use a resistor of sufficient value. The pins are clamp diodes to limit voltages on the pins but you need to make sure that the current going through the clamp diodes doesn't exceed their limits. For -1v, I would use something like a 1k resistor on the pin.
Logged

Pages: [1]   Go Up
Jump to: