This shows you the differences between two versions of the page.
|
pm:prj2026:jan.vaduva:stefan.nemeti [2026/05/22 00:29] stefan.nemeti |
pm:prj2026:jan.vaduva:stefan.nemeti [2026/05/22 00:38] (current) stefan.nemeti |
||
|---|---|---|---|
| Line 109: | Line 109: | ||
| This arduino holds most of the computational load. It has the purpose of interfacing with the user using a touchscreen lcd, and reading the files from the sd card. The communication with the second arduino is made using a custom usart protocol (we'll com back to this later).\\ \\ | This arduino holds most of the computational load. It has the purpose of interfacing with the user using a touchscreen lcd, and reading the files from the sd card. The communication with the second arduino is made using a custom usart protocol (we'll com back to this later).\\ \\ | ||
| + | |||
| + | == Arduino 2 == | ||
| + | |||
| + | This arduino holds the code that moves stuff around. It communicates with the first arduino. After processing a single character, it waits foe the following and so on. You could say that the system is a producer-consumer situation. | ||
| ** Used imports ** | ** Used imports ** | ||
| Line 119: | Line 123: | ||
| * touch_module.h -> the adc implementation of the resistive touchscreen | * touch_module.h -> the adc implementation of the resistive touchscreen | ||
| * SimpleSd.h -> a custom built sd card reader. I needed a really memory-small module, so I built my own | * SimpleSd.h -> a custom built sd card reader. I needed a really memory-small module, so I built my own | ||
| - | * LCD.h | + | * LCD.h -> library for the ui elements. It is built on the MCUFriend library |
| + | * usart.h -> a self made usart library, containing the custom protocol | ||
| + | * stepper.h -> library for controlling a generic stepper motor, with all functions included | ||
| + | * solenoid.h -> abstraction layer over some port changes | ||
| + | |||
| + | |||
| + | == USART Protocol == | ||
| <note tip> | <note tip> | ||