Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 798
» Latest member: theskindoctor
» Forum threads: 169
» Forum posts: 675

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 49 Guest(s)

Latest Threads
Grafana Dashboard
Forum: SmartPi - Deutsch
Last Post: chris
8 hours ago
» Replies: 1
» Views: 182
Falsche Spannungswerte na...
Forum: SmartPi - Deutsch
Last Post: jens
Yesterday, 13:29
» Replies: 10
» Views: 2.309
SmartPi defekt?
Forum: SmartPi - Deutsch
Last Post: jens
Yesterday, 13:24
» Replies: 5
» Views: 220
SmartPi steigt nach ca. e...
Forum: SmartPi - Deutsch
Last Post: HansKnackwurst
02.07.2020, 19:55
» Replies: 22
» Views: 6.739
SmartPi mit weniger als 2...
Forum: SmartPi - Deutsch
Last Post: jens
02.07.2020, 09:30
» Replies: 3
» Views: 146
MQTT EpTot und EcTot
Forum: SmartPi - Deutsch
Last Post: zimberg
24.06.2020, 10:45
» Replies: 2
» Views: 827
Mehrwert der Stromerfassu...
Forum: SmartPi - Deutsch
Last Post: jens
23.06.2020, 15:41
» Replies: 3
» Views: 296
SmartPi - Stromwandler an...
Forum: SmartPi - Deutsch
Last Post: Andi
08.06.2020, 14:12
» Replies: 1
» Views: 287
Absicherung Spannungseing...
Forum: SmartPi - Deutsch
Last Post: Heimar
03.06.2020, 18:36
» Replies: 3
» Views: 430
Wünsche an die Software
Forum: SmartPi - Deutsch
Last Post: Heimar
03.06.2020, 17:37
» Replies: 6
» Views: 2.277

  Problem beim Anzeigen der Netzfrequenz
Posted by: Juergen Matthias - 06.05.2017, 20:22 - Forum: SmartPi - Deutsch - Replies (4)

heute habe ich mein Smartpi installiert. Anfänglich schien alles korrekt zu funktionieren.
Als ich die Anzeige eine Zeit lang beobachtet habe, fiel mir auf, dass die angezeigte Netzfrequenz
von „L3“ ohne erkennbaren Grund immer wieder kurzzeitig auf 0Hz springt oder aber sehr hohe
Frequenzen anzeigt. Nach ein paar Sekunden werden dann wieder die 50Hz angezeigt. Den Wandler
habe ich schon mit „L2“ getauscht das Problem besteht aber weiterhin.


Hat hier jemand eine Idee, wo das Problem liegen könnte?

Beste Grüße

Print this item

  Dynamic exporters for smartpireadout
Posted by: TriCX - 05.05.2017, 10:45 - Forum: SmartPi - English - Replies (14)

The implementation of the software is progressing on github.

I by myself don't use the provided webserver.
Instead, I'm usinf smartpi as metering device and export the data towards emoncms.

I imagine the usage of the smartpi will be manifold.
Currently export towards

  • MQTT
  • CSV
  • SQLite3
  • Prometheus
are available or planned.
I expect more in the future.

Therefore I propose a generic interface to load and instanciate exporters dynamically.
The interface towards the hardware is implemented in ade7878.go.
It implements a function "ReadoutValues", which currently returns a list of 25 float values for further processing.
readout.go itself makes use of these values to export them to various receivers.

I propose to enhance the config file with a list of exporters and their configurations.
Depending on configured exporters, corresponding classes are instanciated and used via a common interface.
The interface should define the numbers of values, their meaning (e.g. name) and of course their values.
Each exporter could be implemented in a separated file, which keeps the code clean and more compact.

This way each user can easily decide which exporter to use, without wasting MIPS on embedded devices for unnecessary processing of the read values.

What do you think about?


Print this item

  Constants per phase
Posted by: SuperQ - 02.05.2017, 08:51 - Forum: SmartPi - English - Replies (5)

In the ade7878.go source, there are a bunch of constants defined per phase.  It doesn't seem necessary to do this, as all of the values are the same per phase.  It would greatly simplify things if we could eliminate the per-phase component.

 CURRENT_RESISTOR_A        float32 = 7.07107
 CURRENT_RESISTOR_B        float32 = 7.07107
 CURRENT_RESISTOR_C        float32 = 7.07107
 CURRENT_RESISTOR_N        float32 = 7.07107
 CURRENT_CLAMP_FACTOR_A    float32 = 0.05
 CURRENT_CLAMP_FACTOR_B    float32 = 0.05
 CURRENT_CLAMP_FACTOR_C    float32 = 0.05
 CURRENT_CLAMP_FACTOR_N    float32 = 0.05
 OFFSET_CURRENT_A          float32 = 0.97129167
 OFFSET_CURRENT_B          float32 = 0.97129167
 OFFSET_CURRENT_C          float32 = 0.97129167
 OFFSET_CURRENT_N          float32 = 0.97129167
 OFFSET_VOLTAGE_A          float32 = 1.0
 OFFSET_VOLTAGE_B          float32 = 1.0
 OFFSET_VOLTAGE_C          float32 = 1.0
 POWER_CORRECTION_FACTOR_A float32 = 0.019413
 POWER_CORRECTION_FACTOR_B float32 = 0.019413
 POWER_CORRECTION_FACTOR_C float32 = 0.019413

Print this item

  Hilfe bei der Installation und Anwendung
Posted by: sodom89 - 30.04.2017, 18:25 - Forum: SmartPi - Deutsch - Replies (1)


komme einfach nicht weiter. Habe inzwischen mehrfach die folgende Installationsanleitung befolgt. Funktioniert das ganze nicht auf einem Raspberry Pi B?
Oder welche IP-Adresse muss ich eingeben, denn mir wird immer nur im Ephany-Browser des Pis angezeigt, dass die Seite nicht verfügbar ist.

Quote:3. Installation of the prepared image

Download the prepared image from the following location:


After downloading the .7z file, unzip (Windows: http://www.7-zip.org/) it to get the image file (.img) for writing to your SD card.

Write the image file to your SD card. On the official website there are guides for your operating system:
Please insert the sd card into your smartpi and start your system.

Use the following userdata for the first login:

User: pi
Password: smart4pi

To avoid hacker attacs it is highly recommended to change your password.

To adjust the file system to the sd card please enter

sudo raspi-config

choose expand filesystem and follow the instructions.


The webpage and API can accessed by:


Print this item

  Understanding the data/code
Posted by: SuperQ - 26.04.2017, 17:11 - Forum: SmartPi - English - Replies (5)

I've been reading the code, trying to understand how/why everything works.  Mostly I've been going over main/reader.go and smartpi/ade7878.go.

I'm wondering if there is some additional documentation on all of the inputs and outputs.

I'm considering refactoring this code to make it easier to follow.  The big one is smartpi.ReadoutValues(), which returns a completely unformated slice of floats.  This should really be a struct, or broken up into several smaller sub-functions.

For example, in the main for{} loop of readout.go, there is a sub-loop that updates all of the current/voltage gauges (I think), but it ignores the cumulative counters every 5 seconds.

Then every 12 iterations (1min) it updates the database storage and two persistent cumulative counters.

Then it resets the value state for everything and starts the temporary cumulative counters over again.

Does this all sound correct?

I'm also wondering what unit these values are:

EB1: 1.116625  EB2: 0.0341316  EB3: 0.033458143  EL1: 0  EL2: 0  EL3: 0

One more question, it looks like there is no way to ignore disconnected phases, my apartment only has one phase, I can turn off voltage readings, but it appears to be counting some current against the cumulative counter on phases that are disconnected.

Print this item

  Data Download
Posted by: NoSpark - 26.04.2017, 15:29 - Forum: SmartPi - English - Replies (4)

Good day!  Smile

Thus far I am really enjoying my SmartPi!  I work as an engineer, and an old and senior one at that, for an electrical utility.  The concept of a smart meter really resonates with my fellow workers.  I have the SmartPi web (internet) facing so I really like to show it off around the office and during meetings!  Other engineers like to look at the data and try to figure out what appliances are operating.

Anyway, the only issue I have is with the display of data.  The Download or Table function works well when displaying a day or two of data, although it is a bit slow.  However, if I try to download two or three days the SmartPi stops responding to the web interface.   When it finally does produce the data I notice that the SmartPi has continued to collect data in the background and there is no gap in data continuity.

Two days ago I attempted to download about a month of data and apparently this locked up both the SmartPi Web interface and hung the data collection process resulting a loss of metering data for about 24 hours, that is when I was power cycled the to restart the SmartPi.

I have a 32GB SD card installed and all Raspbian and enerserve software is up to date.

My device is configured for a North American residential supply with a split phase 240 volt 60Hz system
My connections are:

L1 - L1 (120 v to Neutral [GND])
L2 - L2 (120 v to Neutral [GND])
L3 - Neutral [GND]
N - Neutral [GND]

L1 - L1
L2 - L2 
L3 - Not Connected (Open)
N - Not Connected (Open)

The data is not important to me yet, so this is just a user experience!

Thanks for a great product and your continuing support!


Print this item

  DIN rail install
Posted by: SuperQ - 26.04.2017, 14:09 - Forum: SmartPi - English - No Replies

Just to warm up the English section, here's some photos of my SmartPi install in a DIN rail case.

The case:

The PSU:

I very carefully modified the case to allow the SmartPi to be mounted.

I ended up doing some careful boring to drill out the mounting holes on my RPi and SmartPi board to allow for 3mm threading.  This worked better than the included 2.5mm standoffs because the case used 3mm mounting holes.

I used 18mm standoffs, but 20mm would also have worked.


Print this item

Posted by: jens - 26.04.2017, 13:42 - Forum: SmartPi - English - Replies (1)

Dear users,

Welcome to the SmartPi forum.
Here you can post questions, wishes, suggestions and ideas to the SmartPi.
Best regards Jens

Print this item

  Herzlich willkommen
Posted by: jens - 26.04.2017, 13:41 - Forum: SmartPi - Deutsch - Replies (1)

Liebe Benutzer,

herzlich willkommen im Forum zum SmartPi.
Hier könnt ihr Fragen, Wünsche, Anregungen und Ideen zum SmartPi posten.

Viele Grüße Jens

Print this item