terryking228:
Hi Tim,Great work! I will be trying this out Real Soon!!!
There are quite a few "HC-S04" labelled modules around. Have you tested any variety??
Here are a couple I have: http://goo.gl/VZkSy
The one labelled SRF-06 is said by the supplier to have temperature compensation. It does have a different circuit board / chips.
I'll send you one of each of the HC-SR04 and SRF-06 modules if you want to test them and see if you see any differences.. drop me a PM or email terry@yourduino.com
I'm writing a library for these: http://goo.gl/FWMjI and I'd love to try some cool mapping ideas with your code...
DISCLAIMER: Mentioned stuff from my own shop...
OTHER QUESTION: Your example is for Arduino IDE 1.0 Does the library work for both 0023 and 1.0??
I have (3) HC-SR04's from two different sources. One from Amazon and two direct from China. All work fairly similar. I believe the SRF05 is compatible in mode 1 (2 wire) with NewPing, adding support for PING))) would be fairly easy (1 wire) as would mode 2 (1 wire) of the SRF05. Then there's the SRF02, which is a totally different animal as it uses either I2C or serial so it would need a totally different library. It appears the SRF-06 is a 2 wire device so my guess would be that it would work very well with the NewPing library. I'd love to test your sensors, as I'd like to grow NewPing into a library used for all ultrasonic sensors. I'll PM you.
How I can see this working going forward is to make the NewPing library compatible with all the different ultrasonic interfaces (1 wire, 2 wire, I2C and serial) and compatible with as many sensor models as possible.
I'm an Arduino newb, coming in after the 1.0 release. So, I never used the 0023 platform. I would think at this point supporting 0023 wouldn't be too important. I know there's some old sketches out there that won't compile in 1.0 and using my library may be useful. But, it seems like everything has moved to 1.0 fairly quickly and almost all libraries I see are all written only for 1.0 these days with 0023 stuff being un-linked or listed as legacy, don't use. I wouldn't have a huge problem installing 0023 to address compatibility problems, but not sure if it's really needed at this point.
Tim