emonRPi v2.0 Raspberry Pi emon shield

Hi,

The emonRPi v2.0 is born!

I wasn't too happy with the performance of my first prototype (especially accuracy and noise susceptivity).

So I decided to go for a complete new approach and created a V2 prototype featuring a Maxim Integrated max1239 12bit 12 channel i2c ADC.

I've adopted the emonlib to allow reading from an I2C ADC, also i changed the emon INO code to directly write the results to the serial port. First tests show only 1 Watt jitter on a 100W light bulb on all 3 current channels.

As my next project I'll build a transformer free 3 Phase voltage monitor which will interface to the emonRPi over opto-isolated longwire I2C connection (6 wire RJ12 inteface). The plan is to make it small enough to fit into a one Unit DIN rail housing. let's see how well this goes. :-) The emonRPi is already prepared for this setup using a PCA9600 i2c buffer.

 

Below you can find schematics, board and a few pictures!

https://www.dropbox.com/s/z2yq6zkl51h6n1s/Photo%2019.02.14%2023%2030%2031.jpg

https://www.dropbox.com/s/63ut1kkapkypoph/Photo%2019.02.14%2023%2030%2042.jpg

https://www.dropbox.com/s/oc1pyteinxq2amt/Photo%2019.02.14%2023%2031%2002.jpg

https://www.dropbox.com/s/96mlo3ayts6hv6y/Photo%2019.02.14%2023%2031%2015.jpg

 

https://www.dropbox.com/s/muf7csdr440d1eq/EmonRPi_V2.0.pdf

 

https://www.dropbox.com/s/h3qo5rxwcys2jcg/EmonRPi_V2.0.brd

https://www.dropbox.com/s/76k6beq6zsufgp3/EmonRPi_V2.0.sch

 

I'll upload the code into a github fork repo within the next few days

regards

Rupert

Eric_AMANN's picture

Re: emonRPi v2.0 Raspberry Pi emon shield

Hi,

Very interesting.

Can you tell us more about the features of this RPI shield ?

Eric

 

Lightning's picture

Re: emonRPi v2.0 Raspberry Pi emon shield

Basically it has all features of my version 1 prototype (see this post: http://openenergymonitor.org/emon/node/3619)

These are:

  •     3 x 3,5 mm Stereo plug connectors for 3 Phase current sensor input
  •     a Barrel Jack for 9V AC-AC measurement input
  •     A 2,5 mm Stereo plug connector for onewire sensor, highside powerswitched
  •     A 2,5 mm Stereo plug connector for pulse counting sensors, highside powerswitched
  •     all inputs are equipped with an additional TVS Diode (Just in case)
  •     a dedicated area for a solder on RFM12B board (connected to the AVR's SPI bus) including a SMA connector for an external antenna
  •     It's own LDO 3v3 regulator, the RPi's 3V3 bus only allows for max 50mA additional load which 'should' be sufficient, but not worth the risk
  •     only SMT parts, smallest 0805 (+ a few TVS diodes in SOD523 Package) to allow for convenient hand assembly
  •     an FTDI connector + ISP connector + ability to flash via bootloader from RPi (reset circuitry)
  •     a PCP layout which should does completely fit into a standard RS-Components RPi Case (764-4382) and just needs a few wholes and one cutout for the RJ12 socket

Additionally it has a PCA9600 based I2C buffer circuit to allow for an opto-isolated interconnect to a direct (transformer free) 3 Phase voltage monitor device which I'm trying myself on next. My plans are to fit it into a 1 Unit DIN rail housing, lets see how difficult this will become.

A further major difference is the whole ADC circuitry is based on a Maxim Integrated  MAX1239 12 Bit i2c ADC. The design I went for uses a fully differential bipolar input pair for each CT and the Voltage transformer on the ADC which is very robust against noise. This also overcomes the need to run the analog lines across half of the PCP and make thus it more susceptible to noise. The two's complement output is then simply converted into offset two's complement (the same idea the original emonTX is creating in hardware) by binary logic in software.

regards

Rupert

ukmoose's picture

Re: emonRPi v2.0 Raspberry Pi emon shield

Many thanks for sharing this, have you thought what your intention is for this project going forward?

If you wish to open this for others to use it is probably worth think about what type of license to place on it.  The absence of a license means that copyright laws apply. This means that you retain all rights and that nobody else may reproduce, distribute, or create derivative works from your work. This might not be what you intend.

There are a couple of sites that might help such as

http://www.shareable.net/blog/how-to-choose-an-open-source-hardware-license (quite wordy)

and

http://choosealicense.com

Whilst the second link is about software its very easy to read and digest.

 

 

 

 

Lightning's picture

Re: emonRPi v2.0 Raspberry Pi emon shield

Hi,

 

My personal intention for this project is the interest in the EE matter in general, there was nothing available that really suited the idea I had. Of course I would be pleased if somebody else also shares the same opinion and can make use of my work.

Talking about the license question I have decided to go for the CC license model, namely the "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License"

 

Although I really like spending time on these things I still have a Job and a GF (also called a job sometimes). As I'm not a professional developer either I can't promise I'm able find enough time to add all features that are theoretically supported by the hardware (e.g. the RFM12B gateway functionality). Maybe somebody else has use for this feature is willing to contribute that part.

Merlin's picture

Re: emonRPi v2.0 Raspberry Pi emon shield

thanks for your work!

This project is very interesting. I don't have the ability to rebuild myself this, but if it was for sale surely i buy it!

glyn.hudson's picture

Re: emonRPi v2.0 Raspberry Pi emon shield

Hi Ligntning,

I've been taking a little look at your design, it's a very nice PCB. I like your idea of including TVS diodes, have you given thought to the specification of the diodes? What diode do you intend to use?

What are your plans for the design? How's development and testing coming along?

Comment viewing options

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