ultrasonic

HI, Guys .. i have only little question : IS there any way how to made cheep ( or from house-hold items) piezo ultrasonic transducer? thanks for answer :)

Topic by insurgent   |  last reply


Using Ultrasonic Sensors?

I basically want to make a customisable reversing sensor in that I want to be able to use the sensors from a basic car system and be able to add and change the audio and visuals outputs and the distance at which they are triggered.

Question by kjhdfadn   |  last reply


ultrasonic cleaning machine

What is the output voltage of 100 watts with 40khz frequency and 220 input voltage generator of home made ulta cleaner for having greatest efficiency?

Topic by mehran1376   |  last reply


Recording ultrasonic sound

I looked up at bat detector, a device that converts ultrasonic signals into audible sounds. Most bats produce high frequency calls which are often higher than a human ear can pick up. A bat detector picks up the frequencies and then converts the sound into a lower, audible frequency. I was thinking if I could get a bat detector, I use it to capture the ultrasonic sounds.While bat detector could pick up these high frequencies, it would be interesting to see how it will pick up the faintly heard, to human ears - sounds of the industrialised areas/city or even at isolated/quiet areas. The bat detector I want to use is this - http://www.magenta2000.co.uk/acatalog/B ... _Bat4.html I'm thinking of hooking up the bat detector to a digital recorder and a binaural microphone and capture the sound through those equipments. I would greatly appreciate your suggestions/opinions on this matter.

Topic by drifterocean 


Ultrasonic distance measure

Hi eveyone, I'm an assistant cameraman in film and tv and sometimes I've hired in a  professional distance measure device to help with really tricky shots. Trouble is, to buy one costs an arm and a leg, I was just wondering if anyone here had come up with an affordable version. The device sits on top of the camera and sends out ultrasonic pulses to where ever it's pointing and displays the distance in feet and inches on a LED display, that constantly updates. That's all it needs to do. Should have a range of 2' to 15' and be +/- 1" accuracy. Any help would be greatly appreciated.

Topic by Fat Sparrow   |  last reply


Converting sound to ultrasonic

I need to convert a bird sound from the audible level to the ultrasonic,  close to the the 20khz level. as long as we human cant hear the sound.  My question is,  what is the best method to convert this file? thanks in advance

Topic by bujuk   |  last reply


arduino ultrasonic communication

I was thinking about using the ultrasonic  module (hc-sr04) for communication for two or more arduino.the way i was thinking of do to turn a 8 bit number into single bits(i have no idea on how to do that) and send them one at time(with delay) to a another arduino which turn it back into a number also  has a master arduino  and slave arduinos 

Topic by act casual   |  last reply


Ultrasonic mixer for immissicable fluids?

Any idea's for a 12V-15V DC circuit to drive some transducers e.g. AU 12550 ? On board Water/Fuel mix, try in an ultrasonic cleaner! 35%H2O + 65%H CO is stable and burns just mighty fine thanks. Make it free to the world and free the world ,hip, hip ,hooray!

Question by Gofish   |  last reply


40kHz Ultrasonic Receiver Wanted

I'm looking for a breakout board, module, etc that is basically a 40kHz ultrasonic receiver, where if it detect a 40kHz signal it puts a pin high sort of thing (volume level as a PWM whatever, I just need to know when there is a 40kHz signal near by). I was thinking of using a HC-SR04 Ultrasonic Range Finder but they only receive for a very short time after the trigger pin goes high, I need it to constantly be sensing.Ideally works with a Raspberry Pi (ie 3.3 volts output, but 5v just means I add a voltage divider not a biggie)Thanks

Question by Duke Nukem 


homebrew ultrasonic cleaning solutions

I just picked up a branson 5210 2.5 gallon ultrasonic cleaner.i will be using it to clean aluminum motorcycle carbs that have been sitting and become encrudded.i have gotten a lot of suggestions as to what sort of home brew recipes work well, i was hoping people around here could tell me what they use or have heardi will be ordering some of the carb cleaning stuff from sharperteks website to compare it to different homebrew recipes. my goal is ease and lack of cost here. thankshttp://i9.ebayimg.com/01/i/001/43/54/91b8_35.JPG

Topic by 666mph   |  last reply


ultrasonic radar pc software

What pc software do you use to create a radar screen on computer screen that then picks up signals from ultrasonic sensor???

Topic by toka519 


I am working on a ultrasonic paintbrush cleaner.? Answered

I am working on an ultrasonic paintbrush cleaner... I have the transducer and I am pretty sure I can use a regular stereo amp... (because a transducer is just a different type of speaker) what else do I need. I guess I am asking how to make an ultrasonic generator.

Question by bellinghammakerspace   |  last reply


Make a ultrasonic Dog Barking machine??

I need someone to make a ultrasonic dog barking machine. I have a neighbor who allows their dog to back early in the AM and all during the day, so I want a powerful ultrasonic device that when i turn it on it will make their dog howl at 3AM and wake them up, similar to when the fire engine goes by, so that they will get a taste of what they do to me. This has been going on for a year and I can't get them to do anything to train the dog, they just don't care. I am willing to pay for a device that will work. The dog training devices like you see advertised like "Barkoff" have to be in the same room and all I have read is the ultrasonic dog trainers available don't penetrate walls. I don't want to train the dog not to bark, I want to annoy the neighbors and give them what I have been getting. Evil, maybe, justified, YES! email me direct   myxpykalix@hotmail.com        THANKS

Topic by myxpykalix   |  last reply


does anyone know any how to`s on how to connect a picaxe 20m to a SRF005 ultrasonic range sensor? Answered

I want to connect an ultrasonic rangefinder to my robot and my robots brain is a picaxe 20m so i need a way of interfacing it with a picaxe 20m , im pretty sure it`s an ADC input so if anyone knows an adc to cm converter i would be very grateful!!! thanks in advance if anyone answers this!!! cm

Question by thecookiemonster   |  last reply


What components would be needed to build an ultrasonic thickness gauge to measure paint the thickness of paint coatings?

I need an ultrasonic thickness gauge, they work by sending a pulse through the material being measured (paint in this case). When the pulse strikes a denser material it returns to the sensor, the delay from the time of the pulse being sent to being received gives the depth. I anyone knows the components that would be needed, or ideally, a set of schematics could you be so kind as to help me out. Thank you.

Question by alkem   |  last reply


where can i get a under water ultrasonic sensors in india or online. i'm doing a progect on under water robot using arduino

Hello, im from bangalore india. looking for a under water ultra sonic sensor for a under water robot. compatible with atmega 8, arduino.

Topic by opadigela 


Waterproof Ultra Sonic

Does anyone know of any type of ultrasonic that is waterproof and can go underwater? cause im trying to make a fog machine using the ultrasonics pieces and water since my dad bought something that worked like what i described. anyone know of any that can be underwater or some design that will work underwater using a regular ultrasonic you see on robots?

Topic by KT Gadget   |  last reply


Why does my Arduino script do the opposite of what I want? Answered

Hey out there! I am trying to write a code for an Arduino project I am working on. I am using an ultrasonic proximity sensor and an arduino nano clone. What I want is that when the object it detects is under 50cm an led turns on. When it senses an object farther than 50cm I want theLED to go off. Below is the script I wrote. The problem is it does the opposite of what I want(objects >50 LED goes on, objects <50 LED goes off). Any help would be greatly appreciated! Thanks! #define trigPin 3 #define echoPin 9 int LED = 12; void setup() {   Serial.begin (9600);   pinMode(trigPin, OUTPUT);   pinMode(echoPin, INPUT);   pinMode(LED, OUTPUT); } void loop() {   float duration, distance;   digitalWrite(trigPin, LOW);   delayMicroseconds(2);   digitalWrite(trigPin, HIGH);   delayMicroseconds(10);   digitalWrite(trigPin, LOW);     duration = pulseIn(echoPin, HIGH);   distance = (duration / 2) * 0.0344;     if (distance >= 50){     Serial.print("Distance = ");     Serial.println("Out of range");     digitalWrite(LED, LOW);   }   else {     Serial.print("Distance = ");     Serial.print(distance);     Serial.println(" cm");     digitalWrite(LED, HIGH);     delay(500);   }   delay(500); }

Question by Mpc1055   |  last reply


Is an ultrasonic transducer for measuring liquid levels... capable of being used for an ultrasonic cleaning transducer? Answered

I am working on something I know nothing about. I have a transducer (from a liquid level sensor) and an ultrasonic generator... can I make an ultrasonic cleaner with it or is the transducer the wrong type?

Question by bellinghammakerspace   |  last reply


Is electromagnetic wave can travel with ultrasonic wave? Answered

Is electromagnetic wave can travel with ultrasonic wave.If yes,then how far an ultrasonic wave will travel in air medium.

Question by Rajkumar2506   |  last reply


There is lot of ic's that can produce ultrasonic Freq. plus. Is it possible to catch the bounce back and trigger relay?

Is it possible to triggering  a relay by freq. shift or tone? Some of those ant-barking curcuits that use 555's is it possible that they could they be modified for proximity detector use? Could  transmitter  catch the signal or tone on the return  the echo bounce and trigger the relay. Also can some of those Max Bot's run directly to a relay and work? 

Question by    |  last reply


what is the output voltage of 100 watts with 40khz frequency and 220 input voltage generator of home made ulta cleaner?

Home made ultrsonic cleaner sounds good.for this system that is 100 watts and 40khz with 220 input voltage and two 50 watts transducers which are connected to them,so what is the output voltage of generator? thanks

Question by mehran1376   |  last reply


Effectiveness of sugar as a piezoelectric material

Most of the sites discussing piezoelectricity mention that sugar crystals can be used, but I have not found any examples of them being used. I've just tried it with about a 1cm chunk of low quality (conglomerate of small ~3mm crystals) crystal, and got a good 100mV wave when tapped with a pencil. I've not tried applying a signal to it yet, and some better single crystals are growing at the moment, so I was wondering how well it works compared to commercial piezoelectric compounds. I've not done anything like this before, so if anyone knows where I can find information of the best way to mount and apply a signal to the crystal, it would be appreciated. Thanks in advance.

Topic by The Skinnerz   |  last reply


How do I make a 3D distance scanner using ultrasonic arduino modules?

I have 3 Ultrasonics Arduino compatible distance sensors. A single ultrasonic sensor can be used to measure the distance of an object from the sensor. But my application for the sensors is a bit different. How do i measure the distance of the object on all 3 axes with respect to the ultrasonic sensor?

Question by Jonathanrjpereira   |  last reply


can we record ultrasonic sounds. ?

.if it so how we can.can we recieve it using microphone(ie it can be converted to electrical energy ah

Question by thenmozhi   |  last reply



What ultrasonic frequency actually hurts dogs? Answered

I AM NOT TRYING TO TORTURE ANIMALS. I'm trying to make a dog repellent device and I need to know how high I can make it before it hurts the dog, because hurting it is not my intention.

Question by martzsam   |  last reply


Need help for improving PING Ultrasonic sensor code to make it precise

Hi guys,               I havebuilt a circuit to detect the swinging of an object using ultrasonic sensor and send signals to the Arduino Duemilanove board which in turn activates the solenoid. The circuit is working fine but I'm using a PING Ultrasonic sensor and I'm having hard time controlling it with the code. Do you have any idea about how to control and make the readings precise for the Sensor? If you want, I can post my code here... Any help is appreciated. Thanks in advance!

Topic by kailash174   |  last reply


Trying to figure out how ultrasonic humidifier detects low water level

Hello all, I'm currently working on a home automation system and have decided I want to throw my fragrance diffuser into the mix. What I'm trying to accomplish is I'd like the diffuser to come on whenever the unit has power so I can simply control it with a Sonoff SV. I was originally planning on just replacing the guts with an Arduino Nano or something until I tore into it and realized I have absolutely no clue how this thing detects when the water level is low! There's no sort of float switch or resistive fluid detection. In fact, the only part that has contact with the fluid is the ultrasonic transducer. I'm curious if anyone can look at the PCB and give me some more insight as to what's going on. On the far left the five pins coming into the board is the cable connector for the buttons and LEDs, the two large pins beneath that are the buzzer for making beeping noises when buttons are pressed, The SMD IC towards the middle is from what I can tell the brains of the operation. The three large pins (two with solder) near the top center are where 24vdc comes in. The two large pins on the upper right are for the fan and the two large pins on the bottom right are for the transducer. If anyone has any insight as to how this thing reads a low water level it'd be very much appreciated. Thank you!

Question by harry88   |  last reply


How to stop a servo using conditional if?

I'm using an Arduino Uno, Ultrasonic sensor (HC-SR04) a Servo motor (SG90 Tower Pro). I would like to rotate the servo continuously from 0 to 180 and back to 0. I would like to stop the servo whenever the ultrasonic sensor detects an object  at a distance of 40 cm or less. I know how to rotate the servo and how to detect an object using the ultrasonic sensor, but I couldn't combine the two. Can you kindly help me on how to do so?

Question by iSmartov   |  last reply


[Help] bicycle proximity sensor

Hello guys i would like to start making a proximity sensor the idea is to mount it on the back of my bicycle when an object/vehicle come close it gives me reading with distance and maybe a beep or something like that,the question is i found there are 2 methods one using IR and one using ultrasonic,which one is cheaper and which one is better and easier.this is supposed to my first instructable involves programming.

Topic by Mido Masry   |  last reply


Arduino | Run 2 Function at the same time.

Hi , i wanna ask about 2 function which is Ultrasonic and Heat that run at the same time  , For me , i just got Heat running as i want but the Ultrasonic doesn't trigger the buzzer if object (Laptop) 30cm away from the ultrasonic. I've been trying since last week but the result is still the same ;'( Btw here is the code , i've seperate it to 2 function which is Ultrasonic and Heat.  i hope u guys can guide me which part should i change or Add. Thanks in advance ;) //*********************************** #include #define trigPin 6    //trigPin #define echoPin 7    //echoPin LiquidCrystal lcd(12,11,5,4,3,2); int tempPin = A1;   // the output pin of LM35 int fan = 10;       // the pin where fan is int led = 9;        // led pin int temp; int tempMin = 35;   // the temperature to start the fan int tempMax = 70;   // the maximum temperature when fan is at 100% int fanSpeed; int fanLCD; int duration, distance; int buzzer = LOW; void setup() {   Serial.begin (9600);        //Baud rate   pinMode (trigPin, OUTPUT);  //trig pin as output   pinMode (echoPin, INPUT);   //echo pin as input   pinMode (13, OUTPUT);       //Buzzer pin as output   pinMode(fan, OUTPUT);   pinMode(led, OUTPUT);   pinMode(tempPin, INPUT);   lcd.begin(16,2);   } void ultrasonic() {   digitalWrite (trigPin, HIGH);   delayMicroseconds (1000);   digitalWrite (trigPin, LOW);   duration = pulseIn (echoPin, HIGH);   distance = (duration/2) / 29.1;   if (distance > 30)   {     Serial.print(distance);     Serial.println(" cm");     digitalWrite (13, HIGH);   }   else   {     Serial.println (distance);     Serial.println ( "cm");     digitalWrite (13, LOW);   } } void heat() {   temp = readTemp();     // get the temperature   if(temp < tempMin) {   // if temp is lower than minimum temp     fanSpeed = 0;      // fan is not spinning     digitalWrite(fan, LOW);         }   if((temp >= tempMin) && (temp <= tempMax)) {  // if temperature is higher than minimum temp     fanSpeed = map(temp, tempMin, tempMax, 32, 255); // the actual speed of fan     fanLCD = map(temp, tempMin, tempMax, 0, 100);  // speed of fan to display on LCD     analogWrite(fan, fanSpeed);  // spin the fan at the fanSpeed speed   }   if(temp > tempMax) {        // if temp is higher than tempMax     digitalWrite(led, HIGH);  // turn on led   }   else {                    // else turn of led     digitalWrite(led, LOW);   }   lcd.print("TEMP: ");   lcd.print(temp);      // display the temperature   lcd.print("C ");   lcd.setCursor(0,1);   // move cursor to next line   lcd.print("FANS: ");   lcd.print(fanLCD);    // display the fan speed   lcd.print("%");   delay(200);   lcd.clear();   } float readTemp() {  // get the temperature and convert it to celsius   temp = analogRead(tempPin);   return temp * 0.48828125; } void loop() {    ultrasonic();   heat(); } //***********************************

Topic by Melromeo   |  last reply


ultrasonic sensor convert 4 pin to 5 pin

Hello there, Is it possible to convert a 4pin ultrasonic sensor to a 5pin? I have this sensor with 4 pins: http://www.ebay.com/itm/Waterproof-DC-5V-DYP-ME007Y-Ultrasonic-Sensor-Module-Measuring-Range-30cm-3-5m-/201025966447 and this display module with "5 pins": http://www.ebay.com/itm/Mini-Non-contact-Ultrasonic-Motion-Detector-Module-Sensor-Display-Board-Security-/360717776823 How do i get the display module and sensor module, to talk together? BEST :) Regards Lasse

Topic by dmor 


<5mm distance sensing, <100micron accuracy, GUI, RasPi or Arduino?

Hi there, I am trying to keep my hardware/ coding skills alive and spruce up my bicycle wheel truing stand. I need to figure out the required hardware + software for the following: I want to build a non-contact distance measurement sensor system and get the output "into" my computer for display in a graphical user interface. I know I could omit the latter step with going directly onto a mini-LCD screen, but trying to use this a learn-another-programming-language learning experience (I've coded Matlab galore, pondering Python for this project). General system components: Sensor - [something - RasPi or Arduino I guess] - laptop (running debian) - GUI displaying continuous sensor reading Sensor: I've web-searched the hell out of this, but not finding anything quite answering my questions. I want to continuously measure the distance from the sensor to a bicycle wheel rim braking surface. Material is aluminium, shiny, though not smooth. Biggest problem with the web-search is being swamped by proximity sensor results (on/off) rather than a distance proportional output signal and much lower resolution projects. I rule out IR or optical sensing, now stuck between ultrasonic and inductive sensing, though tending to the latter for a faster response/adjustment to change time. Sensor criteria (other than reasonable $$): - total sensing range: ca.5mm - sensing accuracy 10 to 100micron/ 0.01 to 0.1mm - don't ask if that's needed, a bit of overkill, I know, but a bit of OCD doesn't do any harm, eh? - fast-ish sampling rate (so that when I turn the wheel, the number on the screen updates nice and fast, guess >25Hz is sufficient). [Something - RasPi or Arduino]: I know that I could omit the laptop GUI part (mini-LCD, LED array, etc), but keen to learn/ practice a little Python with this project, so I guess I am tending to the RasPi, but I am open minded. All I want is the analogue sensor out to end up as a digital reading "inside" my computer to be passed to my GUI as a reading. Essentially a mini A2D converter. Not fussed whether the output is in actual distance units or in arbitrary units/ current units (I guess the sensors put out a proportional current signal?). GUI: Depending on the above, how do I best get the signal "into" a Python program? A moderate fast sample rate >25Hz should suffice.  Any help with this would be greatly appreciated! LaserCycle

Topic by lasercycle   |  last reply


new to arduino, want to run a dual display for 2 sensors

I'm new to the Arduino community.  wanting to set up a dual radar setup with 2 ultrasonic sensors,  (Ultrasonic Sensor Module HC-SR04), and outputting to a pair of 7 segment displays ( two 7 segment displays each).  I've found a code to do a single could use a lot of help to output two at the same time, basically 2 lanes without 2 units.  im using an arduino mega, ordered a unor3 and hopefully it can be made to run on one or the other. code is as follows: /* HC-SR04 Sensor    The circuit:     * VCC connection of the sensor attached to +5V     * GND connection of the sensor attached to ground     * TRIG connection of the sensor attached to digital pin 2     * ECHO connection of the sensor attached to digital pin 4  */    /*  This is a radar ping sensor that calcultates the speed of an  object traveling away or towards the sensor. I took some of this  code for the HC-SR04 Sensor implementation by Tautvidas Sipavicius. The rest  is original code from me. I know that the seven segment display  code is not the best to look at or the most optimized but it  serves its purpose just fine and is easy to understand.    Written by Matthew Ladd  */   const int trigPin = 2; const int echoPin = 4;   void setup() {   // initialize serial communication:   Serial.begin(9600);   //First 7 segment (ones place)   pinMode(30,OUTPUT);//F   pinMode(31,OUTPUT);//G   pinMode(32,OUTPUT);//E   pinMode(33,OUTPUT);//D   pinMode(34,OUTPUT);//C   pinMode(35,OUTPUT);//B   pinMode(36,OUTPUT);//A   //Second 7 segment (tens place)   pinMode(37,OUTPUT);//F   pinMode(38,OUTPUT);//G   pinMode(39,OUTPUT);//E   pinMode(40,OUTPUT);//D   pinMode(41,OUTPUT);//C   pinMode(42,OUTPUT);//B   pinMode(43,OUTPUT);//A } void zerofirst(){   digitalWrite(30,LOW);   digitalWrite(31,HIGH);   digitalWrite(32,LOW);   digitalWrite(33,LOW);   digitalWrite(34,LOW);   digitalWrite(35,LOW);   digitalWrite(36,LOW); } void onefirst(){   digitalWrite(30,HIGH);   digitalWrite(31,HIGH);   digitalWrite(32,HIGH);   digitalWrite(33,HIGH);   digitalWrite(34,LOW);   digitalWrite(35,LOW);   digitalWrite(36,HIGH); } void twofirst(){   digitalWrite(30,HIGH);//F   digitalWrite(31,LOW);//G   digitalWrite(32,LOW);//E   digitalWrite(33,LOW);//D   digitalWrite(34,HIGH);//C   digitalWrite(35,LOW);//B   digitalWrite(36,LOW);//A } void threefirst(){   digitalWrite(30,HIGH);//F   digitalWrite(31,LOW);//G   digitalWrite(32,HIGH);//E   digitalWrite(33,LOW);//D   digitalWrite(34,LOW);//C   digitalWrite(35,LOW);//B   digitalWrite(36,LOW);//A } void fourfirst(){   digitalWrite(30,LOW);//F   digitalWrite(31,LOW);//G   digitalWrite(32,HIGH);//E   digitalWrite(33,HIGH);//D   digitalWrite(34,LOW);//C   digitalWrite(35,LOW);//B   digitalWrite(36,HIGH);//A } void fivefirst(){   digitalWrite(30,LOW);//F   digitalWrite(31,LOW);//G   digitalWrite(32,HIGH);//E   digitalWrite(33,LOW);//D   digitalWrite(34,LOW);//C   digitalWrite(35,HIGH);//B   digitalWrite(36,LOW);//A } void sixfirst(){   digitalWrite(30,LOW);//F   digitalWrite(31,LOW);//G   digitalWrite(32,LOW);//E   digitalWrite(33,LOW);//D   digitalWrite(34,LOW);//C   digitalWrite(35,HIGH);//B   digitalWrite(36,LOW);//A } void sevenfirst(){   digitalWrite(30,HIGH);//F   digitalWrite(31,HIGH);//G   digitalWrite(32,HIGH);//E   digitalWrite(33,HIGH);//D   digitalWrite(34,LOW);//C   digitalWrite(35,LOW);//B   digitalWrite(36,LOW);//A } void eightfirst(){   digitalWrite(30,LOW);//F   digitalWrite(31,LOW);//G   digitalWrite(32,LOW);//E   digitalWrite(33,LOW);//D   digitalWrite(34,LOW);//C   digitalWrite(35,LOW);//B   digitalWrite(36,LOW);//A } void ninefirst(){   digitalWrite(30,LOW);//F   digitalWrite(31,LOW);//G   digitalWrite(32,HIGH);//E   digitalWrite(33,HIGH);//D   digitalWrite(34,LOW);//C   digitalWrite(35,LOW);//B   digitalWrite(36,LOW);//A } void zerosecond(){   digitalWrite(37,LOW);   digitalWrite(38,HIGH);   digitalWrite(39,LOW);   digitalWrite(40,LOW);   digitalWrite(41,LOW);   digitalWrite(42,LOW);   digitalWrite(43,LOW); } void onesecond(){   digitalWrite(37,HIGH);   digitalWrite(38,HIGH);   digitalWrite(39,HIGH);   digitalWrite(40,HIGH);   digitalWrite(41,LOW);   digitalWrite(42,LOW);   digitalWrite(43,HIGH); } void twosecond(){   digitalWrite(37,HIGH);//F   digitalWrite(38,LOW);//G   digitalWrite(39,LOW);//E   digitalWrite(40,LOW);//D   digitalWrite(41,HIGH);//C   digitalWrite(42,LOW);//B   digitalWrite(43,LOW);//A } void threesecond(){   digitalWrite(37,HIGH);//F   digitalWrite(38,LOW);//G   digitalWrite(39,HIGH);//E   digitalWrite(40,LOW);//D   digitalWrite(41,LOW);//C   digitalWrite(42,LOW);//B   digitalWrite(43,LOW);//A } void foursecond(){   digitalWrite(37,LOW);//F   digitalWrite(38,LOW);//G   digitalWrite(39,HIGH);//E   digitalWrite(40,HIGH);//D   digitalWrite(41,LOW);//C   digitalWrite(42,LOW);//B   digitalWrite(43,HIGH);//A } void fivesecond(){   digitalWrite(37,LOW);//F   digitalWrite(38,LOW);//G   digitalWrite(39,HIGH);//E   digitalWrite(40,LOW);//D   digitalWrite(41,LOW);//C   digitalWrite(42,HIGH);//B   digitalWrite(43,LOW);//A } void sixsecond(){   digitalWrite(37,LOW);//F   digitalWrite(38,LOW);//G   digitalWrite(39,LOW);//E   digitalWrite(40,LOW);//D   digitalWrite(41,LOW);//C   digitalWrite(42,HIGH);//B   digitalWrite(43,LOW);//A } void sevensecond(){   digitalWrite(37,HIGH);//F   digitalWrite(38,HIGH);//G   digitalWrite(39,HIGH);//E   digitalWrite(40,HIGH);//D   digitalWrite(41,LOW);//C   digitalWrite(42,LOW);//B   digitalWrite(43,LOW);//A } void eightsecond(){   digitalWrite(37,LOW);//F   digitalWrite(38,LOW);//G   digitalWrite(39,LOW);//E   digitalWrite(40,LOW);//D   digitalWrite(41,LOW);//C   digitalWrite(42,LOW);//B   digitalWrite(43,LOW);//A } void ninesecond(){   digitalWrite(37,LOW);//F   digitalWrite(38,LOW);//G   digitalWrite(39,HIGH);//E   digitalWrite(40,HIGH);//D   digitalWrite(41,LOW);//C   digitalWrite(42,LOW);//B   digitalWrite(43,LOW);//A } long distanceOverTime(long first,long second){  return ((first-second)/.1)*.0223693629;//taking cm/s to mph } long holder;//store the cm from last time through loop. long temp;//used to store the speed value after changes int counter; void loop() {   // establish variables for duration of the ping,   // and the distance result in inches and centimeters:   long duration, inches, cm;   int tens;   int ones;   long Speed;   // The sensor is triggered by a HIGH pulse of 10 or more microseconds.   // Give a short LOW pulse beforehand to ensure a clean HIGH pulse:   pinMode(trigPin, OUTPUT);   digitalWrite(trigPin, LOW);   delayMicroseconds(2);   digitalWrite(trigPin, HIGH);   delayMicroseconds(10);   digitalWrite(trigPin, LOW);     // Read the signal from the sensor: a HIGH pulse whose   // duration is the time (in microseconds) from the sending   // of the ping to the reception of its echo off of an object.   pinMode(echoPin, INPUT);   duration = pulseIn(echoPin, HIGH);     // convert the time into a distance   inches = microsecondsToInches(duration);   cm = microsecondsToCentimeters(duration);   Speed=distanceOverTime(holder,cm);   holder=cm;//after speed caclulation so take the cm value for another calculation   Speed=abs(Speed);   if(Speed!=0 || counter==10){     temp=Speed;     counter=0;   }else{     counter++;   }   if(temp>=100){    zerofirst();    zerosecond();   }else{     ones=temp%10;     tens=temp/10;   }   if(ones == 0){     zerofirst();   }else if(ones==1){     onefirst();   }else if(ones==2){     twofirst();   }else if(ones==3){     threefirst();   }else if(ones==4){     fourfirst();   }else if(ones==5){     fivefirst();   }else if(ones==6){     sixfirst();   }else if(ones==7){     sevenfirst();   }else if(ones==8){     eightfirst();   }else if(ones==9){     ninefirst();   }   if(tens == 0){     zerosecond();   }else if(tens==1){     onesecond();   }else if(tens==2){     twosecond();   }else if(tens==3){     threesecond();   }else if(tens==4){     foursecond();   }else if(tens==5){     fivesecond();   }else if(tens==6){     sixsecond();   }else if(tens==7){     sevensecond();   }else if(tens==8){     eightsecond();   }else if(tens==9){     ninesecond();   }       Serial.print(inches);   Serial.print(" in, ");   Serial.print(cm);   Serial.print(" cm, ");   Serial.print(Speed);   Serial.print(" mph");   Serial.println();     delay(100); }   long microsecondsToInches(long microseconds) {   // According to Parallax's datasheet for the PING))), there are   // 73.746 microseconds per inch (i.e. sound travels at 1130 feet per   // second).  This gives the distance travelled by the ping, outbound   // and return, so we divide by 2 to get the distance of the obstacle.   // See: http://www.parallax.com/dl/docs/prod/acc/28015-PING-v1.3.pdf   return microseconds / 74 / 2; }   long microsecondsToCentimeters(long microseconds) {   // The speed of sound is 340 m/s or 29 microseconds per centimeter.   // The ping travels out and back, so to find the distance of the   // object we take half of the distance travelled.   return microseconds / 29 / 2; } again, all your help and thought are appricated

Topic by herb1977   |  last reply


Can the NXT 2.0 ultrasonic sensor detect glass?

So, can the sensor sense glass? since its ULTRASONIC does that mean it detect things by sound and not by light? 

Topic by NXTHacker   |  last reply


how to make an Ultrasonic Water Fogger for those creepy witch's cauldron effect?

Also known as ultrasonic fogging devices, these consist of metallic plates which vibrates with ultrasonic frequency to nebulize the water molecules to form a vapour which appears as thick low lying fog. For the effect they are simply placed below a water body. Please provide complete details. www.mainlandmart.com/foggers.html

Question by adilqaiser   |  last reply


Ultrasonic sensor controled directly from arduino?

I'm on a time crunch for a project, and I want to have distance sensing.  Unfortunatealy, i dont have enough time to get stuff shipped, nor the budget to use radioshack.  I was wondering if I can use a single pieze transducer without premade circuitry, and control it from an arduino.  I have some transistors, some common ICs (386, 555, etc), and basic passive components, plus two arduino UNOs (one with a broken FTDI adapter) can it be done? I don't need an  exact, continuous, or scaling measurment, just one that gives me an idea of the distance/presence of an object. 

Question by jduffy54   |  last reply


Arduino ultrasonic sensor activating servo movement?

I am building a rc car as part of a pretty big project that has a bunch of other stuff on it . But one thing I can't figure out, being I'm only slightly familiar with arduino (UNO), is how to make a servo move when the sensor tells it to. I am going to attach a hook on the front to lift up an object so I can transport it. Now what I want to do is have the sensor detect the object when it is close enough to the hook (3-4") and then tell the servo to move a given degrees, around 25, just enough to pick it up. I've been toying with the code for the obstacle detecting robots trying to see if I cant modify that for this type of use but a lot of that code is backup commands, alternate routes and all that other stuff. just need a simple detect object, send signal to servo and servo moves the hook to pick the object up. Thanks  

Question by dmegill   |  last reply


how to control ultrasonic the servo should be steady if not detected by hands,upon closer your hand servo is get faster?

I need a code for ultasonic motor, controlling the servo motor. it should be steady if not detected by hand, and upon your hands getting closer to the ultrasonic the servo mototr getting faster. thank you

Question by Kirsch chu   |  last reply


Modify the ultrasonic range finder sensor - your opinion ???

Hi ... I would like to know your opinion about this ultrasonic range finder sensor. I bought this "JCB ultrasonic distance measurer". I bought it for it's ability to measure up to 18m. I tried it ... and happy with the distance ... BUT ... a realised few issues (for me). 1. I think, it use 2 pulses to make the measurement. It's like ... Tuk - Tuk ... end then cca 1 sek is the result. 2. when I move ... it will NOT tell me the results ... probably, because of those 2 impulses - I think, the device is comparing those two TUK TUK ... and if there is a difference, it tells me ERROR. How ever ... my question is ... if I would take out just the sensor, do you think, I could make it to run only with one TUK - to be faster ... and do you think, then I could make measurements while moving ??? (just to show me the actual distance ???) I would like to make something like the arduino PING sensor ... but with greater distance. EDIT : I forgot to mention, that I want to use it with Arduino ... I don't need the device to work on its own. I would just like to know, if the sensor on its own (taken out of this device) + arduino could measuring by movement and with the same distance (max 18m) ??? Looking forward to your opinions. Thank you. zholy

Question by zholy   |  last reply


How to make an Ultrasonic Proximity Sensor w/ Vibrating motor?

Ok so I want to use something like http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/ProductID/92/List/1/Default.aspx?SortField=ProductName,ProductName and http://tinyurl.com/cxlp8jz to create a small system that vibrates when an object is in the way of the detector. To elaborate, Something like https://www.instructables.com/id/Make-an-Attiny13-based-IR-proximity-sensor-for-2/ but using an ultrasonic sensor(for farther range) and a vibrating motor instead of an LED because I am looking to make something for the blind. So how would I build it? I can purchase any parts and just need some instructions like the project above provided. Thanks a lot for any help you can provide. Also , If I need to use a Raspberry Pi, I have one. My Skills? My skills are limited. I know how to solder and work with PCBs, But I do not know how to code a microprocessor. I know that I'd hook it up to an arduino to code it but I can't code. If someone can tell me where to solder the parts and give me a code, I'll be able to do it. Thanks alot for your reply. If someone does this for me, I would be very grateful and might even make some donations to you. :) So to summarize, I need code to program a microprocessor to make a vibrating motor vibrate when the PING senses an object. I also need some sort of a schematic. I will be very grateful and will be sure to give you acknowledgements when I do my project.

Topic by hackery21   |  last reply


How would I make a sensor sense motion coming at me from behind while I'm moving forward?

I'm trying to make a small sensor that would detect a large object coming at me from behind at about 60mph while I'm moving forward at around 7mph. What kind of sensor would I use? I looked up the different types and I found Passive/active infrared, optic-based, piezoelectric, and ultrasonic. I tried to figure it out myself and my best guess is ultrasonic? Like what cars use to detect deer, they use "ultrasonic airflow sensors". Ideally the sensor would beep and get louder or faster as the object approaches. Would I use an arduino? I'm very new at this :/ Thanks for any help!

Topic by arrowstation   |  last reply


How can I make a simple ultrasonic dog repeller?

I have been chased by some neighborhood dogs while biking in the last few months, and I need some defense. I don't like the mace or whatever sprays, and I certainly don't want to hit them with anything. I know there are some ultrasonic gizmos but they are awfully expensive. I have found some ultrasonic (25KHZ and above) transmitters at Mouser, and I was wondering if anyone could help with how to make my own portable dog stopper. Please Save My Ankles!

Question by darryllicht   |  last reply


How do i connect my created device into my program?

I am creating an ultrasonic device which i want to interface into my program, how is it possible? please help me anyone..

Question by vpuato   |  last reply


does anyone know of a good ultrasonic sound emitter i can make?

Working something that found in some old text to test a theory but need a nice small hand held design for a ultrasonic sound emitter where the frequencies can be altered by the turn of a knob can anyone help please direct me to a good link either here or to some other sight.

Question by maskofdarkness22   |  last reply


Controlling 9 Micro Servos with Arduino & Ultrasonic Sensor

Hello! I'm new to Arduino and trying to build a series of moving cogs attached to micro servos, which are triggered by an Arduino controlled Ultrasonic Sensor. My code so far looks like this #include #define trigPin 12 #define echoPin 13 #define CONNECTED_SERVOS 9 // macro just adds two - the first servo is attached to digital pin 2, this gives us upto 12 servos - digital 2 to 13 #define SERVO_TO_PIN(x) (x+2) Servo myServos[CONNECTED_SERVOS]; Servo myservo; void setup() {   Serial.begin (9600);     pinMode(trigPin, OUTPUT);   pinMode(echoPin, INPUT);     // attach the servos   for(int nServo = 0;nServo < CONNECTED_SERVOS;nServo++)   {     myServos[nServo].attach(SERVO_TO_PIN(nServo));   }    } void loop() { int duration, distance,pos=0,i;   digitalWrite(trigPin, LOW);    delayMicroseconds(2);   digitalWrite(trigPin, HIGH);   delayMicroseconds(10);   digitalWrite(trigPin, LOW);   duration = pulseIn(echoPin, HIGH);   distance = (duration/2) / 29.1;    Serial.print(distance);    Serial.println(" cm");   for(int nServo = 0;nServo < CONNECTED_SERVOS;nServo++)   {     if (distance >0 && distance < 30)   {      myServos[nServo].write(180);   }   else{     myServos[nServo].write(180);   }      }          But it isn't really the code that I am having a problem with. I know that I need an external power supply for the 9 servos but I am having difficulty figuring out what is best. I have tried attaching a 9V battery to the power and ground lines of the servos and it hasn't quite supplied enough, only making them move a little when i get closer to the distance sensor, then jittering about a bit before completely stopping. I have got a Switching Power Supply plug that has an output of 12V which I can use and plug directly into the Arduino? I also have voltage regulators that have an output of 5V available. Could somebody recommend how to wire these supplies up for the servos? Any help would be much appreciated!  Thanks

Topic by j_olo   |  last reply


Sonic data transmission?

This is just an idle thought, but I was reading a couple of ROV builds, and the one thing they all have in common is a tether - it's a fact of the world that very little in the way of radio signal can penetrate water. So... Could you send control signals to an ROV via sound or ultrasound?  Could beeps and clicks carry enough data, far enough, and clearly enough, to control an ROV? Even more fun, how much data could come back? Sensor readings? Images? Just throwing it out there for you to toy with, but it would be fun to have genuinely-remote control for this class of robot.

Topic by Kiteman   |  last reply


Hey everyone. Can I use this to make something like a ping ultrasonic sensor except for ir? Answered

Hey everyone. Can I use this to make something like a ping ultrasonic sensor except for ir? Or somehing like this.

Question by TOCO   |  last reply


Ultrasound 3D positioning

How would you use an array of ultrasonic sensors to determine the 3d position of an ultrasonic transmitter. Basically i want an ultrasound transmitter on my hand that gets picked up on an array of 5 or so receivers that outputs the position via usb.

Topic by redshirtdeath   |  last reply