5 Commits

Author SHA1 Message Date
jonny
1dd8388769 Add task shutDownDetection, save last pos to nvs, optimize auto-home
shutdown.cpp/hpp:
    - repeatedly check supply voltage
    - save value to nvs when dropping below threshold
    - provide function to read lastPos from nvs

guide-stepper:
    - auto-home considers stored last position in nvs

main:
    - add new task shutDownDetection

config:
    - slightly increase stepper speed
2024-03-12 23:58:15 +01:00
jonny
989f9cce13 Fix Bug 'weird axis movement at reset'
- guide-stepper:
    - add queue to send commands to stepper-ctl task
    - add function that tells stepper task to move to zero
    - increase travel length full axis length 110

- control: move guide to zero at reset

- Cmake: enable colored output
2024-03-08 17:02:54 +01:00
jonny_ji7
118e9714b5 Add Stepper to connection-plan, Add datasheets
- Add datasheets of VFD and stepper driver
- Change pins in config for stepper driver
    - DISABLED LAMP (pin now used for stepper)
- update connection plan with stepper section and wiring
2023-03-01 08:35:19 +01:00
jonny_ji7
06ebb1fbc6 Fix include order for compatibility
including the files in source file instead of header file fixed
'conflicting type' errors in idf macros when using newer version
ESP-IDF v4.4.4-148-g4c2afac355
2023-02-22 17:23:37 +01:00
jonny_ji7
58c5a92d1e Add functional STEPPER_TEST feature
- add macro variable STEPPER_TEST (config.hpp)
    if set: only `task_stepper-test` is started (main.cpp)
- add file for stepper/guide related code (guide-stepper.cpp/hpp)
    currently defines a task that simply moves the axis left to right
    repeatedly with a speed defined by a potentiometer connected to ADC
    GPIO34
2023-02-21 21:27:33 +01:00