FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

Power-on and utilisation monitoring

Idea

To develop, for use in an tool rental, an electrical tool power-on and utilisation monitor, small enough to be placed into the wall plug. Basis is an Attiny84A, programmed to constantly send its collected data via 2.4 GHz radio nRF24L01+ to a base station.

Power is provided by a capacitive power supply directly off the mains. Power consumption of the connected tool is measured, roughly, via small-scale magnetometer HMC5883L, making it possible to collect and summarise utilisation hours under a certain number of different consumption conditions.

Since flash and eeprom memory only sustain a limited amount of write cycles, and a cyclic writing say every five minutes would lead to 100.000 write operations per year for a constantly connected tool, the collected data is written from SRAM to permanent storage only at power drop using remaining capacitor energy.

Data emitted via radio is collected at a base station, forwarding the data to a specific Internet service which stores the data records into a database and then provides versatile facilities for evaluation, statistics and/or B2B connectivity to a rental tool. The base station thus must support both 2.4GHz radio and an Ethernet connection to the Internet. A speaker would be handy as well. In my case the previously design of an IOT base station is reused for this purpose..

It is important in this context to be able to update the software not only of the IOT base station (see there for solution), but also of the remote power monitor nodes. This implies the design and implementation of a radio bootloader protocol and software for the monitoring nodes, and a respective server software for the IOT base station, which itself would draw the necessarz software from the Internet.

Hardware-Design Version 05

Schaltplan
Board

Das Board wird mit Plastik 70 Super o.ä. behandelt und/oder in eine Silikonhülle verbaut. So kann dann eine der zwei Gerätezuleitungen mit einem dünnen Kabelbinder definiert über oder unter dem Magnetometer entlang geführt werden.

Platinenfertiger-Shootout

ÜbersichtOben links Oshpark, oben rechts Itead
Unten links Seeed, unten rechts Elecrow

Erstaunlicherweise haben alle Hersteller die nötigen Schlitze ohne Aufpreis gefräst.
OshparkBestellt am 25.März, verschickt am 2.April, erhalten am 12.April
Beste Lötstoppmaske, keinerlei Ausfransen bei 7 mil Abstand. Feiner Bestückungsdruck. Bohrungen>=13mil, Viaringe>=7mil → 12/24 Vias werden knapp. Saubere Bohrungen (man kann durch alle durchsehen). Bohrversatz ca. 3-4mil. Schlitzbreite 1mm nicht ganz eingehalten. Sollbruchstellen müssen nachgearbeitet werden.
2.46€ pro 3, 0.82€ pro Stück, kostenloser Versand.
SeeedBestellt am 25.März, verschickt am 2.April, erhalten am 16.April
Lackgefüllte Bohrlöcher. Bohrversatz ca. 2-3mil. Kein Lötstop unter ca. 7mil Abstand. Grob gerasterter Bestückungsdruck.
13.48€ pro 10 (inkl. 6.08€ Versand), 1.35€ pro Stück.
IteadBestellt am 26.März, verschickt am 31.März, erhalten am 10.April
Lackgefüllte Bohrlöcher. Bohrversatz ca. 1-3mil. Kein Lötstop unter ca. 7mil Abstand. Grob gerasterter Bestückungsdruck.
10.33€ pro 10 (inkl. 2.92€ Versand), 1.03€ pro Stück.
ElecrowBestellt am 25.März, verschickt am 1.April, erhalten am 14.April
Farbe ohne Aufpreis. Lackgefüllte Bohrlöcher. Bohrversatz ca. 1-3mil. Kein Lötstop unter ca. 12mil Abstand. Grob gerasterter Bestückungsdruck, zum Teil recht weit vom Lötstopprand schon beschnitten.
10.84€ pro 10 (incl. 3.53€ Versand), 1.08€ pro Stück.

Verbesserungen und Korrekturen

Hardware-Design Version 07

Schaltplan
Board
Bestückung

Verbesserungen und Korrekturen zwischen Version 07 und Version 09

Hardware-Design Version 09

Schaltplan
Board
Bestückung

Kosten

IdentSpezGrößeNrEinzelSumme
Version V05
C1,C2220nF, 450V121020.3840.768
C3,C4100μF120620.6001.200
C51μF04021 0.019
C6,C16100nF040220.0050.010
C7,C818pF040220.0640.128
C910nF04021 0.006
C101nF04021 0.006
C1133nF04021 0.018
C122.2nF04021 0.008
C134.7pF04021 0.168
C141.5pF04021 0.064
C151.0pF04021 0.064
C174.7μF, 16V08051 0.137
C18220nF04021 0.036
D1Zener 4.7VMINIMELF1 0.026
D2SchottkyMICROMELF1 0.060
L13.9nH04021 0.017
L22.7nH04021 0.017
L38.2nH04021 0.036
Q116MHz, 10ppm12101 0.758
R0100Ω12061 0.014
R1,R2220kΩ120620.0140.028
R3,R422kΩ, 1%040220.0160.032
R5,R62.2kΩ040220.0100.020
U1ATTINY84A-MUMLF201 1.010
U4ANTENNAANTENNA1 0.403
V1AAT3220SOT231 0.136
Preis ohne/mit MwSt5.1896.175
U2NRF24L01+QFN201ebay0.860
U3HMC5883LLPCC161ebay1.590
PCB Oshpark0.820
Preis aller Komponenten9.445
Version V07
D1Zener 5.6VMINIMELF1 0.026unverändert
D2'Brückengleichrichter DLPA006 160mASOT-3631 0.408statt 0.060
R1/2'470kΩ12061 0.014statt 0.028
R727kΩ, 1%04021 0.016zusätzlich
Zusatzkosten0.3500.417
Preis aller Komponenten9.862
Version V09
R1←R0100Ω 500V12061 0.033statt 0.014
R2470kΩ 500V12061 0.033statt 0.014
Zusatzkosten0.0380.045
Preis aller Komponenten9.907

Software

Eine erste Version einer Betriebsstundensoftware findet sich unter http://github.com/wangnick/bsz. Die entsprechende Internet-Gateway-Software für die Basisstation ist noch in Arbeit. Auch eine Kalibrierfunktion für den Stromverbrauch fehlt noch.

Ein erster Versuch eines Bootloaders findet sich unter https://github.com/wangnick/mirfboot. Der dazugehörige Bootserver ist noch in Arbeit.

Foren-Beiträge