Submitted by TrystanLea on Wed, 03/10/2010 - 11:46.
Hey Alan
Could you do the calculation with my code on the first arduino and then send the Irms value instead of the analog read value to the second arduino? I think you'd get a faster sample rate that way and it may simplify things a little.
I wrote a bit of code to send Irms, Vrms, values etc from my measurement arduino to the ethernet arduino via xbee. But it will work with a wire connection just the same. If you download the ethernet sketch here:
values are sent from the measurement arduino as a stream of characters and so the ethernet sketch converts this steam of characters back into values that you can then use, have a look through it and let me know if anything doesn't make sense.
Hey Alan Could you do the
Hey Alan
Could you do the calculation with my code on the first arduino and then send the Irms value instead of the analog read value to the second arduino? I think you'd get a faster sample rate that way and it may simplify things a little.
I wrote a bit of code to send Irms, Vrms, values etc from my measurement arduino to the ethernet arduino via xbee. But it will work with a wire connection just the same. If you download the ethernet sketch here:
http://openenergymonitor.org/emon/sites/default/files/EthernetSketch27Jan.tar.gz
values are sent from the measurement arduino as a stream of characters and so the ethernet sketch converts this steam of characters back into values that you can then use, have a look through it and let me know if anything doesn't make sense.
Trystan