SSH-Connection with PuTTy and Xming SSH-Connection with MobaXterm StromPi 3 scripts Serial scripts Serialless scripts Raspberry Pi Pin-Layout Automatic execution of scripts Modifications Opening of the serial console of the Strompi 3 console commands Support EU-Declaration of conformity Published: 08.08.2019 Copyright by Joy-IT...
Unexpected power failures are now in the past. The prioritized inputs can easily be changed which means the StromPi 3 is able to fit in your project perfectly. With the voltage range from 6V to 61V and a current with up to 3A, there is enough power for bigger projects.
Switch capacitor-buffering voltage input The StromPi 3 can heat up if it is under heavy load. Do not touch the board when it is in operation you could burn yourself. Pay attention that the device has a good air flow to prevent any damage from overheating.
StromPi 3 CURRENT SOURCES The StromPi 3 can get its power from three different current sources. In case of a power failure it switches steplessly to the current source which is configurated as the second and after that to the third.
StromPi 3 BATTERY-UNIT The StromPi 3 can be expanded with an optional 1000mAh LiFe04 battery, which is a rechargeable emergency power source. You only have to plug in the separate available battery unit, which then can be configurated as the second or third current source.
Page 7
StromPi 3 FUNKTIONEN DES STROMPI 3 1: Choose StromPi mode. 2: Activate or deactivate the powerfail warning 3: Setup of the BatteryShutdown mode 4: Activate or deactivate the Serialless mode 5: Activate or deactivate the Power Save mode 6: Activate or deactivate the Poweroff mode...
Page 8
StromPi 3 FUNCTIONS OF STROMPI 3 StromPi mode: The StromPi mode determines the prioritization of the separate current sources. Powerfail warning: The PowerFail warning will show when the primary power source is failing. Battery shutdown mode: The battery shutdown mode determines with which remaining battery level of the RaspberryPi the device will shut down.
StromPi 3 4.1 PRIORITIZATION OF INPUT The power source where the StromPi draws its power from can be set up as desired. In addition, you can select a second and a third power source which will take over if the first source fails.
Please note that you have to use atleast one power source connected (mUSB, Wide or battery) - If all sources are seperated, the current time will not be saved. The real time clock (RTC) of the StromPi 3 can be setup with the Configscript: ADJUST TIME AND DATE MANUALLY To adjust time and date manually click on Manual Setting.
StromPi 3 4.2.2 AUTOMATIC CONFIGURATION OF TIME In addition we provide a script which synchronizes the time after the boot of the Raspberry. This script can be downloaded here in the download area in section „Scripts“. Download the archive, unzip and copy the script to your Raspberry Pi.
If you have set the shutdown timer to 600 (600 → 10 minutes) the system reacts like: If the StromPi 3 detects a power failure on the main power supply it will start the timer. After 10 minutes the StromPi cuts the power to the Raspberry Pi. Additionally, we offer you a script which can detect a power failure through the serial console or with a GPIO pin and begin the safe shutdown of the Raspberry Pi.
4.2.4 ALARM-MODE The StromPi 3 has the possibility to boot and shutdown the Raspberry time -controlled. The combination of WakeUp and PowerOff alarm lets you configurate the start -stop- behavoiur for the Raspberry Pi (for example every day at 10:45 AM is the boot and the shutdown is at 1:00PM).
The PowerOff alarm allows the Raspberry to shut down at the preset time every day. Although, the Raspberry Pi can be only shutdown with this mode once a day. To shut down the StromPi 3 time-controlled start the Configscript: Switch the “Choose PowerOff alarm mode“ to Enable to activate the PowerOff alarm. The time to shutdown the Raspberry can be put in the 2 boxes on the right next to it.
The Wake-Up alarm allows you to start the Raspberry time -controlled. Additionally, you have the opportunity to start it at a particular date or at a particular weekday. To start the StromPi 3 time-controlled start the Configscript: Switch the „Choose WakeUp-Alarm Mode“ to Enable to activate the WakeUp-alarm. The time when the Raspberry Pi has to start can be filled in the boxes on the right next to it.
StromPi 3 4.2.7 MINUTE WAKEUP ALARM The Minute wakeup alarm allows you to set a timer that will start the raspberry after it got shutdown through the Poweroff Alarm or the „poweroff“ command. You have to activate the mode in the Configscript.
4.2.9 INTERVAL FUNCTION The interval function allows to define time intervals when the Raspberry shuts down and starts with the StromPi 3. This function can be activated and configurated with the configscript in point “interval timer“. Switch the “Choose Interval-Alarm Mode:“ to Enable to activate the interval function.
HAT which uses the serial interface at the same time as the StromPi. However, it inhibits the configuration of the StromPi 3. For that reason it is advisable to configurate the StromPi bevor activating the Serialles mode.
After this it is possible for the StromPi 3 to restart by shorting the Reset pins. If the StromPi 3 is already modified for the Serialless mode or if the Serialless mode want to be used with the PowerOn button modification, you must perform another minor modification.
Enable in the Configscript in point “Choose Poweroff Mode“. 5.5 POWERSAVE MODE The Powersave mode allows to reduce the power consumption of the StromPi 3 through a voltage transformer which will be deactivated if the Wide port is not in use and is only activated if a power failure is detected on the primary power source.
Page 21
StromPi 3 CONFIGURATION OF THE STROMPI 3 In this chapter we show you how to setup the serial communication of your StromPi. This manual is based on the Raspbian Stretch version of April 2019. We recommend the use of the newest version of the Raspbian Stretch images.
Page 22
StromPi 3 6.1 ACTIVATION OF THE SERAIL COMMUNICATION Additionally it is necessary to activate the Raspberry Pi ‘s serial interface and deactivate the serial console. You can do this with the Raspberry Pi configuration or with the Rasp -Config. To do this with the Raspi-Config enter the following command in the terminal window at...
Page 23
StromPi 3 6.1 AKTIVIERUNG DER SERIELLEN KOMMUNIKATION Answer the question “Would you like a login shell to be accessible over serial? “ with “No“. Answer the question “Would you like the serial port hardware to be enabled? “ with “Yes“.
StromPi 3 6.2 EXECUTION OF THE GUI SCRIPT Attention! The StromPi configscript does not work with the CLI version of the StromPi firmware, only the main version of the firmware supports the script. Addi- tionally the serial communictaion has to be activated [ look chapter 6.1 “Activation of serial communication“]...
StromPi 3 6.4 SSH-CONNECTION WITH PUTTY AND XMING Run the following command: sudo raspi-config Choose “Interfacing Options“ After that activate “SSH“ Now you have to download PuTTY Xming Start the file XLaunch.exe in the installation directory of Xming. Choose “Multiple Windows“ and after that enter in “Display number“ 0.
Page 26
StromPi 3 6.4 SSH-CONNECTION WITH PUTTY AND XMING Ensure that Start no client is chosen: Press Next without any changes: Press Finish: Published: 08.08.2019 Copyright by Joy-IT...
Page 27
StromPi 3 6.4 SSH-CONNECTION WITH PUTTY AND XMING Now you have to setup PuTTY. Ensure you have selected “Session“ “SSH“ and put the IP address of you Raspberry Pi in the Host Name text box. Ensure you have turned “Enable X11 forwarding“ in point “X11“ to on and put „localhost:0.0“ in “X display location“.
Page 28
StromPi 3 6.4 SSH CONNECTION WITH PUTTY AND XMING Enter following command: sudo –E python3 strompi_config_gui.py Now the grafical surface should appear. It should look like this: The shown values will be synchronized at the start of the script with the setting of the StromPi.
StromPi 3 6.5 SSH CONNECTION WITH MOBAXTERM Ensure that SSH is activated. If it is not setup already look at the last chapter how to activate the SSH. As the next step download MobaXTerm. Press on “Session“ now and choose SSH.
Page 30
StromPi 3 6.5 SSH CONNECTION WITH MOBAXTERM The grafical surface should look like the following: The shown values will be synchronized at the start of the script with the setting in the StromPi. You can now change values individually and with the Press on “Update“ the settings will be saved.
StromPi 3 STROMPI 3 SCRIPTS All our published scripts for the StromPi 3 can be downloaded here. Additionally to the configscript which you already know there are the following scripts: The serial scripts read and send necessary information through the serial interface instead of the Serailless scripts which will use a GPIO pin.
Page 32
StromPi 3 STROMPI 3 SCRIPTS 7.1 SERIAL SCRIPTS Poweralarm_serial.py This script sends a email at the stated email in the script if the primary voltage source fails. A further email will be send if the primary voltage source comes back or if the Raspberry restarts.
StromPi 3 STROMPI 3 SCRIPTS SERIALLESS SCRIPTS poweralarm_serialless.py This script sends a email at the stated email in the script if the primary voltage source fails. A further email will be send if the primary voltage source comes back or if the Raspberry restarts.
Page 34
StromPi 3 STROMPI 3 SCRIPTS 7.2 SERIALLESS SCRIPTS powershutdown_serialless.py This script shuts the raspberry down if the primary power source fails. The script has its own shutdown timer which determines the time which will be waited if the power supply returns prior to the shutdown of the Raspberry Pi.
Page 35
StromPi 3 STROMPI 3 SCRIPTS 7.2 SERIALLESS SCRIPTS RTC_EMail_serialless.py This script compares the time of the Raspberry with the time of the StromPi and the older one gets overwritten from the more recent one. Additionally it sends an email to the set email address if the power fails.
Page 36
StromPi 3 STROMPI 3 SCRIPTS 7.2 SERIALLESS SCRIPTS RTCSerialless.py This script was written particular for the Serialless mode. At the start of the script the Serialless mode will be closed so that the time of the Raspberry Pi and the StrompiPi can be compared and the older one can be overwritten with the more recent one.
StromPi 3 RASPBERRY PI PIN-LAYOUT Here you can see here the layout of the pins: GPIO-Board GPIO-Board Number: number: 3.3V DC 5V DC GPIO 2 (SDA1, I2C) 5V DC GPIO 3 (SCL1, I2C) Ground GPIO 4 GPIO 14 (TXD0) Ground...
StromPi 3 AUTOMATIC EXECUTION OF SCRIPTS Scripts can be copied to the autostart of the Raspberry Pito get executed at the start: sudo nano /etc/rc.local Here can the script be added. The following command must be added for the command "exit 0".
StromPi 3 MODIFICATIONS In the following chapters are all modifications for some function of the StromPi and how to use them described. 8.1 Serialless Mode For the modification for the Serialles mode are 3 different variation which are explained in the following.
Page 40
StromPi 3 8.1 Serialless Mode VARIATION 2 Solder one end of the cableon to the free pad like shown in the picture. Note that the Jumper at the Reset -pin have to be plugged in for that. The other end of the cable is like in picture 1 plugged on to the free GPIO -pin.
Page 41
StromPi 3 8.1 Serialless Mode VARIATION 3 For variation 3 you have to solder one end of the cable on the free pad at the Reset-pins. The jumper still has to be set here. The other end of the cable have to be soldered at one GPIO-pin like shown in the picture.
Page 42
StromPi 3 MODIFICATION PowerOn button The both red-marked pads to solderhave to be bypassed with a cable. Give some solder on both pads. Solder one end of the cable on the upper pad. Published: 08.08.2019 Copyright by Joy-IT...
Page 43
StromPi 3 PowerOn button At the last step, the other end of the cable must be soldered at the lower pad. Now the system is able to restart after a “PowerOff“ command through short of the red- marked Reset-pins. When it is running the jumper should not be set. To make it more comfortable it is possible to add a switch at the pins to short -circuit them for a restart.
Page 44
StromPi 3 SERIALLESS + POWERON BUTTON MODIFICATION Because the pad that is used for the serialless modifikation is occupied the cable for the serialless mode has to be soldered at the red -marked pad for the Serialless mode. Published: 08.08.2019...
Page 45
StromPi 3 SERIALLESS + POWERON BUTTON MODIFICATION For more information about the Serialless mode please read the chapter about the Serialless mode. Published: 08.08.2019 Copyright by Joy-IT...
Or the shortage: sspc The serial console of the StromPi 3 should open now. The current configuration settings of your device can be looked up with the command show-status. A general overview gives you the command help. With the key combination of Strg + A + X , Enter you are closing Minicom.
Page 47
StromPi 3 OPENING OF THE SERIAL CONSOLE OF THE STROMPI 3 Should after the input of the following command: sudo minicom -D /dev/serial0 -b 38400 „Port /dev/tty8“ (like shown in the picture below) and not „Port /dev/serial0“ show up you have to confi- gurate Minicom manually.
Page 48
StromPi 3 OPENING OF THE SERIAL CONSOLE OF THE STROMPI 3 Enter an “E“ and this window appears: Press “D“ to set a baud rate of 38400. Confirm this two times with Enter to return to the configuration menu. After that press on “Save as dfl“ and the following window should appear: You can leave with “ESC“...
StromPi 3 STROMPI 3 CONSOLE COMMANDS Commands for the CLI and main firmwareversions Start StromPi console: startstrompiconsole sspc oder Close StromPi console: quit List all commands: help Setup the time of the RTC of the StromPi: set-clock <hour> <minutes> <seconds>...
Page 50
StromPi 3 STROMPI 3 CONSOLE COMMANDS Activate <1> or deactivate <0> the warning by failure of primary power supply: Warning-enable <option> Setup of Wakeup alarms (<1>: time, <2>: date, <3>: weekday): alarm-mode <mode-number> Activate <1> or deactivate <0> the Wakeup alarms: alarm-enable <option>...
StromPi 3 SUPPORT We also support you after your purchase. If you have any questions left or encounter any problems, feel free to contact us by email, phone or with our ticket -supportsystem on our website. E-Mail: service@joy-it.net Ticket-System: http://support.joy-it.net Telefon: +49 (0)2845 98469 –...
Raspberry PI 3 & other SBC (SingleBoardComputer) 5V Purpose: Application in Prototyping / Experimental setup Confirms that the product “JOY-IT StromPi 3“ if it is used as intended, the requiremnets of the following guidelince are fulfilled: 2014/30/EU (EMC) & 2011/65/EU (RoHS)
Need help?
Do you have a question about the StromPi 3 and is the answer not in the manual?
Questions and answers