Skip to content

Latest commit

 

History

History
118 lines (69 loc) · 4.09 KB

README.md

File metadata and controls

118 lines (69 loc) · 4.09 KB

DLTPower

DLTPower is used to control Power Supplies, Multimeter and Relais for Test Automation. It is developed for an Arduino SW running on a Wemos Mini D1 HW and several shields. It provides an interface to DLT for Logging and Test Automation.

Image of DLTPower

Image of Wemos Relais Board

For further information about DLT visit the DLT Viewer project:

https://github.com/GENIVI/dlt-viewer

Wemos Mini D1 Hardware

The following parts are needed to setup a Relais board:

If more than one Relais Shields are used, the pin D1 must be removed and connected to D2 (second Relais) or D6 (third Relais).

Wemos Mini D1 Arduino SW

The following Arduino SW is needed DLTRelais.ino

The Arduino SW is based on the Wemos Library:

Wemos Library

Compile, upload and run the SW with the Arduino IDE.

Clone or copy the Wemos Library into the Arduino Libraries folder before compiling the DLTRelais.ino sketch.

Features

The Arduino SW provides the following Features:

  • Activate and deactivate three Relais
  • Trigger the Relais for short time (500ms)
  • If a button shield is connected, a short press triggers the Relais connected to pin D1
  • If a button shield is connected, a long ppress toggles the Relais connected to pin D2

Protocol

The Wemos D1 Mini is connected by a virtual serial device on USB. The serial port settings are 115.200 Baud with 8N1 and no handshake.

A USB driver is needed which can be found here:

https://www.wemos.cc/en/latest/ch340_driver.html

The Arduino SW understands the following commands:

  • "R11\n", "R21\n", "R31\n", "R41\n", "R51\n" Activates Relais connected to pin D1, D2, D6, D7 and D8
  • "R10\n", "R20\n", "R30\n", "R40\n", "R50\n" Deactivates Relais connected to pin D1, D2, D6, D7 and D8
  • "R1T\n", "R2T\n", "R3T\n", "R4T\n", "R5T\n" Trigger Relais connected to pin D1, D2, D6, D7 and D8 for 500ms

The Arduino board sends the status of Relais, when it was triggered with the button with the same command.

The Arduino board sends every second a watchdog signal "WD\n".

Installation

To build this SW the Qt Toolchain must be used.

Usage

  • DLTPower.exe [options] configuration

  • Options:

  • -?, -h, --help Help

  • -v, --version Version

  • -a Autostart Communication

  • Arguments:

  • configuration Configuration file

Contributing

Contibutions are always welcome! Please provide a Pull Request on Github.

https://github.com/alexmucde/DLTPower

Donation

If you find this SW useful and you want to donate my work please select one of the following donations:

Paypal Donation:

Donations

Github Sponsors:

❤️ Sponsor

Changes

v0.0.4:

  • Rename from DLTRelais to DLTPower

v0.0.3:

  • Support up to 5 Relais
  • Changed communication protocol with Arduino board
  • Added Watchdog
  • Fixed startup problem with Arduino Flash Mode
  • Added command line options autoload and configuration file

Copyright

Alexander Wenzel [email protected]

This code is licensed under GPLv3.