Summary

We explored many new things in this chapter, you need a pat on the back for getting through this!

Let's summarize what we learnt:

  • How an Ultrasonic transducer works by measuring the time taken for sound to bounce off an object
  • The math to calculate the distance would be:

    Distance= (time taken for reflected sound to travel x speed of sound in air)/2

  • We revisited how conditional statements work
  • We looked at how to add and initialize Arduino Libraries by using a #Include at the start of out code
  • We saw how we use Library functions after initializing an object of that library, by using objectName.functionName()
  • We finally used all that we learned and built our toy friend whose smile lights up when you approach it!
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset