Show Posts
Pages: [1]
1  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: December 11, 2012, 01:33:24 am

Quote
So, you're trying to use just the sensor without the control board?
 

no i am not trying to use the sensor without the board , in my first post i noted that i am using the sensor board . i know if i connect the sensor directly to the arduino it wont work.

 
Quote
It's not something that can be fixed with software
 
believe me if we apply the 16 pulses with 21us period with 40KHZ frequency i will be work i am sure, so please tell me how to change the code to produce this pulses .

Quote
You need hardware to amplify the signals
the sensor board has the amplifyer inside.

check the pictures
2  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: December 08, 2012, 06:57:52 am
Do your sensors look like these?:


exactly the same
3  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: December 08, 2012, 06:55:59 am

Quote
The 1 pulse / 10uS width is just to trigger the sensor.  The sensor detects this and then sends out it's own multiple pulses.  In other words, the sensor doesn't just send out one 10uS pulse, we just trigger it.  I have not seen a sensor that doesn't automatically send out multiple pulses from a trigger.
i know it how the sensor works but this sensor dosnt operate with 1 pulse / 10 us it works with 16 pulses with period of 21us  and frequency of 40KHZ if i can apply this to my sensor it will work, now i just want to know how should i produce this 16 pulses(40KHZ)

Quote
Do you even know the maximum sensor distance?  Maybe it's only 40cm

the maximum is 5 meter , it reads 40cm but not accurate it has 13cm error.
4  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: December 07, 2012, 04:53:18 am
i think we have to change this part of code
Code:
*_triggerOutput &= ~_triggerBit; // Set the trigger pin low, should already be low, but this will make sure it is.
delayMicroseconds(4);            // Wait for pin to go low, testing shows it needs 4uS to work every time.
*_triggerOutput |= _triggerBit;  // Set trigger pin high, this tells the sensor to send out a ping.
delayMicroseconds(10);           // Wait long enough for the sensor to realize the trigger pin is high. Sensor specs say to wait 10uS.
*_triggerOutput &= ~_triggerBit; // Set trigger pin back to low.

i need 16 bursts with period of 21us  and frequency of 40KHZ for my trigger , how should i change the code?
5  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: December 06, 2012, 09:02:07 pm


Have you tried connecting it and using the sample NewPing sketch?  By the pin labels, it sounds like it could work as-is.  The 120V is a little confusing, but the specs seems a little thin to begin with.  Got a picture or more information?

Tim
[/quote]

i tried simple new ping sketch but it just reads up to 40cm and not so much accurate , in you sketch the ping pulse is 1 pulse with 10us width i think if we manipulate the code to 2 or 3 pulses with 16us width it will solve my problem,and i think we have to increase the frequency too.how should we change the code?
6  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: December 05, 2012, 08:38:57 pm
I've bought a chinese "reverse gear obstacle detector for cars" ultrasonic sensor and the board , i checked the board and find the trigger and echo pins for sensor like SR04 , but this sensor has a different specifications from SR04 , i want to use this new ping library for measuring the distance  with arduino and this sensor, i am not sure witch parts of the code i have to change to work with my sensor , here is the specification of the sensor i got:

center frequency : 40KHZ  (i checked the input pulse on the board with osciloscope it is 16 bursts)
Ringing : 1.2ms max
maximum input voltage : 120 Vp-p
Pages: [1]