Versions Compared

Key

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

...

The team utilized an Arduino Uno to control the mechatronic components of the system. In the main loop of the code shown below, the Aduino first checks the state of the Hall effect sensor. When the user puts a magnet in proximity to the Hall effect sensor, its state changes from high to low and when . When the magnet is removed from the sensor the state changes from low to high. Upon a transistion from low to high, the code checks the servo position and commands the servo to toggle to a different position. The first time a magnet is brought close to the sensor and removed the gripper mechanism will close. If the process is repeated the mechanism will open. We utilized this logic so that the user only has to tap the side of the device with a magnet to get the gripper to open or close. The code shown below was compiled to the Arduino to demonstrate the prototype, and a more robust code that includes voltage monitoring is in progress.

...