lec 6 Flashcards
what is an ultrasonic sensor used for
distance measurement typically comprises of an ultrasonic emitter and
an ultrasonic detector
how can ultrasonic sensor detect sound waves
high frequency sound
waves produced by the emitter will bounce off solid objects and be reflected back to the detector
how can you measure distance to object
speed of sound TIMES (pulse time of flight / 2)
what is the emitter pulse called
chirp
what is the receiver pulse called
echo
what module is used for ultrasonic sensing , and how accurate is it
HC-SR04
3mm accuracy
how to connect module to Arduino
Vcc (+5 volts)
GND (ground 0 volts)
Trig (connect any digital pin on OUTPUT)
Echo ((connect any digital pin on INPUT))
what are the means of these key features on syntax -Variable_name = pulseIn (pin, value, timeout)
pin = pin value on I/0 value = logic condition (HIGH or LOW) timeout = waiting time for pulse (usually 1 second) variable_name = long integer data type, to hold delay time in microseconds.
what is speed of sound dependant on
temperature