113 Commits

Author SHA1 Message Date
jonny_l480
68dc012fcc Fix disabled encoder, scaling; Adjust intervals
test with actual hardware
encoder init was commented out
scaling was off by factor 600
adjust speed intervals
2022-08-18 15:31:46 +02:00
jonny_ji7
8b9b5ff736 Add control statemachine, optimize vfd logging
Add all logic for the machine to control.cpp
optimize logging (on change only) for vfd functions
2022-08-18 14:23:32 +02:00
jonny_ji7
0aea494783 Add poti and display section; Cleanup
Add readadc function from armchair project
Rework display section
   - show lengthNow on first display
   - show lengthTarget on second display
Prepare for statemachine

Remove unneeded function
Add comments improve structure
2022-08-18 12:46:08 +02:00
jonny_ji7
7ccde65893 Update function-diagram: SM, Buttons, Display
Create function diagram with all currently planned features
2022-08-18 12:44:28 +02:00
jonny_ji7
59bb48902d Add second 7-seg display, Welcome message
Add second display in series to first one
Adjust control.cpp
- welcome msg name. date
- scroll "hello" over two displays"
- display Ist/soll dummy text on each display
2022-08-18 09:48:29 +02:00
jonny_ji7
b68dae7e59 Swap vfd data pins, Update connection plan
Tested new vfd functions, encoder and display - works as intended now
2022-08-17 15:39:25 +02:00
jonny_ji7
7fae539f14 Add vfd driver, Add vfd test via buttons
Add vfd.cpp/hpp with functions to control the VFD via 4 digital pins
Add way to test the vfd via SET button (rotate speed level) and START
button (toggle motor on/off)
2022-08-17 14:05:34 +02:00
jonny_ji7
22f8aef8d2 Move code from main to control.cpp, display pages
- 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
2022-08-17 13:08:05 +02:00
jonny_ji7
739f5ef4c2 Add Readme, connection-plan, function-diagram
Readme:
    - component description

connection plan:
    - fully connected pcb
    - control panel overview with all input elements

function-diagram:
    - partial functions
2022-08-17 10:39:26 +02:00
jonny_ji7
a3f3cb340c Add config, buzzer, evalSwitch, switch to c++
Add config.cpp/hpp
    - macros for all input and output pins
    - gloabl evaluated switch objects
    - buzzer object
    - display config
    - encoder config

Move main.c to main.cpp and adjust code to be c++ compatible

add custom library evaluated switch (copied from armchair project)
add buzzer object (copied from armchair project)

add control.cpp/hpp with control task (no function yet)
2022-08-17 10:29:11 +02:00
jonny_ji7
e7ffb6348a Calculate distance in cm, Display brightness encoder-test 2022-08-17 07:56:27 +02:00
jonny_ji7
f7b9309819 Add rotary encoder test
for testing the rotary encoder the count is displayed on the 7 segment display
(1 rotation = 600)
2022-08-07 08:55:44 +02:00
jonny_ji7
307cad4a9a init - display test
new idf project (with  idf.py create-project)
add 2 components for encoder and display:
    https://github.com/DavidAntliff/esp32-rotary-encoder
    https://github.com/UncleRus/esp-idf-lib/tree/master/components/max7219
add code for testing a 7 segment display
2022-08-06 09:28:38 +02:00