Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page will be populated with all exercises given in the class. Use it as a reference for compiling your documentation 

...

Alternative: Operate a motor so it “reverses” itself until it is too close to an object.


Exercise 4.0: Visualize the state of a servo in Processing (Arduino to Processing)

Send the servo state (speed, direction) through Serial to a Processing application. The Processing receives these parameters and visualizes the state of the servo, which could look like the following image:

Image Added

In the beginning, it is ok just to display text which represents the motor state.

Advanced Task: Try to send commands back to the Arduino and control the motor if the user presses a key on the keyboard.


Exercise 5.0: Sensor visualizer

...