loading






I belong to a village of Odisha, India where frequent power cut is very common. It hampers the life of every one. During my childhood days continuing studies after dusk was a real challenge. Due to this problem I designed a solar system for my home on a experimental basis. I used a solar panel of 10 Watt ,6V for lighting few bright LEDs. After facing lot of hardships the project was successful. Then I decided to monitor the voltage, current, power & energy involved in the system. This brought the idea of designing an ENERGY METER.I used ARDUINO as the heart of this project because it is very easy to write code in its IDE and there are huge numbers of open source library available in the internet which can be used according to the requirement.I have experimented the project for very small rated (10Watt) solar system but this can be easily modified to use for higher rating system.

Feature:
Energy monitoring by
1.LCD display
2. via internet (Xively upload)
3. Data logging in a SD card

You can see my new instructable ARDUINO MPPT SOLAR CHARGE CONTROLLER ( Version-3.0)

You can also see my other instructables on

ARDUINO SOLAR CHARGE CONTROLLER ( Version 2.0)

ARDUINO SOLAR CHARGE CONTROLLER (Version-1)

Step 1: Parts Required :

Picture of Parts Required :

1. ARDUINO UNO (Rev-3)
2. ARDUINO ETHERNET SHIELD

3. 16x2 CHARACTER LCD
4. ACS 712 CURRENT SENSOR
4. RESISTORS (10k ,330ohm)
5. POTENTIOMETER (10K)
6. JUMPER WIRES
7. ETHERNET CABLE (CAT-5E)
8. BREAD BOARD
 
1-40 of 88Next »

I tried to copy and paste all the code but it fails to compiled. can i get the full code, please?

RamesP1 month ago

Deba

I am planning to follow your instructions to measure my house power conception. Can I use this for 15A [water heater, refrigerator] likes in 230v ? will ACS 712 support?

KnutP1 RamesP1 month ago

UPS - i don't think so! 230V so Close to you 5V stuff, even if the ASC712 cope with it. BUT it will not work as Your 230V is on AC - and that is not so easy to measure to arduinos DC. You rather have to to it With a AC-clap - there is some instruction how to to it. openenergy monitor I think

BrianC282 months ago

This looks excellent and I've ordered the hall effect sensor to build it. Thank you :-)

Just one comment... the delay is 2 msec (milliseconds) not 2 sec, which I'm sure is just a typo. :-)

deba168 (author)  BrianC282 months ago

Thanks for sporting the error.

JerryA22 months ago

have tried to copy and paste just the code I need but keep getting errors when compiling...



sketch_jun03a:2: error: expected unqualified-id before 'for'

sketch_jun03a:2: error: expected constructor, destructor, or type conversion before '<' token

sketch_jun03a:2: error: expected constructor, destructor, or type conversion before '++' token

sketch_jun03a:7: error: expected constructor, destructor, or type conversion before '=' token

sketch_jun03a:8: error: expected constructor, destructor, or type conversion before '=' token

sketch_jun03a:10: error: expected unqualified-id before 'for'

sketch_jun03a:10: error: expected constructor, destructor, or type conversion before '<' token

sketch_jun03a:10: error: expected constructor, destructor, or type conversion before '++' token

sketch_jun03a:15: error: expected constructor, destructor, or type conversion before '=' token

sketch_jun03a:16: error: expected constructor, destructor, or type conversion before '=' token

sketch_jun03a:17: error: expected constructor, destructor, or type conversion before '=' token

sketch_jun03a:18: error: expected constructor, destructor, or type conversion before '=' token

sketch_jun03a:21: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:22: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:23: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:24: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:25: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:26: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:27: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:28: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:29: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:30: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:31: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:32: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:33: error: expected constructor, destructor, or type conversion before '.' token

sketch_jun03a:34: error: expected constructor, destructor, or type conversion before '(' token

sketch_jun03a:36: error: expected constructor, destructor, or type conversion before '(' token

sketch_jun03a.ino: In function 'void setup()':

sketch_jun03a:42: error: 'lcd' was not declared in this scope

sketch_jun03a.ino: In function 'void loop()':

sketch_jun03a:47: error: 'lcd' was not declared in this scope

sketch_jun03a:52: error: 'watt' was not declared in this scope

sketch_jun03a:54: error: 'voltage' was not declared in this scope

sketch_jun03a:57: error: 'energy' was not declared in this scope

sketch_jun03a:59: error: 'amps' was not declared in this scope

JerryA23 months ago

I seem to not understand how to include libraries and get the code to run right. I need to build this without the data logging. I have tried to copy and paste the code and compile it but it just errors.

sketch_may28a:56: error: 'voltage' was not declared in this scope

sketch_may28a:59: error: 'energy' was not declared in this scope

sketch_may28a:61: error: 'amps' was not declared in this scope

can anybody help me by putting together just the code to display to lcd...

JerryA2 JerryA23 months ago

I also want it less the XivelyDatastream just energy monitor to LCD

Slacsteve3 months ago

For your voltage measurement you use the USBs "5" volts as the reference voltage but that varies from one PC to the next. There is a 1.1 reference voltage on the Arduino which can be used to truly calibrate the this meter. Have you considered that? I use a backup PC for development and and another in the field so I need to see the same performance on both systems.

deba168 (author)  Slacsteve3 months ago

You are right.It is the best option.Thanks for suggestion.

HriddhiD4 months ago

3.4 V is equivalent to 696

since 0 to 5 in analog is scaled to 0 1023 in digital

3.25 V should be --> 1024*5/3.25 = 665.6 --> 666

woodsphysics5 months ago

If I use a voltage divider so that I can monitor a 100 W system, I think I will generate too much heat. Do you have a energy meter for a larger system?

dutuc.nicolae6 months ago

Monitor the energy production of a wind turbine with GREEN POWER METER :http://www.instructables.com/id/Green-power-live-data/

Hi Deba, I have similar project to do. But I have to work with 230v ac supply voltage. have you done with 230v supply voltage? please let me know and share you work kindly, it will be helpful. my email {peja90_90@yahoo.com}..
SyedA26 months ago

thanks a lot !!

SyedA26 months ago

hi deba,

can you please provide me the arduino sketch.

deba168 (author)  SyedA26 months ago

Hello :)

The arduino sketch is in step-9.It is a text file attached bellow.

ngpha7 months ago

hi Deba,

I have problem with energy consume. Due to the watt fluctuate, so when calculate energy consume = watt x time (since start) it is not correct. )

as you can see the watt output from energy meter. I compare it with an AC power meter. It is wrong result. I know that my inverter effiency is only 80-90%.

so I use the formula as below, but the result still wrong

watt =voltage*amps; // power=voltage*current
wattttg= watttg+ sqrt (watt*watt);//
wattcc= (wattttg)/time ; average watt hour
energy=wattcc*time /(1000*3600); //total energy in milli second

cong suat.bmp
ngpha made it!7 months ago

hi, Deba. due to short circuit the positive source touch to the arduino, so all of my equiment blow-up -die. I have to build myself a new type. Now i upload it to thingspeak as

https://thingspeak.com/channels/24341

here is my new prototype. I make a plastic case for it.

Hình1433.jpgHình1434.jpg
deba168 (author)  ngpha7 months ago

Hey it looks really very nice.Thingspeak graphs are more eye catching than Xively. Thank you for sharing.

Oh sad thing.I will advice before giving power to the circuit, checkrepeatedly.Though it happened to me also.

Hi Deba.

Great Project. It helps me a lot. I just wanna ask about the LCD display. Did u use the serial or parallel LCD??

Thank you.

deba168 (author)  Noor ShahirahS7 months ago

Hi Deba.

Great Project. It helps me a lot. I just wanna ask about the LCD display. Did u use the serial or parallel LCD??

Thank you.

BelialD7 months ago

Whould anyone know if the ACS712 is capable of accurate calculations of 0-20mA at 1-30V? I want to make something very similar to this project but calculate the total mA passing through over time.

deba168 (author)  BelialD7 months ago

I think it will work,but you will not get the exact reading.May get some error.

BelialD deba1687 months ago
Any approximation of the error? Do you think it will it be lower than 4%?
deba168 (author)  BelialD7 months ago

You refer the following links for more details on ACS712 current sensor.

http://www.arduinothaishop.com/productdetail.html?id=6827

jaykentchriss7 months ago

Hi deba. What if a solar tracker is added to your project? Is it possible to combine your codes with the solar tracker code in one arduino sketch? Is it possible to run your project with solar tracker in a single arduino simultaneously? Just like multi-threading?

deba168 (author)  jaykentchriss7 months ago

I have not tried yet.I think it works.Have a try at your own risk.

sabs.2817 months ago

Hello Sir. How did you get the 696?

thank you.

ngpha sabs.2817 months ago

696 get by the line command

Serial.print(analogRead(A3));

this is the value which the pin 3 in Uno read

sabs.2817 months ago

Hello. I have seen your images attached. Can you please tell me the code to obtain sample1 value which was 927.18?

thank you very much

npitz11 months ago

Hi Deba, I have similar project to do. But I have to work with 53V 20Ah lithium-ion battery
supply voltage and ACS712 30A. would you explain? please let me
know and share you work kindly, it will be helpful. my email ec.pitzdezign@gmail.com

deba168 (author)  npitz7 months ago

Sorry friend.I don't know much about the Li Ion Battery Charging.

IzyanA11 months ago

hai deba! i have a similar project to do. but i cant do with the parts xively. how was it? hmm

deba168 (author)  IzyanA7 months ago

Tell me the exact problem you are facing.I will help you.

ngpha made it!8 months ago

I ask my friend do it for me. Now I can't upload it to xive.com. I want to upload my data on

http://emoncms.org/. can someone help me the code. Thanks

Hình1413.jpg
deba168 (author)  ngpha7 months ago

Hey it looks great.

jaykentchriss7 months ago

Good day!.. Your project is great.... What if a 12 volts battery will be used?... Do we need to use the same 10 kilo ohms resistances of the voltage divider? or do we need to change it to a higher value in order the ardiuno will not damage?.. Sorry my english :) ...

deba168 (author)  jaykentchriss7 months ago
1-40 of 88Next »