I'm preparing for my A-level exams a project about Arduino boards, and I need a little help with it..
I do have an Arduino Uno, with a URM37 v3.2 sensor.
After hours of work, I've learned many things about it, except how to wire and programm it correctly.
Could anyone give start me up? Currently I do have a fresh Arduino installation on Windows 7 (I was working those hours on my Ubuntu laptop), so I should need a new library, I suppose.
Many thanks,
Amoeba
Edit:
I've wired it once so that it gave an output, but I think it wasn't a DISTANCE value. It returned:
Measurement
-1
Timeout
I see a couple of possibilities that I found in the manual using the link I provided below.
You may not have the PWR_ON - Enable pin set High so your sensor may not be turned on. The second thing is you need to have the jumpers set to TTL and not RS232.
Good work! Pin 7 was the PWR ON pin I was talking about that needed 5v.
But when it to:
Code:
urm.begin(2, 3, 9600);
It works! I get correct measurements! Checked it with a an other distance meter. Same results.
The comment is confusing:
Code:
// RX Pin, TX Pin, Baud Rate
Somewhere the TX, RX labeling or how it got wired must have been incorrect so, when you changed the pin definitions you solved the wires being connected incorrectly...you fixed the issue. I think I would have did the same thing you did though.