Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi all,
I have recently asked about setting up a program to measure the length of a pulse signal and was pointed in the direction of some other peoples codes they had put together. After looking through them and attempting to get them working I am still struggling. The sensor I have ( http://www.maxbotix.com/documents/MB7060-MB7070_Datasheet.pdf ) gives out a pulse according to distance measured (58us per cm ). I have imported a program and tried to get it going. I have changed the trigger signal form 10us to 25us as the data sheet stated a minimum of 20us so I went for 25 to be safe. The data sheet also states that pin 4 is used for the trigger signal but I don't know what output from the microcontroller would do this. I am unsure about setting up the pins for the sensor to the microcontroller. The way its named in the code makes it a bit confusing for me (sorry i'm a bit of a novice when it comes to this). Also the existing program is set up for a different type of sensor but I was informed it should operate ok for mine as it is just measuring pulse duration. This is what I have:
If anyone could give me some help it would be greatly appreciated as I am currently pulling my hair out!
Many Thanks