chipKIT® Development Platform

Inspired by Arduino™

EMON power monitor

Created Fri, 10 Aug 2012 02:26:39 +0000 by kllsamui


Fri, 10 Aug 2012 02:26:39 +0000

ARDUINO code from OPENENERGYMONITOR.ORG with some modifications now under MPIDE for chipKIT MAX32. hardware change: the virtual ZERO ARDUINO 5V/2 now 3V3/2.
just move cable from 5V pin to 3V3 pin on "ARDUINO" shield. code changes ( by compiler switches ): measurements are slowed down to Arduino speed by delay 353usec, the readVCC replaced by fix 3300.

with this: the tuning, timing and results same like with the arduino board!

also included PoorManScope2 sketch to check on Volt ( VT ) and Amp ( CT ) signal in 3V3 range, and CT not in FLUX SATURATION.

hardware: chipKIT MAX32 EMON shield ( VT and CT for isolation, sec. AC signals on virtual ZERO by 3V3/2. )


Jacob Christ

Sat, 11 Aug 2012 05:13:01 +0000

Wicked cool! What was you motivation for using chipKIT for this rather than Arduino?

Also, which modules is this code for?



Sat, 11 Aug 2012 14:29:05 +0000

about energy monitoring i collected some tools around it like

  • EMON calc
  • with freq and kWh
  • user menu
  • tuning setup with eeprom storage
  • CHART recorder, SCOPE
  • FFT
  • SD card storing
  • webserver
  • Alarm and Data SMS with GSM shield put them all in a toolbox with compiler switches, but because of SRAM and FLASH limitations of Arduino can only load 1 or 2 at a time.

hope on chipKIT max32 can load them all.

But the actual project is 4 consumer ( underwater powers supply for coral restoration project ) on a island and monitored from other island via data / alarm SMS.

Jacob Christ

Sun, 12 Aug 2012 17:19:56 +0000

Very cool... I just got a web server working on Max32 last week, only takes about 60K of program space so lots of room left over...