Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

http://arduino.cc/en/Main/ArduinoBoardDue

Would it be possible to use this with the emonTx shield? The reason would be the high processing power for calculations and also more RAM. Is there anyone who tried this out?

boredman's picture

Re: Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

I know this topic is quite old, but still, if anybody's interested, I've been successful in using Arduino Due for my version of emonTx. In my system I'm monitoring 10 current probes + 1 AC-AC voltage adapter using Due's 12-bits ADC inputs. I've also modified EmonLib to run on Due. The whole measurement cycle takes less than 2 sec.

The complete description you can get here: http://boredomprojects.net/index.php/projects/home-energy-monitor

Hope this helps!

glyn.hudson's picture

Re: Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

Wow, nice work! and good blog post. :-)

It's great that you have got the RFM12B and EmonLib working on an Arduino Due. Will the changes you made to emonLib integrate into the current emonLib? If so it would be great if you could push a GitHub pull request to us with the changes needed for the Arduino Due to the OpenEnergyMonitor GitHub. This way the whole community could benefit. 

..or we could create a new library called emonLib Due if you think the changes are too much to integrate.

Please let us know what you think.

Do you think the RFM12B using the RF12 JeeLib library could be made to work on the Due? What was your reason for going for the LowPowerLab version.

Keep up the good work and have a good Christmas. 

Tinbum's picture

Re: Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

Nice work.

I bought a Due for running Robins MK2i diverter but I'm not very good with code and had put it on the back burner until I had some spare time to look at it. I'm also new to programs and sketches.

glyn.hudson's picture

Re: Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

Follow the links to boredman's blog post above. He's done a nice write up of using he Due. We'll try and integrate it into the project in 'Due' course! It's a nice bit of hardware. 

boredman's picture

Re: Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

Thanks a lot for your comments, Glyn!

I'm happy to know that it could be useful to the community. I am new to Git stuff, but I will work on setting up a pull request.

Actually, my EmonLib incorporates two types of changes: (1) utilization of Due's 12-bit ADC resolution and (2) 3-phase buffer and delay algorithm, since my 10 CT inputs come from all three line phases, but my AC-AC voltage adapter is connected to only one phase. So, what do you think, maybe it's best to keep this version separated from main EmonTx library?

About RFM12B library. The main difficulty was dealing with SPI in Due environment. The easiest way was to use SPI_Class.cpp (object oriented). That is the reason I used LowPowerLab version, which is also already object oriented and is way cleaner. To be honest, I think it is not worth the effort to try and modify RF12 JeeLib library for Due.

Let me know what you think is the best way to get this stuff more universal. I also can do some changes or write up about the code a bit.

Merry Christmas to all!

glyn.hudson's picture

Re: Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

It would be great to have support for the Due's 12 bit adc in emonlib (1).

I think (2) is best kept separate. Emonlib is single phase and should be as barebones and as easy to follow as possible. However if you could make a three phase example for the due we would be most happy to push this up as a example. 

Keep us updated on your progress. Thanks a lot for contributing. 

 

Merry Christmas! 

boredman's picture

Re: Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

Hi Glyn,

I followed your suggestion and created 2 separate GitHub pull requests. One containing only Arduino Due 12-bit ADC resolution support and the other including 3-phase buffer-delay algorithm. As you mentioned, the second feature can be added only as an example, in order to keep EmonLib clean and not mess it up with 3-phase stuff.

I hope you guys will find these mods useful.

Happy New Year!

glyn.hudson's picture

Re: Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

Thanks a lot, that's great. I've merged the changes into emonLib and have created a separate github repo for the 3PH examples: https://github.com/openenergymonitor/ArduinoDue_3phase.

Thanks again, this should be most useful to many people going forward as the Due get's more adopted in the future. It's a very nice bit of hardware. 

ageurtse's picture

Re: Arduino Due (ARM CPU at 84 MHz) + emonTx Shield

Currently i'm working on my due to interface with a network interface to my Raspberry PI.

i started a blog about it, if i have my code ready i will post it there.

blog.steinor.nl

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.