Show Posts
Pages: [1] 2 3 ... 31
1  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: April 11, 2014, 10:13:35 am
Got it working on my obstacle avoidance robot with three SR04 sensors up front and it is working very well.   Great improvement.

The "multi-tasking" or maybe I should correctly stay "event-driven" or "task-switching" method of pinging even one sensor that NewPing uses is a vast improvement over other methods.  Using multiple sensors multiplies this improvement.  Glad it's working for you!

Tim
2  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: April 10, 2014, 02:15:40 pm
In the multiple sensor examples, how do I actually call up the data for the individual sensors to use that data?  For instance, I might want to compare the first sensor to the second, or the first to the third, or figure out which sensor has the highest or lowest reading.

Please see the 15 Sensors Example Sketch Help.  Everything is detailed in that post.  Basically, everything is stored in an array so you can easily extract the information you want.  The above linked help message will explain everything and gives alternative code to accomplish different tasks.

Tim
3  Using Arduino / Sensors / Re: More prescise control of Ping Sensor on: April 03, 2014, 03:41:28 pm
Hey, I'm using an ultrasonic ping sensor similar to the "Parallax PING sensor", using the NewPing library: http://code.google.com/p/arduino-new-ping/ . What I'm wondering is if I can get ore precise control, such as sending out a single pulse, and being able to listen for the sent pulse. For example I want to send a pulse towards 2 panes. I should get back multiple reflected signals and from the results possibly measure the distance between the panes

As the author of NewPing, I know a thing or two about how ultrasonic sensors are designed.  Your first problem is that most send out several pings when you initiate just one.  This is done to be more sure they get a reflected ping back.  Therefore, all it ever really knows is when the FIRST reply comes back.  Your second problem is that almost every ping sensor has a "quiet time" after a ping where it basically turns off before it will initiate another ping.  This is done to prevent any echo readings.

Basically, you won't be able to do what you want, even with multiple sensors as each sensor will only ever give you the reading of the FIRST echo (the closest object).  To do what you want, you would need to design your own custom ping sensor that would send out a ping and then catch all return pings and process this information probably in your sketch.  Designing your own ping sensor can be done, but is very challenging.

My first thought is to contact MaxBotix.  They may have designed a sensor like this already and are known for designing sensors for custom applications.  As it would be difficult to design your own ping sensor, it may be easier and less expensive to have MaxBotix do it for you.

Hope this helps!

Tim
4  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: April 03, 2014, 03:30:35 pm
Hello,

I would like to use 12 x HC-SR04 with an I/O multiplexer  MCP23017 (or other) and NewPing library.
Is it possible ?
If yes, how do we configure the newping trigger et echo of the library?
If not, what solution to use knowing that I do not have enough I/O port?

Thank you in advance for your information

First, you only need 12 pins to control 12 HC-SR04 sensors using NewPing.  So, using an I/O multiplexer may not even be required.  Secondly, you can't use NewPing with an I/O multiplexer as it uses direct port register calls.  If you don't have 12 available pins to control 12 sensors, you'll either need to use a Adruino Mega or develop your own custom sensor library or sketch to interface with your I/O multiplexer.

Tim
5  Using Arduino / Sensors / Re: HC SR04 getting dammage? on: March 28, 2014, 08:21:39 am
As noted several times, here's the NewPing library page along with sample sketches.  The library also comes with sample sketches when you download it.

And here's a help page on how to customize the 15 sensor sketch.

These have already been provided and this is the most I can give you.  It's up to you to figure it out from here, or find someone who's willing to do all the work for you (which is NOT me, you can't afford me).

Tim
6  Using Arduino / Sensors / Re: HC SR04 getting dammage? on: March 27, 2014, 12:48:37 pm
Sounds like you got bad sensors.  I have some that I've run for days without a problem.  But, as most are cheap Chinese knockoffs, I'm sure this can happen.

Tim
7  Using Arduino / Sensors / Re: HC SR04 getting dammage? on: March 27, 2014, 10:56:35 am
hello, my HC SR04 is getting damage again and again. initial when i change it it works for few minutes and then not working, it happens to 3 of this sensor modules what can I do ?

If they're damaged, you would get replacements.  Or, do they just stop working and when you restart the sketch they work again.  If so, it could be a programming issue, not damage.  Have you tried a different way to interface with the sensor?  Try using the NewPing library to see if that changes things.

Tim
8  Using Arduino / Sensors / Re: hc-sr04 program on: March 27, 2014, 10:52:49 am
I need to make a program when the sensor detects the passage of an object, it communicates to the arduino. smiley

The NewPing library would work great for this.

Tim
9  Using Arduino / Sensors / Re: Movement-/ distancesensor for art on: March 24, 2014, 09:40:34 am
Hello,

i am searching for a small sensor which should detect people walking beneath a picture. I think max. distance one meter.

The sensor should be small and dark.

May someone recommend me an easy to use sensor (max. two pins free)?

Greetz Chris

The HC-SR04 would probably work great for this.  You can get them for a couple bucks on eBay.

Tim
10  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: March 24, 2014, 09:38:35 am
Hey there again,

Most of the arduino code works almost seamlessly on the waspmote. It runs ATMEGA1281.

Then why would you think NewPing wouldn't work?  It's designed to run on the ATmega platform.

Tim
11  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: March 24, 2014, 09:24:40 am
Hey thanks for the prompt response..

My problem is that I am using a waspmote, not arudino (although are almost the same, but have their own API etc).

So I really can't use this and I am not having a lot of time right now to even look into understanding it and try to port it to waspmote smiley-sad

Thanks anyway

Oh, this is an Arduino forum.  If your microcontroller isn't ATmega8, you're not going to get a lot of help here.  If it is ATmega8, then NewPing should work.

Tim
12  Using Arduino / Sensors / Re: hc-sr04 programm on: March 24, 2014, 07:45:17 am
Thank for your answer
I wish use 8 sensors, i need to use 16 input/output?  or i can put Echo pin on a same
input?
Thanks

The NewPing library supports both using a single pin per sensor as well as includes example sketches that ping many sensors.  It's custom-built to do exactly what you're looking for.  The support forum can also be found here.

Tim
13  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: March 24, 2014, 07:41:27 am
Hey dude this is great!

However I am using a Waspmote board with the DYP ME007 and I am using pulsein and I bad readings, as it seems to have problem with "high" distances (like above 160cm) and it actually "crashes" when I move the sensor to sense longer distances.

Anyone have experienced this? I am losing my head :/

Correct, using the pulsein method can create "crash" like situations.  Instead, use the NewPing library.  It will also be faster and use less program space.

Tim
14  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: March 17, 2014, 10:33:57 am
Hi!
I have a DYP-ME007Y connected to an Arduino as follow:

Arduino          Sensor
5V                     5V
Trigger            Pin 2
Echo                Pin 4
Ground          Gnd

How do I use your NewPing files?

Thanks a lot for the help!! smiley

Martin

Use the demo sketch and set the trigger and echo pins accordingly.

Tim
15  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: March 17, 2014, 10:32:57 am
 With that said, v1.6 of NewPing will support non-AVR microcontrollers for all but the ping_timer() method.  

Has v1.6 been released yet?

No, you can check for a new version here:

https://code.google.com/p/arduino-new-ping/downloads/list

Tim
Pages: [1] 2 3 ... 31