Open Energy Monitor

What are you developing?
ca119
Posts: 1
Joined: Wed Aug 17, 2016 10:27 pm

Re: Open Energy Monitor

Postby ca119 » Fri Oct 14, 2016 3:47 pm

Hi guy's .... I'm new ..... I bought 2 Blue Pills, but have not getting startet yet. Not sure if its so easy to convert from nano 328 to STM32.
Well always interesting in measuring (my passion) just found that on my todays search - looks interestting and simple?!?
https://www.hackster.io/whatnick/esp826 ... tor-b199ed

willfly1
Posts: 17
Joined: Wed Jan 04, 2017 5:13 pm
Location: GTA, Canada

Re: Open Energy Monitor

Postby willfly1 » Mon Jan 16, 2017 4:10 am

Off topic -- but I built the energy monitor based on Bluetooth chipset. The project uses nrf51822 module which can be programmed in Arduino.

Source code: https://github.com/ardyesp/PowerMeter

Its pretty accurate.

User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Open Energy Monitor

Postby RogerClark » Mon Jan 16, 2017 9:21 am

willfly1 wrote:Off topic -- but I built the energy monitor based on Bluetooth chipset. The project uses nrf51822 module which can be programmed in Arduino.

Source code: https://github.com/ardyesp/PowerMeter

Its pretty accurate.


Interesting ....

Which Arduino core for nRF51 did you use ?
One of the ones I made from RBL's repo ? or perhaps Sandeeps repo ??

willfly1
Posts: 17
Joined: Wed Jan 04, 2017 5:13 pm
Location: GTA, Canada

Re: Open Energy Monitor

Postby willfly1 » Mon Jan 16, 2017 6:31 pm

RogerClark wrote:Which Arduino core for nRF51 did you use ?
One of the ones I made from RBL's repo ? or perhaps Sandeeps repo ??


The one from your repo. I also followed your blog post on how to setup environment and create BMP probe. Thanks for putting it up for us.

User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Open Energy Monitor

Postby RogerClark » Mon Jan 16, 2017 8:41 pm

Excellent!

i have plenty of nRF51 modules kicking around, so I may build this when I get time.

BTW.
I think in the long term that Sandeep Mistry's "Arduino nRF5" repo will definitely supersed mine, as his is a much cleaner implementation than the RBL one, as his is not based on mbed.
However he uses OpenOCD and also needs a different version of gcc, which makes the installation more complex.

bill thomson
Posts: 3
Joined: Wed Feb 08, 2017 4:30 pm
Location: Oklahoma, USA
Contact:

Re: Open Energy Monitor

Postby bill thomson » Wed Feb 08, 2017 11:06 pm

Hi Roger,

I'm thinking of building one of your energy monitors.
I've been an Electronics Technician (and hobbyist) since 1974, so the hardware part I'm comfortable with.
The code? well, let's say I can make it work, but I'm not as good with software as I am with hardware.

I have an OpenEnergyMonitor emonTx and one of their emonGLCDs, so I understand the aim of your project.

I didn't see any references to code other than EmonLib and having looked at the emonTx code, yet knowing
the STM32 is a completely different animal, I thought I'd ask if there is any additional code needed for STmon.

Thanks!

Bill Thomson

User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Open Energy Monitor

Postby RogerClark » Wed Feb 08, 2017 11:47 pm

The energy measurement lib works fine, no changes are needed as far as I recall.
(Actually, I can't remember if I needed to correct for ADC having a greater number of bits in the STM32, actually in the library code - you'd need to double check, but I don't think so)

I didn't use the same RF transmitter that the Open Power Monitor used, so I can't comment on whether the library for the transmitter they used will work

bill thomson
Posts: 3
Joined: Wed Feb 08, 2017 4:30 pm
Location: Oklahoma, USA
Contact:

Re: Open Energy Monitor

Postby bill thomson » Thu Feb 09, 2017 1:43 am

I'm thinking of using a direct connection, so the radio driver may noy be an issue.

The code I'm curious about is that which makes the calls to EmonLib.
I'm going by what I know of the way the Arduino sketch for a 328 works as I have no direct experience with the STM32.

User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Open Energy Monitor

Postby RogerClark » Thu Feb 09, 2017 6:07 am

You just have to call some functions for the initial setup, and then just call a function to run the code that samples the inputs (for a given number of half cycles) and which then yields the power data

bill thomson
Posts: 3
Joined: Wed Feb 08, 2017 4:30 pm
Location: Oklahoma, USA
Contact:

Re: Open Energy Monitor

Postby bill thomson » Thu Feb 09, 2017 12:10 pm

Got it.

Thanks!


Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest