top of page
Search

Week 09 - Arduino part 3

  • Writer: Lami'ah Nosarka
    Lami'ah Nosarka
  • Dec 17, 2023
  • 2 min read

Updated: Apr 23, 2024

ree

29/11/2023 - 06/12/2023

This week we continued to learn about the Arduino circuit board and we were introduced to the ServoMotor and an ultrasonic sensor. We ended off our lesson with a mini challenge that incorporated both components.

ServoMotor Component

What is a ServoMotor?

  • It's a component that converts electrical energy into mechanical energy.

  • Its precision control is enabled by connecting various pointer attachments.

  • Closed-loop Servo Motors rotate at 180°, giving controlled and precise rotations, making them more commonly used.

  • Open-loop Servo Motors have a 360° rotation capability.


Here is a #TinkerCad demonstration of how we used our ServoMotor


Here is our physical demonstration




ree
Our servomotor code
Distance Measurement Component

For distance measurement, we looked into the ultrasonic sensor.


This component includes two ultrasonic transducers: one sends out sound pulses, and the other listens for echoes. It works similar to SONAR used in submarines for object detection underwater.


This is how the ultrasonic sensor works:

  1. Pull down TRIG and then trigger it with a 10us high-level signal.

  2. After triggering, the module sends eight 40KHZ square waves and checks for a pulse signal return.

  3. If a signal returns, ECHO outputs a high level, with the high-level duration representing the time from sending ultrasonic to its return.

ree
Visual representation of input and output of sound waves

ree
How distance is calculated

Mini Challenge

ree
Mini Challenge Task

Reflection of the mini challenge:

Our group attempted the mini challege. We found some difficulty with our wiring but managed to figure out our way through it. We also ran into some confusion with our code, however this was resolved after another group explained their solution which aided in the understanding of our errors.




Here is a video of our completed mini challenge



Final code completed and explained to the class by another group:


Reference List:



 
 
 

Comments


Comments

Share Your ThoughtsBe the first to write a comment.

I would love to hear from you. Drop me a line and let me know your thoughts and feedback.

Thank You for Contacting Pixels and Progress!

© 2021 by Pixels and Progress. All rights reserved.

bottom of page