This shows you the differences between two versions of the page.
|
pm:prj2026:bianca.popa1106:robert.springer [2026/05/04 14:48] robert.springer created |
pm:prj2026:bianca.popa1106:robert.springer [2026/05/04 14:49] (current) robert.springer [Software Design] |
||
|---|---|---|---|
| Line 20: | Line 20: | ||
| ===== Software Design ===== | ===== Software Design ===== | ||
| - | The firmware handles real-time input monitoring. It uses the PlatformIO development environment.Libraries: LiquidCrystal_I2C.h for display and Wire.h for communication.Algorithm: The code performs a loop to check the analog value of pin A0.Value ~1023: No button pressed.Value ~0: Button 1 pressed.Value ~184: Button 2 pressed.Logic: Successful code entry triggers a high signal to the DRV8833. The motor runs for 2000 milliseconds. | + | The firmware handles real-time input monitoring. It uses the PlatformIO development environment. |
| + | Libraries: LiquidCrystal_I2C.h for display and Wire.h for communication. | ||
| + | Algorithm: The code performs a loop to check the analog value of pin A0. | ||
| + | Value ~1023: No button pressed. | ||
| + | Value ~0: Button 1 pressed. | ||
| + | Value ~184: Button 2 pressed. | ||
| + | Logic: Successful code entry triggers a high signal to the DRV8833. The motor runs for 2000 milliseconds. | ||