|
|
Manchester (England England)
Offline
Brattain Member
Karma: 298
Posts: 26024
Solder is electric glue
|
 |
« Reply #1 on: February 14, 2012, 10:15:06 pm » |
I am reading 3-4 other analog pins Your problem is that the arduino's analogue input pins are referenced to ground. Therefore the shunt must be in the ground path of the current you are measuring, this may or may not cause you trouble. So one end to ground and the other end to the analogue input and the ground of what you are trying to measure. But the voltage you will get off this is tiny. I only need 1A precision, There is no way you will get this without using an op amp to amplify the voltage. Raw each step is 5/1024 = 0.0048828125 Volts that means for 200 A you will get a reading of only 15, that is 13A per step. The arduino's A/D is not that accurate anyway only +/- 2 least significant bits. So what range of current are you interested in?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 39
Arduino rocks
|
 |
« Reply #2 on: February 16, 2012, 12:45:00 pm » |
i'm looking to utilize the full 200A range but as of now 0-100A, could i use 2n222a transistors to boost the voltage to a usable range? I understand about reading the low side, thats where it is in the system right now, any idea which op amp i would need to use to get 0-5v from 0-75mv i have google'd but there's a bit to much info to let me pick something out
|
|
|
|
|
Logged
|
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 39
Arduino rocks
|
 |
« Reply #4 on: February 18, 2012, 10:02:49 am » |
okay some im on a scavenge for a suitable part, i'm looking at a couple of lm393n. http://www.ti.com/lit/ds/symlink/lm393-n.pdf would i be able to use this it has a non inverting input, I will order a few when i get the chance, but just to proto this i have stacks of pcb from various electronics. cheers
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 269
Posts: 17032
Available for Design & Build services
|
 |
« Reply #5 on: February 18, 2012, 02:23:10 pm » |
No, you really want an op-amp, not a comparator.
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 144
Posts: 4882
|
 |
« Reply #6 on: February 19, 2012, 03:48:32 pm » |
If you're looking for 200A range with only 1A resolution, then you would be better off using a Hall current sensor such as http://uk.farnell.com/allegro-microsystems/acs758ecb-200b-pff-t/ic-current-sensor-200a-3cb/dp/1791391. This produces an output of 10mV per amp, enough to read directly from an analog input pin, and also provides isolation between the Arduino and the current being measured.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 39
Arduino rocks
|
 |
« Reply #7 on: February 20, 2012, 08:41:29 pm » |
lol i was just about to post that exact sensor and page, luckily i may be able to pick one up from my local farnell, 2 miles rather that pay 15 postage.
Great minds think alike
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 298
Posts: 26024
Solder is electric glue
|
 |
« Reply #8 on: February 21, 2012, 08:32:12 am » |
i may be able to pick one up from my local farnell, 2 miles You from Leeds then?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 39
Arduino rocks
|
 |
« Reply #9 on: February 21, 2012, 12:30:20 pm » |
no Northampton, they have a warehouse just down the road, whats the best place in your opinion for parts in England?
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 144
Posts: 4882
|
 |
« Reply #10 on: February 21, 2012, 01:16:04 pm » |
I'm sure Mike will reply in due course; but I use Farnell, RS, Rapid Online and Proto-Pic. I generally find that Farnell has the widest range and is easiest to search, but occasionally I find that RS has better prices or can supply something that Farnell cannot. Rapid has a very limited range, but their prices for small quantities are often better than Farnell. Proto-Pic holds stock of some useful SparkFun components such as SMD breakout boards.
Just occasionally I want something that I can't find in the UK, and then I usually use Digikey.
|
|
|
|
« Last Edit: February 21, 2012, 01:24:50 pm by dc42 »
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 39
Arduino rocks
|
 |
« Reply #12 on: March 09, 2012, 08:15:41 am » |
Hi I've just received the sensor but the only access to the net is my phone, does anyone know what I shoud map the input values to get a 1A resolution, lol I need an ammeter. Its the 150A version, just building the wiring harness if anyone can give me an idea what input voltage per A I should get would be awesome. cheers, neo
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 282
Posts: 15442
Measurement changes behavior
|
 |
« Reply #13 on: March 09, 2012, 08:55:17 am » |
I will eventually buy another three of the 100A units to monitor 3 phases of my bldc motor. You do realize that making a current measurements from a BLDC motor winding is different then making a simple DC current reading as the motor windings are being driven with high current PWM pulses, so somewhere in either hardware after the hall effect sensor or in software you will have to 'filter' the measurement value over time to get a average current value for a averaged period of time.
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 144
Posts: 4882
|
 |
« Reply #14 on: March 09, 2012, 09:47:56 am » |
With Vcc = 5v the output at pin 3 has a sensitivity of 13.3 mV per amp. At zero current the offset of the output from the ideal value of 0.5 Vcc may be up to +/- 5mv at 25C.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
|