How hard to convert this sketch to be used with a different sensor

Thread Starter

james211

Joined May 29, 2012
283
So I have a sketch that works very well, its a water level sketch using a URM37 ultrasonic sensor. The problem with using that sensor is they are no longer available in the US (DFRobot has them, but they ship from China). I would like to be able to use this sketch with a different ultrasonic sensor, but I have no clue how hard it would be to convert the entire sketch to use a different sensor.

Would anyone be willing to take a look at the sketch for me?

My biggest concern is that these sensors don't seem to be designed to be in a humid environment so the rate of failure is higher than other sensors. Ideally I'd find a system that maybe uses differential pressure as those sensors seem to more stable under humid conditions for long term. Agree or disagree?

In the end I need to be able to monitor the depth of the tank remotely. With my current setup I can see it from anywhere either via the built in server on my network or via Xively, it works very well!

Thank you!
D
 

Attachments

Thread Starter

james211

Joined May 29, 2012
283
Good to know! It's a multi-page so I figured that was the best option. I'll have to post each individually then...not sure it will let me attach that many in fact.
 

BMorse

Joined Sep 26, 2009
2,675
for one the URM37 has its own built in arm processor, it is basically a standalone unit that interfaces to other uC's or a PC through serial communication.... those other ultrasonic sensor modules still require a uC to operate them and do all the data conversion to get the distance measured...

Why not get an Arduino UNO or something similar to connect these ultra sonic modules to?
http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor
 

Thread Starter

james211

Joined May 29, 2012
283
Well I already have a sketch written that I like, I just want to know how hard it would be to replace the current sensor with a new sensor on the current sketch.
 
Last edited:

BMorse

Joined Sep 26, 2009
2,675
Unfortunately, the first module you mentioned is controlling the ultrasonic transducers itself, there is no "driver" circuit, so if you want to "copy" that first module, the other 2 you mentioned wont work, you will have to get some ultra sonic transducers and re create the circuit to drive them.
 
Top