Professional Documents
Culture Documents
IISER Workshop Part2
IISER Workshop Part2
w w w. b y t e c a ke . c om
The important
The important
function!
function!
Pushbutton’s Potential Piffling Problem: Debouncing
The important
The important
function!
function!
A More Advanced Input – the Distance Sensor
Most common distance
sensors work through
ultrasound.
By The
measuring
important the time it
The important
function!
takes for sound reflected
function!
The important
The important
function!
function!
Distance Sensor Method
The important
The important
function!
function!
The important
The important
function!
function!
…just
Thetell me when you get
important
3. I’ve now set this LOW, to it The
back on this pin…
important
function!
make it clear that I’m now function!
only waiting...
LOW
LOW
Distance Sensor Method
HIGH
Distance Sensor Method