Pages: [1]   Go Down
Author Topic: Sense Ac voltage drop.  (Read 592 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi to all,

I'm looking of a way to sense Arduino an ac voltage drop from 13.7v to 11.0v.

Typically, I'm connecting a heavy load >7amps to a transformer via relay + transistor from an Arduino pin. The circuit will light an led if load is faulty. I tried using a voltage divider 10K/ 1K + rectifier to drop the voltage down. It didn't work. Voltmeter reads ok but Arduino's analog pins varies between 1023 and 200 giving funny readouts.

Any suggestions

Best regards
Kenneth
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you use a smoothing capacitor as well as the rectifier?
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No I didn't. So you think it's reading the peak ac values?
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Without a smoothing capacitor, the reading you get will vary depending on when in the AC mains cycle you sample it. With a smoothing capacitor, you will read either the peak value or half the average of each half cycle, depending on where you put it. The attached circuit reads half the average value of a half cycle, reduced by a further factor of 2 by of the potential divider.


* Scan 88.JPG (56.16 KB, 1654x1166 - viewed 8 times.)
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the tip.

A smoothing cap is a must! I tried 10 ,100  & 2200 micro farads. 100 was the best. 2200 readings were a bit slow.

Thanks again,
Kenneth
Logged

Pages: [1]   Go Up
Jump to: