Datalogging with Arduino over HAMNET

Aus DL8RDS Wiki
Wechseln zu: Navigation, Suche

1 Scope

This project is the master project and the preliminary endpoint of several other projects:

And it issued from the question how we can monitor the ATV relay DB0MHB over a long period and log all the activity as well as environmental data such as weather etc. In fact is it not so easy to implement datalogging if a relay project has been exclusively analog up to now (except for the controller).

2 Architecture

  • The first goal was the HAMNET connectivity. Without a data transport capability it would only have been possible to log data on-site, but we wanted to provide permanent and instant insights in the relay's status. So data connectivity was to be the first goal. We reached that by connecting DB0MHB and DB0BUL.
  • The second goal was to record the voltage of various station components and battery systems and provide the data over the network. We implemented this with an Arduino in combination with the Ethernet Shield.
  • The third goal was to create a CSV file out of the minutely data readings. The goal was reached by a simple perl script.
  • The fourth goal was to evaluate the CSV file with the charting package GNUPlot. We are using it to turn the CSV file into charts wo make the recent week(s) understandable in a chart.
  • The fifth goal was to present these pictures overa network for browser-enabled clients. This was done with a small Linux machine and the Apache web server.

3 Implementation of the Sensor Server

The sensor server is a standard Arduino Duemillanove with a recent Ethernet Shield:

ArduinoDuemillanove.jpg ArduinoEthernetShield.jpg

These two in combination make up the hardware for a Webserver that consumes only 1,3 Watts input. The trick is the WizNet 5100 chip on the Ethernet shield that implements everything up to the TCP protocol. The microcontroller can thus concentrate on the essential activities: Grab the data, prepare the web site and send it to the chip. Here's the chip's datasheet:

Since Arduino can handle the I2C protocol, I attached a LM75 temperature sensor and a high precision Analog Digital Converter from Gravitech to the BUS:

Here's some more pictures:

SensorServer1.jpg SensorServerExtADC.jpg

Voltage regulation for the 5V devices was done in a very overdimensioned way (as I like it) with a Cosel ZUS 25 1205 DC DC converter:

4 Implementation of the Current Sensor

This device was built by my friend Bernd DJ6PA:

LEMHAIS50PSensor.jpg

  • LEM HAIS 50P, a DC current transformer
  • a 741 OpAmp
  • some smaller stuff

5 Update 2018

We kicked out the blue sensors and introduced ACS712 based sensors. Accordingly the connections changed.

Connections:

  • Port 1 Verbrauchsstrom
  • Port 2 Notstrom Entnahme
  • Port 3 Aggregat Ladestrom
  • Port 4 Solarstrom

Notes for the formulas:

  • Verbrauchsstrom
3,75V <-> 45,5 A
2,46V <-> 0A
3,24V <-> 27A
  • Notstrom Entnahme
5V <-> 5A
2,46V <-> 0A
  • Aggregat Ladestrom:
3,20V <-> 70A
2,46V <-> 0A
  • Solarstrom
5,0V <-> 55A
2,46V <-> 0A

6 Results

14vgesamt.png

... and if you're happy and I have not yet redone it, you can chech the real values here: