Home Motor Control Interface Digital Compass Sonar Sensors Pictures Parts List

Sonar Sensors

[Up]
 

    

Devantech SF04 Ranger Sonar Sensors
        ·
Range - 3cm to 3m
        · Emits 8 cycle sonic bursts traveling .9 ft/sec
       
· Sonic bursts rebound off of objects and 
          return to sensors and are calculated to
          determine time and distance
 

Parallax Basic Stamp II
     · BSX (Scenix SX28AC Microcontroller)
     · 50Mhz Processor Speed
     · Executes ~10,000 instructions/sec
     · 32 bytes of RAM
     · Programmed with PBASIC



Block Diagram shows how sonar sensor (top left) is operated.


Section of Microcontroller Code:
main
    gosub sr_sonar
    debug wdist
    pause 200
end

sr_sonar:
    pulsout init,5
    pulsin echo, 1, echotime
    wDist = echotime/convfac
    pause 10
return