- Download 14
- File Size 4.00 KB
- File Count 1
- Create Date August 18, 2021
- Last Updated March 19, 2022
Sample Code: WREN 12S SDK V2 - Bring Up BIN
Dave Williams, DitroniX 2019-2021 (ditronix.net)
WREN 12S DC Linear Motor Controller ESP12S SDK 2.0
PCA v2.03 - Test Code Firmware BIN v2.7 - 12th August 2021
This is a compiled BIN file and ready to flash to the WREN 12S SDK v2 board using a flasher, such as:
- https://github.com/tasmota/tasmotizer (easiest and most reliable)
- Espressif Flash Download Tool
V2.5 Updated SFLAG monitoring. Commented out motor test on start up as part of safety.
V2.6 Updated to flash RED LED upon low voltage or no main DC supply. Assume powered via UART.
V2.7 Updated info relating to Library for MCP23017. Use Adafruit version 1.3.0 and NOT the later library version 2.02 (as this seems to have a problem)
Simplified Board Bring Up and Test Input/Output Ports (The WREN 'Hello World')
The purpose of this test code is to cycle through the various main functions of the board as part of bring up testing.
This test code is OPEN SOURCE and although is is not intended for real work use, it may be freely used, or modified as needed.
The code assumes standard single, or dual, motor configuration. No Wifi Enabled as this is not required for initial bring up.
SFLAG is a hardware logic controlled Alert Flag, normally Low, unless of a (non-hardware latched), Safety Alert. This is monitoring both Driver
inputs and sensing the ENx internal collectors of the Overcurrent and Thermal Protection transistors, to implement over current protection.
SFLAG would benefit on an interrupt, in a working environment. Simply check for a high pulse to trigger an alert event.