Kategorie-Archiv: SmartPi

SmartPi – FAQ

Kann der SmartPi auch DC Spannung und DC Strom messen?
Nein. Es kann nur AC gemessen werden

Welche Netzfrequenzen werden unterstützt?
50 Hz und 60 Hz. Die 60 Hz Messung muss in der Config Datei (/etc/smartpi)aktiviert werden.

Wie viele Klemmen sind für eine normale Drehstrommessung notwendig?
3 Klemmen. Die 4 Klemme für den Null-Leiter brauchen Sie nur, wenn Sie irgendwelche Schieflasten messen wollen.

Wozu muss ich die 230V anschließen?
Die 230V dienen zur Messung der Stromrichtung (Bezug und Lieferung).

Was passiert wenn ich nur die Klemmen anschließe aber keine 230V?
Wenn keine Spannung angeschlossen ist, kann die Stromrichtung nicht gemessen werden. Wenn Sie also nur den Verbrauch messen wollen ist dies ausreichend. Allerdings wird dann bei der Leistungsberechnung eine Spannung von 230V angenommen, was zu Messtoleranzen führen kann (Einstellbar in der /etc/smartpi).

Kann ich auch andere Stromklemmen anschließen?
Nein. Derzeit können nur Klemmen mit max. 50mA Ausgangsstrom angeschlossen werden. Es wird eine weitere Version geben, an der man Wandler mit 1A oder 5A anschließen kann.

Welche PIN werden benötigt?
Für die Grundfunktionen werden +5V, +3,3V, Masse und I2C (SCL, SDA) benötigt.

Ist der SmartPi auch mit dem Raspberry Pi 2B oder anderen uC kompatibel?
Ja. Es wird eine Spannungsversorgung und I2C benötigt.

Kann ich auch nur den Verbrauch an einer Phase überwachen?
Ja, das ist möglich. Allerdings ist die Software auf ein 3 Phasen System ausgerichtet. Den OpenSource Quellcode müssten Sie dann anpassen.

Wie lauten die Zugangsdaten (Username / Passwort zum System?
Username / Username: pi
Passwort / Password: smart4 pi

Bitte ändern Sie unbedingt das Passwort, wenn sie den SmartPi mit dem Internet verbinden. Ansonsten ist es für Hacker und Botnetze sehr einfach, Ihren SmartPi zu missbrauchen.

Wie hoch ist der Verbrauch?
ca. 80mW, mit RaspberryPi je nach Konfiguration ca 5-7W

Connection to the Raspberry Pi

The SmartPi expansion module is connected via the GPIO port of the Raspberry Pi. The power supply for the SmartPi expansion module is via the Raspberry Pi. The simplest connection is via a 16-pin flat-ribbon cable. Figure 1 shows the connections of the SmartPi expansion module.

SmartPi-extension module Raspberry Pi connector
+3v3 3V3

Pin1

SDA SDA

Pin3

SCL SCL

PIN5

RESET GPIO4

PIN7

GND GND

PIN9, PIN6, PIN14

HSA GPIO17

PIN11

HSD GPIO27

PIN13

IRQ0 GPIO22

PIN15

+5V 5V

PIN2

CF3 GPIO18

PIN12

IRQ1 GPIO23

PIN16

Connections of the Smart Pi extension modules

Connections of the Smart Pi extension modules

Assembling the SmartPi

The assembly of the SmartPis is very easy for practiced hands.

Fig. 1: The bottom of the housing has 4 domes for holding the SmartPi board and the distance bolts.

Fig 1: The bottom of the housing has 4 domes for holding the SmartPi board and the distance bolts.

Slide the red side wall with the recesses for USB and the voltage measurement from above into the housing base as shown in figure 2. The second side wall is not yet assembled.

Housing base with side wall.

Fig. 2: Housing base with side wall.

The next step is to place the SmartPi board on the bottom of the housing shell. From above, the spacer bolts are screwed in as shown in Figure 3.
The threads of the spacers are slightly too long.
Shorten the thread with a pair of scissors or pliers to the correct length.
The hole in the upper left of the connection header must remain free, so that the connection cable has sufficient space.

Housing cover with mounted SmartPi board and distance bolts

Fig. 3: Housing cover with mounted SmartPi board and distance bolts

Ready-made flat ribbon cable

Fig. 4: Ready-made flat ribbon cable

Press the ribbon cable as shown in Figure 5 into the pin header of the SmartPi board.

SmartPi board with flat ribbon cable installed

Fig. 5: SmartPi board with flat ribbon cable installed

Now mount the Raspberry Pi onto the spacer using the threaded screws.
The flat ribbon cable is now pressed onto the pin header of the Raspberry Pi.
Finally, the other side part can be pushed into the lower part from above.
Make sure that the slot for the SD card is down. A short check shows whether the side part is installed correctly. For this the slot of the SD card holder must be visible through the housing slot.

Housing with Raspberry Pi

Fig. 6: Housing with Raspberry Pi

Now, press the red upper shell on one side into the lower part and press the upper shell on the other side into the lower part.
Bend the emblems to the outside.
The SmartPi is ready (Figure 7).

Finished SmartPi

Fig. 7: Finished SmartPi

SmartPi Use

Connect the SmartPi following scheme in order to transform your Raspberry Pi into a full functional smart meter:

smartpi_schemata

Please note: The arrow on the current sensor shows the current flow in production direction. If the sensor is applied conversely, consumption appears negative. Turn the sensor or change the value of change_current_direction in the configuration file from 0 to 1.

2016-09-30-beschriftung_smartpi_seite_klein

Connection for split core current sensors

2016-09-30-beschriftung_smartpi_vorne_klein

Connection for voltage measurement

Danger. Please note that only persons with the appropriate training and expertise are allowed to connect the voltage measurement. Work on mains voltage is very dangerous.

All other can change the value of measure_voltage to 0 and set the value voltage manually.

After installation type http://<ipaddress:1080> in your web browser.
You see the startpage with actual values and a linechart of power distribution.

Screenshot of SmartPi webpage

 

Configuration file:

The configuration of the SmartPi is stored in the file /etc/smartpi and looks like the following:

Description:

serial Serial number of SmartPi (will be send in JSON-File)
name Name of SmartPi (will be send in JSON-File)
lat, lng Location (will be send in JSON-File)
[database]
dir, file
Path and location of the integrated rrd database
i2c_device Device of the I2C
shared_dir, shared_file Location of the file for sharing actual values to other processes
power_frequency Frequency of the grid (important for right values)
measure_voltage If it is 1 the voltage will be measured. If it is 0 the SmartPi uses the listed voltage in [voltage]
change_current_direction If the value is 1 the power measurement will be inverted
 ftp_upload If value is 1 ftp upload of csv-file is enabled. If value is 0 the program will do nothing.
ftp_server, ftp_user, ftp_pass Login details from the ftp-server. (for later use)
ftp_path Directory path for the SmartPi csv files. The last directory is the serial number.
[csv]
decimalpoint, timeformat 
Set the decimal separator and timeformat for the csv file.
 port Port of the integrated webserver
 docroot Document root of the integrated webserver
[umts] Huawei E3131 supported
umts 1=active
umts_apn APN 
umts_pin Your PIN
umts_username APN username 
umts_password APN password