Ayman Salah
Newbie level 1
HOW TO DO THIS ?
interface the GP2D12 Analog distance sensor to measure distance between 10cm and 80cm
and output voltage according to :
10 cm 2.5v
15cm 1.8v
20cm 1.4v
25cm 1.2v
30 cm 0.8v
40cm 0.7v
45cm 0.65v
50cm 0.6v
55cm 0.55v
60cm 0.52v
65cm 0.5v
70cm 0.49v
75cm 0.47v
80cm 0.45v
system produce beeping sound with a frequency that depends on distance to the object to speaker coneceted to RC0
if object far than 80cm no beeping sound
if object is 80 cm away soung should be on for 10 msec and off for 80msc the off period should reduce by 10msc for every 10cm the object is closer . if the object is closer than 10 cm the sound should be on continuously
object distance should be read every second if the object is closer than 80cm it should read after each beep
vcc=5v f(osc)=8MHZ
interface the GP2D12 Analog distance sensor to measure distance between 10cm and 80cm
and output voltage according to :
10 cm 2.5v
15cm 1.8v
20cm 1.4v
25cm 1.2v
30 cm 0.8v
40cm 0.7v
45cm 0.65v
50cm 0.6v
55cm 0.55v
60cm 0.52v
65cm 0.5v
70cm 0.49v
75cm 0.47v
80cm 0.45v
system produce beeping sound with a frequency that depends on distance to the object to speaker coneceted to RC0
if object far than 80cm no beeping sound
if object is 80 cm away soung should be on for 10 msec and off for 80msc the off period should reduce by 10msc for every 10cm the object is closer . if the object is closer than 10 cm the sound should be on continuously
object distance should be read every second if the object is closer than 80cm it should read after each beep
vcc=5v f(osc)=8MHZ