Lesson 41 · Plotting the ultrasonic sensor
✓ You already watched this lesson
The ultrasonic sensor measures what's in front of it by sending out a sound and waiting for the echo to come back. That's why it's declared with two pins instead of one.
🎯 The challenge of this lesson
Add an LED that only turns on when the distance drops below thirty, multiplying the result of a comparison by one hundred; then change the Delay to one thousand and notice how late the program catches on.
Read the written page for this lesson →
Stuck on this lesson?
Write your question and another student — or the teacher — will answer. Your email is never published: it is only used to let you know when someone replies.
- Loading the questions…