You are on page 1of 21

Solarmapper GmbH

Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,


61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Instruction manual
(rev. date: 14 June 2017)

Assembly, firmware, calibration and data access of the power monitor

Solarmapper power monitor at a glance

1. Wireless power usage monitoring through SSH, web and Android app.
2. Free access to solarmapper solar PV design application.
3. Design and real-time monitoring of Virtual solar PV + storage
performance.
4. Free real-time access to actual measurements data.
5. Open platform – develop your own power monitoring firmware using
Solarmapper hardware.

Instruction manual / rev. 002 – 14.06.2017 1


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Table of contents

Contents

Table of contents .................................................... 2


Assembly ............................................................. 3
PCB assembly drawing 1-phase ......................................... 5
PCB assembly drawings 3-phase ........................................ 6
Bill of material 1-phase ............................................. 8
Bill of material 3-phase ............................................. 9
Install firmware .................................................... 10
Calibration 1-phase ................................................. 11
Calibration 3-phase ................................................. 12
Installation ........................................................ 13
Access data ......................................................... 14
Android app ......................................................... 20
FAQ ................................................................. 21

Instruction manual / rev. 002 – 14.06.2017 2


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Compatibility

Raspberry Pi 1 Model B

Raspberry Pi 1 Model A+

Raspberry Pi 1 Model B+, Raspberry Pi 2 and Raspberry Pi 3

Instruction manual / rev. 002 – 14.06.2017 3


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Assembly
add-on boards

1-phase 3-phase

GPIO

pins involved: 1  30

Instruction manual / rev. 002 – 14.06.2017 4


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

PCB assembly drawing 1-phase

Instruction manual / rev. 002 – 14.06.2017 5


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

PCB assembly drawings 3-phase


1. 3-phase top side

Note the different


placement of R4
trimmer

Instruction manual / rev. 002 – 14.06.2017 6


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

2. 3-phase bottom side

Instruction manual / rev. 002 – 14.06.2017 7


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Bill of material 1-phase


ADC ADC, 10BIT, 2.7V, 1CH adc
C1 CE 10uF 16V capacitor
C2 CML 2.2nF 50V X7R P2.5 capacitor
C3 CML 1.0uF 50V X7R P2.5 capacitor
D1 BZX55(79)C5V1 MBR z diode
LED1 CLL-50421 orange led
LED2 L-53SGD green led
PH1 ph1 connector
R1 RW25MF 910R 1% resistor
R2 3296W(64W) 200R MBR trimmer
R3 RW25MF 1.0K 1% resistor
R4 RW25CF 330R resistor
R5 RW25CF 330R resistor
R6 RW25MF 1.0K 1% resistor
SV2 PN2X15 connector
VREF 4.1V Shunt reg, 1%, 50 vref

Instruction manual / rev. 002 – 14.06.2017 8


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Bill of material 3-phase


ADC ADC, 12BIT, 2.7V, 4CH adc
C1 CML 2.2nF 50V X7R P2.5 capacitor
C2 CML 2.2nF 50V X7R P2.5 capacitor
C3 CML 2.2nF 50V X7R P2.5 capacitor
C4 CML 1.0uF 50V X7R P2.5 capacitor
C5 CE 10uF 16V capacitor
D1 BZX55(79)C5V1 MBR z diode
D2 BZX55(79)C5V1 MBR z diode
D3 BZX55(79)C5V1 MBR z diode
LED1 CLL-50421 orange led
LED2 L-53SGD green led
PH1 PH1 connector
PH2 PH2 connector
PH3 PH3 connector
R1 RW25MF 910R 1% resistor
R2 RW25MF 910R 1% resistor
R3 RW25MF 910R 1% resistor
R4 3296W(64W) 200R MBR trimmer
R5 3296W(64W) 200R MBR trimmer
R6 3296W(64W) 200R MBR trimmer
R7 RW25MF 1.0K 1% resistor
R8 RW25MF 1.0K 1% resistor
R9 RW25MF 1.0K 1% resistor
R10 RW25CF 330R resistor
R11 RW25CF 330R resistor
R12 RW25CF 330R resistor
R13 RW25CF 330R resistor
R14 RW25MF 1.0K 1% resistor
SV2 PN2X15 connector
VREF 4.1V Shunt reg, 1%, 50 vref

Instruction manual / rev. 002 – 14.06.2017 9


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Install firmware
1. Log in to the Raspberry Pi microcomputer and execute the following:
mkdir -p /home/pi/solarmapper_tools
cd /home/pi/solarmapper_tools
wget http://78.142.63.195/powermeter/firmware/PowerMeter
chmod 755 PowerMeter
sudo ./PowerMeter

2. Edit the configuration:


sudo nano /etc/PowerMeter.cfg
Vary the ctRatio values, run and check the output, iterate until
calibrated.
sudo ./PowerMeter

1-phase example:
apiUrl=http://78.142.63.195:8080/server/api/putCons.php
output=output.txt
phases=1
adcBits=10
vRef=3.985
ctRatio=0.0374731842832225
mainsVoltage=230
calibZeroW=0
measCount=1

3-phase example:

apiUrl=http://78.142.63.195:8080/server/api/putCons.php
output=output.txt
phases=3
adcBits=12
vRef=3.985
ctRatio_0=0.0374731842832225
ctRatio_1=0.0374731842832225
ctRatio_2=0.0374731842832225
mainsVoltage=380
calibZeroW=0
measCount=1

3. Schedule 1-minute run:


crontab -e

Add the following lines:


*/5 * * * * sudo /home/pi/solarmapper_tools/network-monitor.sh
*/1 * * * * sudo /home/pi/solarmapper_tools/PowerMeter

Remove this line, if present:


*/1 * * * * sudo python /home/pi/solarmapper_tools/logger.py

4. Test output:
less /home/pi/solarmapper_tools/logs/output.txt
Press “Q” to exit test.

Instruction manual / rev. 002 – 14.06.2017 10


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Calibration 1-phase

25 turns trimmer

Ensure network connectivity. Attach the add-on board, plug in the


current transformer (close clamp, not attached to power cable) and
power supply. Access the command line of the Raspberry Pi. Follow the
calibration cycle until reaching the minimum power:
1. Initiate measurement: execute PowerMeter command

pi@raspberrypi: ~ $ sudo ./PowerMeter


Solarmapper PowerMeter v1.3

Offset to GMT is 10800


Daylight saving: 1
power: 1.207099
Sending http request...
1
<== http response

pi@raspberrypi:~ $

2. Turn the trimmer to minimize the displayed power and initiate


another measurement.

Instruction manual / rev. 002 – 14.06.2017 11


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Calibration 3-phase
25 turns trimmer

Ensure network connectivity. Attach the add-on board, plug in the


current transformer connector(close clamp, not attached to any power
cable) and the power supply. Follow the calibration cycle until
reaching the minimum power. Access the command line of the Raspberry
Pi. Follow the calibration cycle until reaching the minimum power for
PH1:
1. Initiate measurement: execute PowerMeter command

pi@raspberrypi: ~ $ sudo ./PowerMeter


Solarmapper PowerMeter v1.3

Offset to GMT is 10800


Daylight saving: 1
power: 3.535389 (1.207099 1.326566 1.001725)
Sending http request...
3
<== http response

pi@raspberrypi:~ $

2. Turn the trimmer to minimize the displayed power and initiate


another measurement.
3. Repeat the procedure for the 2 remaining channels.

Instruction manual / rev. 002 – 14.06.2017 12


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Installation

The following installation must be conducted by a licensed electrician


and in accordance with the local electrical codes!
You should wear personal protective equipment and use only High
Voltage Resistant tools (usually marked with 1000V on the handle) when
installing a current transformer on a conductor exposing hazardous
live voltages.
1. Open the power box (remove the protective cover if present). Locate
the main power cable or the main power cables in 3 ph power supply.
Look for a power supply socket, a suitable place for the RPI and its
power supply.
2. Attach the current transformers/s to the main power
cable/s in such a way to ensure the free movement of the
clamp/s after locking.
3. Plug in the clamp cable/s.
4. Plug in the power adapter. If there is no power socket, connect the
EU socket cables to the Neutral bar (bus) and the output of a circuit
breaker you choose (the voltage in the socket must not exceed 240 V).
Attach the Wi-Fi dongle to the RPI. Power up the RPI and make sure the
it is connected to the local Wi-Fi network.
5. Test the setup using command line and a SSH client software (Putty
and a likes). Open SSH session, login to your RPI and run:
sudo ./PowerMeter

The result must be:

………………………………………………………………………….
Solarmapper PowerMeter v1.3

Offset to GMT is 10800


Daylight saving: 1
power: 20.624033 (watts of power or any other relevant value)
Sending http request...

Instruction manual / rev. 002 – 14.06.2017 13


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Access data
1. Sign up to solarmapper.de.

2. List your RPI hardware ID in the profile Settings menu.

3. Create your first virtual PV project. Click Projects form the main
menu and then New Inquiry. Close in to your point of interest and
follow the instructions (righthand side of the screen).

Instruction manual / rev. 002 – 14.06.2017 14


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

4. Start monitoring. Go to the newly created project.

Instruction manual / rev. 002 – 14.06.2017 15


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Review the tabs focusing on Consumption and Daily analysis:

Instruction manual / rev. 002 – 14.06.2017 16


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

or go straight to Monitoring summary page by clicking on

from Consumption tab.

Instruction manual / rev. 002 – 14.06.2017 17


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Output data:

Instruction manual / rev. 002 – 14.06.2017 18


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Virtual PV project performance monitoring (select battery size that


matches the capacity of a particular EV):

Instruction manual / rev. 002 – 14.06.2017 19


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

Android app
1. Go to solarmapper.co/smapp.apk using your Android phone browser.
2. Download it.
3. Follow the steps: Menu -> Settings -> Applications -> Enable
unknown sources -> Click ok in the pop up.
4. Enable desktop setup / widgets and move the SM app widget to the
desired position.

Instruction manual / rev. 002 – 14.06.2017 20


Solarmapper GmbH
Herzog-Adolph-Str. 4, Tsar Ivan Asen II Str. 14,
61462 Königstein i.Ts, Germany 1504 Sofia, Bulgaria
www.solarmapper.de

FAQ
1. What if my PI stops working:
Prepare a USB stick containing a directory named "solarmapper".
Download the file from http://78.142.63.195/powermeter/firmware/PowerMeter
and save it under directory "solarmapper".
Plug the USB stick to the device and wait until the yellow and green LEDs
light up and then go down.
When the LEDs are not flashing, you can plug out the USB stick.

Instruction manual / rev. 002 – 14.06.2017 21

You might also like