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.
For further information about DLT visit the DLT Viewer project:
https://github.com/GENIVI/dlt-viewer
The following parts are needed to setup a Relais board:
- Wemos D1 Mini Amazon Germany AliExpress
- 1-3 Wemos Relais Shields Amazon Germany AliExpress
- Triple Base or Dual Base Amazon Germany AliExpress Triple Base AliExpress Dual Base
- Optional: 1-Button Shield AliExpress
- Optional: Buzzer Shield AliExpress
If more than one Relais Shields are used, the pin D1 must be removed and connected to D2 (second Relais) or D6 (third Relais).
The following Arduino SW is needed DLTRelais.ino
The Arduino SW is based on the 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.
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
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".
To build this SW the Qt Toolchain must be used.
-
DLTPower.exe [options] configuration
-
Options:
-
-?, -h, --help Help
-
-v, --version Version
-
-a Autostart Communication
-
Arguments:
-
configuration Configuration file
Contibutions are always welcome! Please provide a Pull Request on Github.
https://github.com/alexmucde/DLTPower
If you find this SW useful and you want to donate my work please select one of the following donations:
Paypal Donation:
Github Sponsors:
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
Alexander Wenzel [email protected]
This code is licensed under GPLv3.