Hello everyone.......i'm actually doing something with prepaid electricity....basically i just extract analog data from mains through an ac power analyzer ...which serially outputs data in a csv format....my problem is....i want to set an interval in every 1 kwh consumption...my code would have to look like this:
can someone help me how i can be able to generate a code that would be sending data every 1kwh consumption ....
it's like the pulse data out of electricity meters with led blinkers...in every n pulses, that'd to indicate a 1 kwh consumption...
sir...... the receivedDataFromPowerAnalyzer(); is a function....this can be assigned to a variable with long int data type??? ...and that data out from the ac power analyzer is in character array....could you please clear my doubts sir.....
sir dhenry......where is this CONSUMPTION_1KWH??? is there some initialization ....? and what is send_pulses();?? i'm not using electric meters with pulse out sir....