RPICT8: Difference between revisions

From lechacal
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
RPICT8


[http://lechacalshop.com/en/rpict-series/27-raspberrypi-7x-current-sensor-adaptor-1-voltage-emoncms.html Link to shop]
[http://lechacalshop.com/en/rpict-series/27-raspberrypi-7x-current-sensor-adaptor-1-voltage-emoncms.html Link to shop]
Line 4: Line 6:
This page is for board specific information. More information can be found on the [[Raspberrypi_Current_and_Temperature_Sensor_Adaptor | generic page for RPICT series]].
This page is for board specific information. More information can be found on the [[Raspberrypi_Current_and_Temperature_Sensor_Adaptor | generic page for RPICT series]].


This board is similar to RPICT7V1 version 2. RPICT8 is stackable on RPICT7V1's board.<br>
* 8 AC current sensors.
 
* Compute real power.
Refer to the [[RPICT7V1_v2.0 | RPICT7V1]] documentation for more details.
* Fit on Raspberrypi 4 holes mounting pattern.
* AtMega328 Mcu (Arduino UNO)
* MCP3208 ADC
* Stackable (up to 5 boards together)


[[File:IMG_1064_small.png]]
[[File:IMG_1064_small.png]]

Revision as of 17:58, 2 July 2017

RPICT8

Link to shop

This page is for board specific information. More information can be found on the generic page for RPICT series.

  • 8 AC current sensors.
  • Compute real power.
  • Fit on Raspberrypi 4 holes mounting pattern.
  • AtMega328 Mcu (Arduino UNO)
  • MCP3208 ADC
  • Stackable (up to 5 boards together)

Python demo script

First of all make sure you have python-serial package installed

$ sudo apt-get install python-serial

Then copy the following into an executable file and run it.

#!/usr/bin/python
import serial
ser = serial.Serial('/dev/ttyAMA0', 38400)

try:
       while 1:
               response = ser.readline()
               z = response.split(",")
               if len(z)>=7:
                       print "Power 1: %s Watts" % z[0]
                       print "Power 2: %s Watts" % z[1]
                       print "Power 3: %s Watts" % z[2]
                       print "Power 4: %s Watts" % z[3]
                       print "Power 5: %s Watts" % z[4]
                       print "Power 6: %s Watts" % z[5]
                       print "Power 7: %s Watts" % z[6]
                       print "Power 8: %s Watts" % z[7][:-2]
                       
except KeyboardInterrupt:
       ser.close()