7 years, 8 months ago.

Using mbed NXP LPC1768, I need to control stepper motor based on the output of ultrasonic sensors

Using mbed NXP LPC1768, I need to control stepper motor based on the output of ultrasonic sensors (which detect objects). I have already done the project in 8051 microcontrollers but how to do it in arm board. I am finding it difficult to start.Let's first concentrate on the getting input from ultrasonic sensors. Please tell me where on the arm board do I need to connect the sensor. Please give some tips in writing the code( preferably in c). Can we implement this on software before hard ware implementation, if so how?

1 Answer

7 years, 8 months ago.

What is the interface for your ultrasonic sensors. Is is simply a digital level 0 or 1? In that case use the DigitalIn Class on one of the pins. Check the handbook for example code.