How Can I Use a Freescale Microcontroller for Ultrasonic Obstacle Detection?

  • Thread starter Thread starter neilmartin
  • Start date Start date
  • Tags Tags
    Microcontroller
Click For Summary
SUMMARY

The discussion focuses on utilizing the Freescale DEMO9S12XDT512 microcontroller for ultrasonic obstacle detection in an airship application. The user seeks guidance on interfacing ultrasonic transducers to send pulses and measure the return time for distance calculation. CodeWarrior Development Studio is the chosen programming environment, and there is a need to determine whether the interface is high-level, like SPI, or low-level requiring manual waveform generation. Additionally, considerations regarding the microcontroller's workload and the potential use of non-maskable interrupts are highlighted.

PREREQUISITES
  • Understanding of Freescale DEMO9S12XDT512 microcontroller architecture
  • Familiarity with ultrasonic transducer operation and interfacing
  • Proficiency in CodeWarrior Development Studio for programming
  • Knowledge of interrupt handling in embedded systems
NEXT STEPS
  • Research ultrasonic transducer interfacing techniques for microcontrollers
  • Explore low-level programming for generating waveforms on the Freescale DEMO9S12XDT512
  • Learn about non-maskable interrupts and their implementation in embedded systems
  • Investigate high-level communication protocols like SPI for sensor data acquisition
USEFUL FOR

Embedded systems engineers, hobbyists working with microcontrollers, and developers focused on robotics and obstacle detection technologies.

neilmartin
Messages
1
Reaction score
0
I'm using a freescale DEMO9S12XDT512 microcontroller as a control system for an airship. The airship uses ultrasonic transducers to detect obstacles so it can then avoid them, to do this I want to send out a pulse from the transmitter sensor and measure the time that it takes to return to the reciever so I can work out the distance from an obstacle. Does anyone have any tips on how to do this as I have can't seem to figure it out, I am using codewarrior development studio to write the program.
 
Engineering news on Phys.org
What does the interface to the UltraSound transducer look like? Is it high level (like an SPI interface where you can just keep reading out distances that are measured at some periodic rate by the US sensor), or is it totally low level where you need to drive in a wavelet at the US frequency and then stop and start watching the RX sensor line?

How busy is your uC already? Can you afford a non-maskable interrupt if you need one? If you have to do the US stuff at a low level with your uC, it will be very busy, especially if you are doing multiple sensors.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
7K
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 27 ·
Replies
27
Views
4K
Replies
1
Views
7K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
8
Views
4K