How qitech-industries/hardwarecontrol works
Hardware Control is an embedded C++ library for controlling maker hardware through component-specific APIs. The principal documented workflow is to configure and initialize a controller, issue movement or temperature targets, and repeatedly call its handler to apply control. Stepper commands are exercised by the sampled firmware entry point; heater regulation and DC-motor control are separate library capabilities. The sampled code also shows shared controller validation and logging. The README documents broader hardware ambitions, but those future capabilities are not represented as implemented modules here.
Main entry points: HeatController.cpp PID heater control · Stepper.cpp Stepper control · McValidator.cpp Pin validation API · BaseController.cpp Controller base
Components 12
Firmware runtime
- Serial command firmware
src/main.cpp
Hardware controllers
- Stepper control
src/controller/stepper/Stepper.cpp - Stepper calibration utilities
src/controller/stepper/StepperTest.cpp - PID heater control
src/controller/heater/HeatController.cpp - DC motor control
src/controller/dcmotor/DcMotor.cpp
Shared services
- Controller base
src/controller/BaseController.cpp - Pin validation API
src/validator/McValidator.cpp - ESP32 pin validation
src/validator/McValidatorEsp32.cpp - Logging
src/logger/logging.cpp
Other components
- Maker
- Stepper driver libraries
- Connected hardware
Connections 11
- Maker → Serial command firmware: sends commands
README.md - Serial command firmware → Stepper control: issues movement commands
src/main.cpp - Stepper control → Stepper driver libraries: uses drivers
- Stepper control → Connected hardware: controls steppers
README.md - PID heater control → Pin validation API: checks pins
src/controller/heater/HeatController.cpp - PID heater control → Logging: writes logs
src/controller/heater/HeatController.cpp - PID heater control → Connected hardware: reads sensor and switches heater
src/controller/heater/HeatController.cpp - DC motor control → Connected hardware: controls DC motor
README.md - Controller base → Pin validation API: holds validator
- Controller base → Logging: holds logging level
- ESP32 pin validation → Pin validation API: extends API