|
micro-ELC
|
Functions | |
| void | setup () |
| called once on startup by Arduino More... | |
| void | loop () |
| called repeatedly by Arduino More... | |
Variables | |
| const byte | numRelays = 5 |
| how many relays are in your array? More... | |
| RelaysDriverBasic< numRelays > | relayDriver = RelaysDriverBasic<numRelays>(LOW, { 21, 22, 19, 23, 26 }) |
| LoadAdjustRelayParallelBinary< numRelays > | coarseLoadAdjust = LoadAdjustRelayParallelBinary<numRelays>(relayDriver, true) |
| LoadAdjustAnalogWrite | fineLoadAdjust = LoadAdjustAnalogWrite(18) |
| LoadAdjustCoarseFine | loadAdjust = LoadAdjustCoarseFine(coarseLoadAdjust, fineLoadAdjust, pow(2, numRelays), 32, 10) |
| JEncoderAS5048bI2C | tachEncoder = JEncoderAS5048bI2C() |
| TachometerJEncoder | tach = TachometerJEncoder(tachEncoder, 6) |
| float | setpoint = .5 |
| float | input = 0 |
| float | output = 0 |
| QuickPID | pidControl = QuickPID(&input, &output, &setpoint) |
| void loop | ( | ) |
called repeatedly by Arduino
| void setup | ( | ) |
called once on startup by Arduino
| LoadAdjustRelayParallelBinary<numRelays> coarseLoadAdjust = LoadAdjustRelayParallelBinary<numRelays>(relayDriver, true) |
| LoadAdjustAnalogWrite fineLoadAdjust = LoadAdjustAnalogWrite(18) |
| float input = 0 |
| LoadAdjustCoarseFine loadAdjust = LoadAdjustCoarseFine(coarseLoadAdjust, fineLoadAdjust, pow(2, numRelays), 32, 10) |
| const byte numRelays = 5 |
how many relays are in your array?
This software is for making an Electronic Load Controller.
It controls an array of resistors to keep the frequency of a synchronous generator constant.
https://github.com/joshua-8/micro-ELC
Use PlatformIO to upload to an esp32 dev module
started by Joshua in spring 2022
| float output = 0 |
| RelaysDriverBasic<numRelays> relayDriver = RelaysDriverBasic<numRelays>(LOW, { 21, 22, 19, 23, 26 }) |
| float setpoint = .5 |
| TachometerJEncoder tach = TachometerJEncoder(tachEncoder, 6) |
| JEncoderAS5048bI2C tachEncoder = JEncoderAS5048bI2C() |