Kategorie-Archiv: SmartPi

Connection to the Raspberry Pi

Moved to: http://www.enerserve.eu/en/service/smartpi.htmlhttp://www.enerserve.eu/en/service/smartpi.html

Umgezogen nach: http://www.enerserve.eu/de/service/smartpi.html

 

 

 

 

 

 

The following manual is only for the old SmartPi version 1. If you have a SmartPi 2.0 or higher, please use the link above.

 

 

 

 

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

Print Friendly, PDF & Email

Assembling the SmartPi

Moved to: http://www.enerserve.eu/en/service/smartpi.htmlhttp://www.enerserve.eu/en/service/smartpi.html

Umgezogen nach: http://www.enerserve.eu/de/service/smartpi.html

 

 

 

 

 

 

The following manual is only for the old SmartPi version 1. If you have a SmartPi 2.0 or higher, please use the link above.

 

 

 

 

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

Print Friendly, PDF & Email

SmartPi Use

Moved to: http://www.enerserve.eu/en/service/smartpi.htmlhttp://www.enerserve.eu/en/service/smartpi.html

Umgezogen nach: http://www.enerserve.eu/de/service/smartpi.html

 

 

 

 

 

 

The following manual is only for the old SmartPi version 1. If you have a SmartPi 2.0 or higher, please use the link above.

 

 

 

 

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
Print Friendly, PDF & Email