Tiffany's ECE 3400 webpage

Welcome to my robot-building documentation for Intelligent Physical Systems!

View the Project on GitHub tg382/ECE3400

Lab 1: Intro to Arduino, Servos, and Ultrasonic Sensors


Task List:


Part 1 - Assembling our robot

Components of our robot so far:


Part 2 - Wiring our robot

Wiring of the Arduino with peripherals:


Part 3 - Programming our robot to move

Using these functions, we tested our robot to run the following sequence:

  1. Start in place facing north, motionless.
  2. After 5 seconds, move north approximately 20 cm, then stop, still facing north.
  3. After a 1 second pause, pivot in place towards the east by 90 degrees, then stop, facing east.
  4. After a 1 second pause, pivot in place to the left by 270 degrees, then stops, facing south.
  5. After a 1 second pause, move forward south over approximately 20 cm, then stop, facing south.
  6. After a 1 second pause, pivot in place to the right by 180 degrees, then stop, facing north.

Sadly, there is no video of this sequence, but we do a similar test in part 4 :)


Part 4 - Implementing ultrasonic sensing

Using ultrasonic sensors, our robot can semi-autonomously navigate a maze. When it senses that a wall is a certain distance ahead, it will stop moving and turn to the left or right, depending on our code. We programmed our robot to perform the following sequence:
Maze Diagram

  1. Start in position 1, immobile.
  2. Once the RESET button is pressed, remain motionless for 1 second, then head North towards position 2.
  3. Once at position 2, turn smoothly in place to the left to face West, then navigate towards position 3.
  4. Once at position 3, turn smoothly in place to the left to face South, then navigate towards position 4.
  5. Once at position 4, turn smoothly in place to the right to face North, then navigate towards position 3.
  6. Once at position 3, turn smoothly in place to the right to face East, then navigate towards position 2.
  7. Once at position 2, turn smoothly in place to the right to face South, then navigate towards position 1.
  8. Once at position 1, turn smoothly in place to the left 540 degrees (1 ½ turns), ending facing North and remaining stationary.

Here is the same sequence with the serial monitor visible. The ultrasonic sensor readings are printed at each step of the sequence.


Thanks for watching! Come back next week for more~ Baymax