I have made a few threads and thought I would "clean up" a little
First I think I have made a code for the mega that should do:
1. Full 3 phase monitoring (3*CT and 3*AC)
2. Pulse input for water meters etc.
3. 2-Way IR com's for heatmeters (some do require a request before they send data).
But I'm not sure if it would work and would like a help correcting mistakes if there are any
Next I have (in eagle) made a shield for the Mega and tried to connect the sensor inputs to the right pins, but here I'm worried that I have connected wrong. Here I would like input if things have been done right and if I need to remap something ?
When I tried to match the pins for the sensor inputs i used the schematic from solderpad (http://solderpad.com/openenergymon/emontx/) and the attached PDF
If I should put things in a certain order, I would like help with the board first, so that I can order some prototypes.
When I got it working my plan is to release everything in the opensource spirit. Maybe it could even be an "official" openenergy board?
Re: Need help with making a shield for the Arduino Mega
A small Q.... would the hardware be more usefull for others, if it included CT inputs for solar cells etc?
I have excluded temp sensors as I can't make much use of them. The heat meter do report temp in and out and flow etc and also how much energy used, the energy is what i'm billed. And my hotwater cylinder only has one analog meter to read temp at the top (would have to remove that one to messure).
But I'm open to idea's.. So far I have used through hole components to be able to hand solder them, SMD could be done to save place, but gain could always make 2 shields if things became to crowded
Re: Need help with making a shield for the Arduino Mega
attached jpg's of the board so far
Re: Need help with making a shield for the Arduino Mega
Did I post the wrong place? or am I just not patient enough?
Re: Need help with making a shield for the Arduino Mega
Hello Bo Herrmannsen
Looks good! nice work! I cant see anything wrong that jumps out at me, looks like you have the circuit as in the emontx schematic and the arduino sketch uses emonlib in the expected way. I cant really comment on the heat meter (as in the question in your email) can you test the heat meter code in isolation? With an arduino + breadboard circuit just to make sure its all working before you commit to manufacturing a board?
Thanks for posting this on the forum
Trystan
Re: Need help with making a shield for the Arduino Mega
Hi
I got the code for the heatmeter from a danish guy that made on the Uno. So i'm sure that part is working. only need to pick what data to send to emon base. (i plan to send total energy or the difference in total energy between each reading)
What i'm not so sure on is how to match up the pins the mega to what the library expects... and yes i did copy the emontx schematics,
BUT i added 2 extra AC input's... and that lead's me to the next thing i'm not sure on.. how do i mod the sketch to calculate all 3 phases in the same sketch and not like the full fat 3 phases thread where 3 emon tx are in use
Re: Need help with making a shield for the Arduino Mega
would someone be able to help me the last bit?
what pins on the mega would the library expect the 3 ct sensors to be connected at?
what pin for the single AC input?
and what pin for the pulse input?
-------
what mods are needed to add 2 other AC inputs?
what mods are needed to make a full 3 phase monitoring (ct and ac for each phase)?
------
at what pins will the RFM library expect the module connected at?
I have almost done PCB layout for the GIVmon by rob and would like to order a prototype of both.... but not before i have everything in place
Re: Need help with making a shield for the Arduino Mega
Cant help with the others but the the RFM12B on a mega uses
52 sck rf
50 sdq
51 sdi
53 sel
2 irq
But you will need to run the RFM12B at 3.3V not 5V like the mega.. Something like http://jeelabs.net/projects/hardware/wiki/RFM12B_Board for ideas...
Works for me with the above board and a mega.
Re: Need help with making a shield for the Arduino Mega
np.... just need to change a wire then... there are 3.3 on the mega for the shields that need it
Edit: schematic corrected... will upload a new copy once i get the rest sorted
Re: Need help with making a shield for the Arduino Mega
any chance that anybody is willing helping me with getting the last bits sorted?