How mikeflanigan/kroova_sbe works
Kroova_SBE is a collection of experimental electronics and software for an electronic foiling moth. The principal runtime workflow reads ultrasonic ride-height data, applies servo-control logic, and drives a servo; separate programs record sensor and flight data to CSV. The tree also documents sensor-reader sketches, a control GUI, and simulation work. The sampled controller and logger excerpts support the main calls and data flows; most other branches are represented only by filenames, so their internal relationships are left unspecified.
Main entry points: SBE_moth.py Ride-height controller · Moth_Data_Logging.py Moth data logger · SBE_functions.py Serial and servo helpers · BBB_ball_tilt.py Ball-tilt controller
Components 22
Flight control
- Ride-height controller
SBE_moth.py - Ball-tilt controller
BBB_ball_tilt.py - Wing controller
SBE_wing.py - Control and logging
SBE_moth_log_n_control.py - Control parameters
SBE_control_params.csv - Serial and servo helpers
SBE_functions.py
Data logging
- Moth data logger
Moth_Data_Logging.py - Rev2 data logger
___Rev2_CodeBase/SBE_Logging.py - USB mount helpers
___Rev2_CodeBase/SBE_funcs.py
Sensors and firmware
- LIDAR I2C sketch
LIDARLite_I2C_Library_GetDistance_ContinuousRead/LIDARLite_I2C_Library_GetDistance_ContinuousRead.ino - LIDAR PWM sketch
LIDARLite_PWM_GetDistance_ContinuousRead/LIDARLite_PWM_GetDistance_ContinuousRead.ino - LIDAR Wire sketch
LIDARLite_Wire_Library_GetDistance_ContinuousRead/LIDARLite_Wire_Library_GetDistance_ContinuousRead.ino - ToughSonic sketch
ToughSonicRead/ToughSonicRead.ino - Rev2 Arduino firmware
___Rev2_CodeBase/SBE_ardu/SBE_ardu.ino
Interfaces and experiments
- Control GUI
SBE_GUI.py - Foil simulation
Electronically_Foiling_Moth_Simulation.m - Ball-tilt model
Ball_Tilt_Model.py
Other components
- Operator
- Servo hardware
- Ultrasonic sensor
- CSV recordings
- USB storage
Connections 22
- Operator → Ride-height controller: runs
- Ride-height controller → Control parameters: loads
SBE_moth.py - Ride-height controller → Serial and servo helpers: calls
SBE_moth.py - Ride-height controller → Ultrasonic sensor: reads
SBE_moth.py - Ride-height controller → Servo hardware: drives
SBE_moth.py - Ball-tilt controller → Serial and servo helpers: imports
BBB_ball_tilt.py - Ball-tilt controller → Ultrasonic sensor: reads
BBB_ball_tilt.py - Ball-tilt controller → Servo hardware: drives
BBB_ball_tilt.py - Wing controller → Serial and servo helpers: imports
SBE_wing.py - Wing controller → Ultrasonic sensor: reads
SBE_wing.py - Wing controller → Servo hardware: drives
SBE_wing.py - Control and logging → Control parameters: loads
SBE_moth_log_n_control.py - Control and logging → Ultrasonic sensor: reads
SBE_moth_log_n_control.py - Control and logging → CSV recordings: writes
SBE_moth_log_n_control.py - Moth data logger → Serial and servo helpers: imports
Moth_Data_Logging.py - Moth data logger → Ultrasonic sensor: reads
Moth_Data_Logging.py - Moth data logger → CSV recordings: writes
Moth_Data_Logging.py - Moth data logger → USB storage: mounts
Moth_Data_Logging.py - Rev2 data logger → USB mount helpers: imports
___Rev2_CodeBase/SBE_Logging.py - Rev2 data logger → CSV recordings: writes
___Rev2_CodeBase/SBE_Logging.py - Rev2 data logger → USB storage: uses
- Operator → Control GUI: uses