Go Down

Topic: Arduino C-code implementation of velocity detection??? (Read 1 time) previous topic - next topic

kenjones1935

Does anyone have a successful Arduino C-code implementation of velocity detection using a CON RSM3650?  If so, will you share it?

I have built an Arduino Nano controlled robot from a radio control model level car.  My initial design uses two sonar proximity detectors to guide the car around the room counter clockwise looking down.  I want the car to go faster.  I need to calculate 'closing speed'.  It appears that the RSM3650 has the capability and is not too expensive.  What do you all say?  How tough a job am I setting for myself?

PaulS

Quote
What do you all say?

Pretty much the same thing we always say when someone asks a question about a device other than an Arduino. You need to post a link to the device.

Quote
How tough a job am I setting for myself?

That all depends on what a CON whatever is, how you access its data, how accurate that data is, and what you want to do with that data.

robtillaart


There was a post several weeks ago, this is a doppler radar sensor. It outputs a voltage or frequency depending on the speed?

Voltage can be measured with ADC ==> analogRead()
Frequency can be measured with PulseIn(), or an IRQ based counter...

Have you searched this forum for the sensor number?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

kenjones1935

Here is a link to the CON RSM3650 technical page.

http://shop.hygrosens.com/out/media/502374_rsm3650_dbe.pdf

I had just hoped that someone in Arduino land had used it.

kenjones1935

No good!!!  Sensitivity is spec'd at 4 to 16 meters.  Any suggestions for velecity detection by measuring closing speed?

AWOL

Have you managed to amplify the 300 micovolt output to use able levels?
Quote
s. Any suggestions for velecity detection by measuring closing speed?

It's a Doppler unit; it only measures velocity.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

arduinoRobo

Hi Ken,

By "closing speed" I assume you mean that you want to measure how quickly the car is approaching the wall and adjust its velocity proportionally, (no wall = full speed, approaching wall = slower and slower speed), correct? 

You could estimate the car's velocity by calculating the difference between subsequent sensor readings (or an average of multiple subsequent readings b/c of sensor noise) and dividing it by the time between readings.  Essentially, you are finding the numerical derivative of your position indicated by the sonar sensor readings.  Then, you could increase or decrease the current to the car's motors based on how close you are to the wall. 

To get the time between readings, try using the Time library, or more directly the now() function.  Not sure what the resolution of the time is -- might only give you integer seconds as opposed to fractions of a second via a double or float, but it's worth a shot! :)

arduinoRobo

Go Up