Hot!Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521

Page: 12 > Showing page 1 of 2
Author
sridhar_rajagopal
New Member
  • Total Posts : 20
  • Reward points : 0
  • Joined: 2016/05/04 20:18:47
  • Location: 0
  • Status: offline
2017/08/29 18:17:17 (permalink)
3 (1)

Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521

Hello everyone!

I have created a new energy monitoring breakout board based on the MCP39F521 for Arduino and other MCUs, that I call Dr. Wattson - please check out http://bit.ly/2wg2wte for more details. I have a working prototype board, and would like to consider making it in larger quantities and creating the Arduino library based on interest levels. Of course, in this forum, people may not necessary be interested in the Arduino libraries, but the board itself exposes all of the functionality and is an isolated design, so you can still integrate it into your project easily. 

I would love to hear your thoughts!

Thanks, 
Sridhar 
#1

20 Replies Related Threads

    NorthGuy
    Super Member
    • Total Posts : 4961
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/08/29 19:02:19 (permalink)
    3 (1)
    In many countries, things that connect directly to mains may require certification. Otherwise, you may be directly liable for all the accidents related to the use of your board. I am not a lawyer but I suggest you study the legal issues before selling your board.
     
    #2
    sridhar_rajagopal
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2016/05/04 20:18:47
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/08/30 11:22:01 (permalink)
    3 (1)
    Hi @NorthGuy, 
     
    Thanks for your reply and your suggestion! I will certainly look into legal issues and also any necessary certifications before selling this board! 
     
    I don't see how this is different from say, a relay board that one can use to control an AC supply though. 
     
    The AC side is pretty much a passthrough here - the measurement happens in an isolated manner using the transformers. 
     
    Regards, 
    Sridhar
     
    #3
    katela
    Super Member
    • Total Posts : 857
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/08/30 13:19:11 (permalink)
    0
    Is your board open source?

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/user/StudentCompanionSA
    #4
    sridhar_rajagopal
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2016/05/04 20:18:47
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/08/30 16:02:35 (permalink)
    3 (1)
    Hi katela, 
     
    Yes, it is the intention to open source the board when it is released. 
     
    Thanks,
    Sridhar
     
    #5
    PStechPaul
    Super Member
    • Total Posts : 1951
    • Reward points : 0
    • Joined: 2006/06/27 16:11:32
    • Location: Cockeysville, MD, USA
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/08/30 20:47:48 (permalink)
    4 (1)
    Seems like a nice project. Here is a link to the datasheet for the MCP39F511:
     
    http://ww1.microchip.com/downloads/en/DeviceDoc/20005442A.pdf
     
    I like the name for your other project, "BuffI the Ampere Slayer" :)

     
    #6
    qhb
    Superb Member
    • Total Posts : 6262
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/08/30 21:05:16 (permalink)
    3 (1)
    Next will be an automatic tester for data cabinet wiring...
    "Game of Krones"
     
    #7
    katela
    Super Member
    • Total Posts : 857
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/08/30 23:31:37 (permalink)
    0
    sridhar_rajagopal
    Hi katela, 
     
    Yes, it is the intention to open source the board when it is released. 
     
    Thanks,
    Sridhar
     


    Ok. 
    And when is the planned release date?

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/user/StudentCompanionSA
    #8
    sridhar_rajagopal
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2016/05/04 20:18:47
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/08/31 12:40:01 (permalink)
    4 (1)
    Hi katela, 
     
    I have about 8 boards of my "pre-release" board for immediate consumption (but without the Arduino library). The release date will be based on the interest levels and what kind of volumes I am looking at. 
     
    Thanks,
    Sridhar
    #9
    sridhar_rajagopal
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2016/05/04 20:18:47
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/09/14 18:48:45 (permalink)
    0
     I have created a demo video showing how easy it is to hook Dr. Wattson up to Arduino and start getting quality energy monitoring data instantly - https://youtu.be/y5l8vk85i4o
     
    Cheers, 
    Sridhar
    #10
    PStechPaul
    Super Member
    • Total Posts : 1951
    • Reward points : 0
    • Joined: 2006/06/27 16:11:32
    • Location: Cockeysville, MD, USA
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/09/14 23:12:18 (permalink)
    3 (1)

     
    #11
    katela
    Super Member
    • Total Posts : 857
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/09/14 23:29:23 (permalink)
    0
    sridhar_rajagopal
     I have created a demo video showing how easy it is to hook Dr. Wattson up to Arduino and start getting quality energy monitoring data instantly - https://youtu.be/y5l8vk85i4o
     
    Cheers, 
    Sridhar


    Oups 

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/user/StudentCompanionSA
    #12
    gpezzella
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2010/01/15 09:08:02
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/11/03 07:52:16 (permalink)
    0
    Hi
    could you share the arduino library?
    Thanks
    #13
    sridhar_rajagopal
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2016/05/04 20:18:47
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2017/11/14 16:36:04 (permalink)
    0
    Hi gpezzella, 
     
    The library is currently work-in-progress. It will be released when the board becomes available - hopefully soon! :-)
     
    Thanks,
    Sridhar
     
    #14
    sridhar_rajagopal
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2016/05/04 20:18:47
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2018/02/20 12:53:19 (permalink)
    0
    Hello everyone!
     
    I have a couple of updates! Dr. Wattson is now available on Tindie - https://www.tindie.com/stores/UpbeatLabs/
     
    Additionally, the Arduino library for Dr. Wattson/MCP39F521 is now available on Github - https://github.com/upbeatlabs/drwattson
     
    Cheers, 
    Sridhar
     
    #15
    inky
    New Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2016/05/01 03:39:08
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2018/03/06 15:00:22 (permalink)
    0
    Hey @srindhar_rajagopal,

    Having issues communicating my design of an MCP39F321 and a RaspberryPi. I see you have managed it, any tips? Would you be willing to share your circuit diagram and layout to see if I have done something stupid?  A difference in my circuit, could be I am using a mux to talk to multiple channels......

    Any help is appreciated, as I have replicated the dev board, but just can not get the device to respond to I2C messages :(

    Ian
    #16
    sridhar_rajagopal
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2016/05/04 20:18:47
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2018/03/06 17:52:00 (permalink)
    0
    Hi Ian, 
     
    Did you use a logic analyzer on your I2C channel to see if the communications is as expected? Even if the layout is quite crappy and the measurement not good as a result, you should still be able to communicate via I2C with the chip, and read registers like the system version etc. 
     
    Have you tried with an Arduino? I did have some trouble communicating using the CC3200 initially, until I dropped the I2C speed to 100 (whereas there was no problem with the Arduino even at higher speed). The chip does do clock stretching, whereas a lot of the MCUs do not support it, so the timing can be important. Maybe you want to check clock stretching the speeds with your mux. 
     
    Cheers, 
    Sridhar
    #17
    inky
    New Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2016/05/01 03:39:08
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2018/03/07 00:53:45 (permalink)
    0
    sridhar_rajagopal
    Hi Ian, 
     
    Did you use a logic analyzer on your I2C channel to see if the communications is as expected? Even if the layout is quite crappy and the measurement not good as a result, you should still be able to communicate via I2C with the chip, and read registers like the system version etc. 
     
    Have you tried with an Arduino? I did have some trouble communicating using the CC3200 initially, until I dropped the I2C speed to 100 (whereas there was no problem with the Arduino even at higher speed). The chip does do clock stretching, whereas a lot of the MCUs do not support it, so the timing can be important. Maybe you want to check clock stretching the speeds with your mux. 
     
    Cheers, 
    Sridhar


    Thanks for the response Sridhar.
     
    I haven't tried with another MCU, but:
     - we have used the raspberryPi plus  MCP39F521 dev board plus mux without problem
     - I2C speed dropped to about 88000 (otherwise issues)
     
    Hence, why I asked if you had any insights. We know the RaspberryPi can't really do clock stretching, hence the slower speed that we found to work with the dev board.
     
    I will keep plugging away, but if you think of sonething, I would appreciate it.
     
    Thanks
    Ian
    #18
    inky
    New Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2016/05/01 03:39:08
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2018/03/07 04:08:36 (permalink)
    0
    OK, the problem appears to be the PCA9615 differential drivers between the pi and the target......

    The MCP39F521 is not doing the ACK correctly, the SDA is not driven to 0v (like the other devices) and sits at 1V, which in turn causes the PC9615 to see this as a high!!
     
    How to make the MCP39F521 drive the ACK to 0V?
    post edited by inky - 2018/03/07 09:29:17
    #19
    sridhar_rajagopal
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2016/05/04 20:18:47
    • Location: 0
    • Status: offline
    Re: Dr. Wattson - Energy Monitoring Board for Arduino, based on MCP39F521 2018/03/07 10:03:57 (permalink)
    0
    Hi Ian, 
     
    I remembered another thing - there were a couple of cases where there was some solder problems with the MCP39F521, as the pitch is pretty fine and it has pads underneath as well - it had to be reworked/replaced. 
     
    If the same Rpi script was working with the demo board (and mux)  (did you also use the PCA9615 in this case?) but not your own, I would really look to make sure the solder job is ok. 
     
    One other mistake that I had made initially was omitting the pullup resistors on the I2C lines of my board, and then forgot about them when connecting the MCU to the board - once I soldered in a couple of pullup resistors, everything was good!
     
    Hope these help! 
    Good luck!
    Cheers, 
    Sridhar
     
     
     
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2018 APG vNext Commercial Version 4.5