This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot-open:remotelab:sut:roboarm:b2 [2018/10/31 18:35] – pczekalski | en:iot-open:remotelab:sut:roboarm:b2 [2020/07/20 12:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ==== Controling servomotor and monitoring it using accelerometer on LCD ==== | ||
| + | Students should check position the arm, and display it on display. For confirmation propriety of readings, student should move the arm using servomotor. | ||
| + | === Target group === | ||
| + | This hands-on lab guide is intended for the Beginners. | ||
| + | |||
| + | === Prerequisites === | ||
| + | Generally students need skill using I2C bus. For realising scenario, students need access to documentation for registers of sensors (accelerometer), | ||
| + | |||
| + | === Scenario === | ||
| + | - using schematic, check ESP ports which I2C controlled, | ||
| + | - using schematic, check ESP port which servomotors signal controlled (PWM), | ||
| + | - using sensor documentation check registers which acceleration reading, | ||
| + | - using display documentation check way for display digits on HD44780, | ||
| + | - check I2C address for every device, | ||
| + | - write the program loop which: | ||
| + | * send command for reading acceleration for every axis, | ||
| + | * wait for processing | ||
| + | * transform result for display | ||
| + | * send this to display interface, | ||
| + | * send command rotate stepmotor, | ||
| + | * wait for processing, | ||
| + | * transform result for display, | ||
| + | * send this to display interface. | ||
| + | * move the arm using servomotors. | ||
| + | - using the camera observe display and check credibility of displayed value. | ||
| + | NOTE: arm move only in 2 accelerometer axis. Reading of acceleration from third axis should be constant. (or with small fluctuations) | ||
| + | |||
| + | |||
| + | === Result === | ||
| + | On display should be visible acceleration for every axis. (always below 1G). | ||
| + | |||
| + | === Start === | ||
| + | |||
| + | |||
| + | === Steps === | ||
| + | |||
| + | |||
| + | |||
| + | === Result validation === | ||
| + | Only way for validation is check display by camera. | ||
| + | |||
| + | === FAQ === | ||
| + | This section is to be extended as new questions appear. \\ | ||
| + | When using the printed version of this manual please refer to the latest online version of this document to obtain the valid and up-to-date list of the FAQ. | ||
| + | //Provide some FAQs in the following form:\\ | ||
| + | **Question? | ||
| + | // | ||