Update connection plan to match the actual current wiring
Add page to connection plan which describes which cables are connected
between what components
Rework config.cpp and config.hpp:
- different naming convention for evaluated switch objects
- thus updated macros for switches
- add new evalswitch instances for 4 switches on 1 adc
- update switch assignment, use the 4 new inputs
Update connection plan with new assignment, add stripboard details
Already switched earlier, now optimized code and connection plan to work
best with new vfd (T130750W).
Previous 7.5kw vfd will work too without using all 7 speed levels as at
first.
connection plan: changed pin assignment (1 free pin)
Code:
- vfd.cpp, main.cpp: remove not used D2 pin (only used with 7.5kw vfd)
- config.hpp: change pin assignment
Analog In only pins have no internal pullup resistors.
thus two preset switches need pulldown resistors on pcb to be soldered
and switch to 3v instead of GND
- changed in connection plan
- changed switch config in config.cpp (no pullup, inverted)
Fix manual mode:
previously there was a bugged change loop when pressing all 3 buttons
- made mode switch more clear
vfd: extend vfd_setState function with direction enum (default fwd)
main: reduce log output from buzzer task
config: use mos1 as vfd_FWD output
control:
add MANUAL state: motor can be controlled via preset buttons
adjust code slightly to support new state (also see updated
function-diagram)
- move code from testing task to control.cpp
- outsource functions for initializing display and encoder
- delete testing code
- add two display pages (current distance and counter)
- run handle functions for each button