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), I2C interface for display, and HD44780. Students should understanding rotating servomotors (PWM method).

Scenario

  1. using schematic, check ESP ports which I2C controlled,
  2. using schematic, check ESP port which servomotors signal controlled (PWM),
  3. using sensor documentation check registers which acceleration reading,
  4. using display documentation check way for display digits on HD44780,
  5. check I2C address for every device,
  6. 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.
  1. 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?: Answer.

en/iot-open/remotelab/sut/roboarm/b2.txt · Last modified: 2020/07/20 09:00 by 127.0.0.1
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0