MAX471 Current Sensor | Cheap Electronics
MAX471 Voltage and Current Sensor - How to measure current, voltage and power? | Cheap Electronics Other Arduino-s can work different. So you must calibrate CODE changing 2 values in this CODE It should work same with every Arduino, but due to Arduino presision I recommend to recalibrate it. HOW TO CALIBRATE: Simple calculation, when current of 0.7A flows through MAX471 and Arduino gets value 320 (for example), you've got 320 per 0.7 amp (320/0.7=457 per amp), so you have to divide the result by 457 to get the current. And the same with the voltage. CalibrationValue = reading / current CODE: ◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘ /* Good Electronics ---YouTube--- MAX471 Current Sensor */ float A; float V; float h; void setup () { Serial.begin (9600); pinMode (A0, INPUT); pinMode (A1, INPUT); } void loop () { V= analogRead (A1)/41.2; //-------calibrate A= analogRead (A0)/183.3; //-------calibrate Serial.print (V); Serial.print (" V"); Serial.print ("\t"); Serial.print (A); Serial.println (" A"); } ◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘ Music: NCS - Jim Yosef - Firefly [NCS Release] https://youtu.be/x_OwcYTNbHs?list=PLgpl-52jZ7bixW7qDZaPHzgS_imA2xtRL ► Good Electronics ◄
Download
0 formatsNo download links available.