IR distance sensor?

Hi, im looking for a way to detect distance (around 4 feets) using IR. basically a person will carry the IR transmitter and walk around until he comes across an IR receiver. the receiver is connected to a buzzer  where the buzzer will emit louder sound as the user getting near to the receiver.  can this be done by using ir transmitter and receiver led? any other better suggestion is welcome thank you for your reply 

Question by bhan1992   |  last reply


Distance sensor for Arduino?

I want to make a sort of self-educating machine as a programming project: there is an electromagnet and a magnetic thing and if the distance between  the magnets has increased between two measurements the Arduino lowers the current through the magnet, and if had fallen (the distance, not the object) it ircreases... In some time it should be able to reduce the aplitude of the object's oscillations. Is there a good and easy way to make a non-contact distance sensor? AND Is it possible at all????

Question by gruffalo child   |  last reply


Motion sensor distance? Answered

What is a motion sensor detection range? (I need 500'+) aware that it is less so my question becomes how or can I extend its minimum to the range I need or farther which would be best for my need(s) I was thinking adding a magnifying lens? is that plausible? / is there other thechnology that could be used to detect an animal in your yard or path while hiking in dangerous trails

Question by colois   |  last reply


How to measure the distance using laser

Hi everyone, so I would like to measure distance up to 12m using Laser ..the question is how to do so ? I want to make a simple sensor that can do the job.I know that for that i would need a reflector and the basic D=V*tso the problem is how to get the "t" !?

Topic by AbdChahidS   |  last reply


Determine the distance between a magnet and a hall effect sensor?

Hi guys, As the title say, I am looking for a way to determine / measure the distance between the magnet and the hall effect sensor. What I want to archive is that the trigger (or the switch to LED) only activate if the magnet within ~0.5 cm - 0.3 cm . Any more than that, it wont do anything. My code right now light up the led whenever it detect if the magnetic field but the distance is way too large ( about 3-4cm ). So anything to reduce that down to 0.5 would be the best.  Please throw in any suggestion, recommendation , sample code or solution if you have. I am much appreciated .  Thank you EDIT 1:  I want to used arduino for this prototype.           the sensor that I am using is this  http://www.littelfuse.com/~/media/electronics/datasheets/hall_effect_sensors/littelfuse_hall_effect_sensors_55100_datasheet.pdf.pdf A little bit more info on what I am working on is that I mount the magnet to a wheel that rotate about 200-500rpm. and whenever the sensor pick up the magnetic field, it light up LED. but since it rotate, it tend to pick up the magnetic field instead at 1 location, it pick up in an arc. So that why I want to narrow down the range of the sensor UPDATE: NEW QUESTION WITH MORE CLARIFICATION https://www.instructables.com/answers/Create-standstill-effect-with-LED-from-hall-effect/

Question by Jack Vu   |  last reply


measure distance with raspberry pi?

How should i measure 10 meter distance very accurately with raspberry pi ?  if anyone knows any sensor that can measure distance of 10 meter accurately please tell me then i will manage ? thank you.

Question by dharmik123456   |  last reply


Sub-mm precision ultrasonic or inductive distance sensor for use with Raspberry Pi?

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!

Question by lasercycle   |  last reply


Make the ping distance match the pot distance?

Hi I have a Personal Fan that is working.  But, I am trying to change the ping distance to operate a rely. Trying to get the Ping distance to track a pot input so the distance the fan will come on can be changed by the pot. In the serial monitor the pot input will change from 0 to 1024. I was not able to get the ping distance to read out and how to make the Distance value track to the input pot? Thanks to anybody that could look at this ad steer me in the write direction.  #include "Ultrasonic.h" int RELAY = 9;  // RELAY Pin. Ultrasonic sensor1(11,10); // Ultrasonic(int TP, int EP); //int TRIG = 11; // Trigger Pin //int ECHO = 10; // Echo Pin int Range; // The range of the object from Ping Sensor int Dist; // The Distance value int POTPIN = A1; //#declare relayState; int  relayState; //int distPot; distControl; //#declare distPot; int distPot; //#declare distControl; int distControl; long cm; //distance min and max const int minDistance = 2;  //dist in CM dont go below 2 const int maxDistance = 200;  //dist in CM //Ultrasonic ultrasonic(TRIG,ECHO); // Create and initialize the Ultrasonic object. void setup() {   pinMode(RELAY, OUTPUT); //To the relay via the transistor   //Dist = 15; //The distance in inches. Change this for increasted or dicreasted range. Dist = map(Dist,0, 5, 1, 1023); Serial.begin(9600); } void loop(){   //Range = ultrasonic.Ranging(CM); // Range is calculated in Centimeters. Dist = analogRead(POTPIN);   // check the distance pot   distPot = analogRead(Dist);   //distControl = map(distPot,0,1024,minDistance,maxDistance);   distControl = constrain(RELAY,0,255);   if(relayState){     Dist  = distControl.Ranging(CM);     digitalWrite(RELAY,HIGH);   }      else{      digitalWrite(RELAY,LOW);   }    // RELAY = map(cm,distControl,minDistance); //variable map formula relationship     RELAY = constrain(RELAY, 0, 255); //int i = analogRead(POTPIN); // if (i == Dist)digitalWrite(RELAY,HIGH); // else digitalWrite(RELAY,LOW);   //Range = ultrasonic.Ranging(INC); // Range is calculated in Inches.     //if (Range < Dist) {     //digitalWrite(RELAY, HIGH);     //} else if (Range > Dist)      //digitalWrite(RELAY, LOW);      //delay(90);   Serial.print(Dist); Serial.println("inch"); delay(100); //Serial.print(sensor1);   Serial.print(distControl); //Serial.println("POTPIN"); delay(100); }

Question by WWC   |  last reply


Create standstill effect with LED from hall effect sensor ?

Hi everyone, A little bit info of what I'm working on. I am trying to create a standstill effect of the spokes of the car rim. I attached a hall effect sensor and a magnet to inside of the rim . I have tried 2 different approaches : ( code for each method are also attached)              1. use the hall effect sensor to determine the RPM of the rim and then flash the led accordingly to the spokes on the rim. The problem with this approach is that the led flash quite dim and and the spoke image rift.  I cant find the right windows for flashing LED.               2. use the the hall effect sensor to detect any magnetic field and then flash whenever it is detected. This method is quite simple but the effect is blurry. The problem for this is that the magnet detection happen on the arc of the rim instead of at 1 pin point location. Hence the led is on for too long --> blurry effect. I also attache some diagram to explain my problem in case I didn't do well with words.  Do you have any suggestion, solution or comment on the approaches or the code. Please feel free to throw in. Im all ear.  Code:  Method 1: Calculating RPM then flash led : http://txt.do/5b9is I am leaning toward this method but the effect is rifting. Not entirely sure how to fix it or what could possibly cause it.  to clarify: the rifting effect happen when i use 2 magnets on the rim. with only 1 magnet, it still rift but the led very dim, almost unnoticeable.  Method 2:  Image for the 2nd approach in case the pictures didnt show on instructables the front : http://imgur.com/HwFm1lT the back : http://imgur.com/1DvWjZK the side : http://imgur.com/RHZIbfR The problem : http://imgur.com/RHZIbfR flashing LED whenever sensor detect the magnet: http://txt.do/5b9b7

Question by Jack Vu   |  last reply


How to guide a vehicles with two infrared sensors?

I have a robotics project where I need to guide a few robots to specific circles that are at a random distances. On the day it is due I will be given the distance to the middle of the circle and can adjust what ever guidance system I have. There is a budget cap on the project so i would like to use just one or two controlling things for every robot. Now what I was thinking was to set up some sort of IR beacon in the starting square. If I placed two beacons, one at each corner or the square (each circle is a certain distance from each side of the square) I could have an arduino to remotely control them. I hope that makes sense so if you have any ideas or questions that would welcome both. Thanks in advance, Zootsuitman

Question by zootsuitman   |  last reply


Pin-Pressions/ Rotation Sensor

I'm trying to build a sensitive pinpression device: one that can see 3d digital images. The device would be able to read, record and organize the depth of each pin. I think the first problem to overcome is figuring out a cheap way to measure pin depth. I think it will be best to do this with rotation sensors. Does anyone know how to build or where to buy cheap rotation sensors?

Topic by yes   |  last reply


Medium-range proximity sensor, aka, super Hall Effect sensor

Hi, I need a sensor to use with an Arduino. I've been thinking and researching for months, but I still haven't been able to come up with something feasible and good. Basically, I want a sensor that can measure its distance to a specific object. Id est, object A knows it's distance to object B; not to any other object, like the surrounding environment, ONLY the distance to object B. The sensor should be able to measure the space around it, ie, the sensor measures distance not linearly - like an IR sensor or an ultra-sonic sensor - but spherically. I think Hall Effect sensors can do that. The problem is: I want distances ranging from 10cm - 1m (4 - 40 inches) and a Hall Effect sensor can't do that, right? And very strong magnets and Arduinos don't really go well together... So.. what can I use to do this? Thanks a lot! :)

Question by pedrotome   |  last reply


Proximity Sensor 1' - 25'; Bat Ears for a Blind Woman

First of all, I'm a noob in electronics, so please explain your jargon as you would to a 3 year old. I am smart & learn quickly. So, I really want to make my blind 80 year-old grandmother a pair of bat ears. I bought her one of those sonic distance measureres from home-depot because of the barely audible tic they send out to bounce off wall/etc and record the time it takes the signal to return. You can hear the tic, and with your eyes closed.. you can kinda tell how far things are away from you just by listening. She loves it, and it just barely.. kinda works. What I"m shooting for is a single over-ear headphone (xbox-live communicator style) with some type of proximity sensor attached, sending a constant signal to the headphone... low for long distances, gradually higher for gradually closer distances. Any reasonable suggestions would be greatly appreciated.

Topic by wiglessbuzzard   |  last reply


<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


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 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 and proper proximity sensor

Hi guys. I want to use a proximity sensor and an arduino to know when a person is in the shower. What I have in mind if that if the sensor measures a range of distance it would mean that the person is in the shower. I have made some research and the infrared Sharp GP2Y0A21YK0F seems appropriate for the distance range I need that is around 20-60 cm depending on the size of the shower. However I am ignorant in this topic and I want to know if the water from the shower will make an interference when measuring the distance and generally speaking if this is a suitable sensor for my objective. additionally I read that the voltage output from this type of sensor is not linear, would it be difficult to actually know the distance? Many thanks in advance :)

Topic by mcamiea 


Long distance proximity detector

Hello.  Does anybody have any idea on how to make a very cheap proximity sensor, which could work over a distance of about 100 metres? I want to make a system where LEDs (carried by people!) change colour as they approach a certain point, i.e, white LEDs turn red as they move towards a central point. The problem is I want to have 50+ separate LEDs, and I'm on a very tight budget! Any ideas appreciated. Thanks!

Topic by megbrazil   |  last reply


Leonardo - Warning System + Voice Recognition

I designed and built a warning system, using 3 sensors, that detect when an object is approaching. The system also has a toggle switch and a buzzer. When the toggle switch is in the OFF position: If there are no objects nearby the LED turns GREEN, if either sensor 1 or 3 detect an object the LED turns YELLOW and finally if the object is between sensors 1 and 2 or 2 and 3 the LED turns RED. When the toggle switch is in the ON position:  Same as OFF position + buzzer  beeping depending on color of LED. Now I would like to add voice recognition to my system. I purchased a JY-MCU Bluetooth Wireless Serial Port Module and was able to test it using a simple program that changed the color of my LED depending on the command I gave it using my phone. My problem now is that whenever I tried to add the voice recognition capability to my warning system its not working. The code I'm using makes sense but I'm new at this so I might be missing something. I'll be posting 3 codes: 1)Warning System 2)Test for Voice Recognition 3) Current non-working code.

Topic by c_MOS   |  last reply


How to measure the distance up to 200m (with arduino)??? Answered

Hi ... how would you measure the distance up to 200m using the arduino ??? 1. What would you use ??? 2. Is it possible to modify the PING))) sensor to be able to measure such distance ??? 3. Do you think, that this radar kit www.hobbytron.com/r-sg7.html could me modified to do the job ??? There is a 'pdf' file for more information. 4. Or would you use laser - how ??? Thank you in advance for you answers/suggestions. zholy

Question by zholy   |  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


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


Selection of presence sensor

Hi guys. For one of my university projects I need to detect the presence of a person in the shower. In order to do that what I have in mind is use a proximity sensor. If the target is in a distance range (let's say 20 to 50 cm) It will assume that the person is in the shower when the distance measure is no longer in this range then it will mean that the person left the shower. I need to detect all the time of the person in the shower (meaning when he/she gets in and then out). I have read a lot of info and forums to properly choose the type of sensor. However I still don't have a clear answer. About the Ultrasonic proximity sensors I know that they are cheap and more accurate by it can be affected by Temperature, humidity and some ambient noise, all of them which happen in a shower. The other option an Infrared one gets affected by lightning conditions and the surface of the target. The last option I checked is a PIR sensor I know it senses Temperature of the target, but I don't know if it will be affected by the running hot water and also is more expensive. In general, I don't know how the running hot water will affect the detection of the person in shower. Also,so again I don't know how this will work. Sorry for the huge amount of  questions, I am a little bit confuse with all the factors to have in mind. I am hoping someone out there can help a lost newbie like me and give me a suggestion. Thanks a lot :)

Topic by mcamiea   |  last reply


Variable 3D Proximity/Distance Sensor With Feelings : what to and how to

Greetings, I would like to know if there is a simple way to create a Variable 3D Proximity/Distance Sensor. When you think about "Proximity Sensor" you think about "Infrared", but IR proximity sensors only ''scan" a straight line and not a whole spheric space, so that is not the answer. Detail 1: 3-dimensionality Imagine this: We have object A and object B. Object A has the sensor. Object A would sense object B's distance to itself (A) regardless of the relative position between the two objects - it wouldn't matter if B was in front of A, if it was on top of A, if it was behind A, etc. Detail 2: Variability The sensor would sense a variable proximity/distance. It would know if the two objects were 1cm apart, π cm apart, 12cm apart, 50cm apart, etc. Detail 3: Feelings :3 (Oh, Teh Loev) Imagine again objects A and B. Object A would only sense Object B's distance to itself. Not it's distance to a table, nor a wall nor your cat. Like if only Object A and Object B existed. Here's the catch: both objects would have the sensor and they would sense eachother (again, not anything else), so I can't use 'things' that would interfere with eachother (like, I don't know, isn't there something like the adding of sound waves[read phrase bellow]? I'm only a high-school student...). I thought about using sound waves (because they spread 3-dimensionally), but I don't know how I could implement that... Outcome This is an example of what the sensors could be used to after having the sensors built and the code written: 1: Object A senses B. Object B senses A. 2: If B is 50cm apart from self (A), light LED1. If A is 50cm apart from self (B), light LED1. 3: If B is 20cm apart from self (A), light LED2. If A is 20cm apart from self (B), light LED2. 4: If B is 5cm apart from selft (A), light LED3. If A is 5cm apart from self (B), light LED3. As you can see, in this example both objects would do exactly the same... Sooo.... How can I make such a PAIR of sensors that wouldn't interfere with eachother? P.S.: I'm talking about making a circuit of my own or buying a sensor and implementing it in an external circuit of my own or whatever... Thanks a lot.

Question by pedrotome   |  last reply


What sensor should I use to sense the distance of an unknown object? Answered

Hello, I'm trying to put together a project for the first time with an arduino uno board. The aim of my project is to sense the distance/position/proximity of ANY object away from my sensor (board). Ideally, I want a system that is able to give good reading if the system is operating out-doors. The entire system is housed inside a box with only the power line coming out of it. The cost of the system should be cheap enough for a small, hobby project. The range of the sensor should be about 2cm to 3m. I've looked at IR, ultrasound, and hall-effect sensors. They're not really what I need because 1. IR sensor doesn't work well out-doors 2. Ultrasound sensor has to be exposed outside of a container to send out the sound waves. 3. Hall-effect sensor needs the object being detected to have a magnet attached to it. So are there other options I can go with?? A different kind of magnetic sensor where if the magnetic field it produced was disrupted by an unknown object, the sensor can give me back a distance reading of that object?

Question by petergeng28   |  last reply


Distance between two electronic systems sensor for the Arduino

Hello. I've been thinking about this for months and haven't figured out how to do it... Don't be frightened by the wall of text, it's a VERY entertaining read! You'll fall down laughing! ______________ The basics: Imagine two systems: A and B. Both A and B use the Arduino as their "heart". I want A and B to know, at all times, the distance between them. The distance is 3-dimensional, ie, it doesn't matter if A is in front of B, if A is on top of B, etc. The distance ranges from about 10cm to 2m. It's not that strict, though. Something around that... The final project (which is not the sensor; the sensor is just a piece of it, just like the Arduino or an LED or a resistor) is a gift, so it has to be 'good-looking'. Because of that, the sensor has to be as inconspicuous as possible. Problem 1: Linear solutions can't be used, like Infrared LEDs or Ultrasonds. Besides being too linear (which makes sensing in 3 dimensions too hard and expensive because of the use of arrays of LEDs or sound generators), the only way (that I came up with) they could be used is this (because it can't be based on reflections): 1- A emits signal (IR modulation or Ultrasonic frequence) and starts timer (microcontroller function). 2- B receives signal. B waits 2 milliseconds. B emits signal (different from the signal emitted by A, so they don't get messed up). 3- A receives signal and stops the timer. A then calculates the distance through a simple formula. That's how A would know the distance between itself and B. B would do exactly the same thing to know the distance between itself and A, but with signals different from those used by A (so they wouldn't get messed up). This is infeasible because: Using IR, every millisecond (the smallest unit of time a general microcontroller can measure) is equivalent to 30,000,000cm (or 300,000km or 186,400 miles). Using sound, every millisecond is equivalent to 34cm (or 13.4 inches). With such a short distance range (10cm to 2m), 34cm is too much, which makes the sensor incredibly inaccurate. Problem 2: Using the sensor with the Arduino The sensor would have to output something to let the Arduino know the distance so that I could then do stuff like: If distance is between 0 and 20cm, do this. If distance is between 21 and 50cm, do that. If distance is 51 and 200cm, do that. Else do nothing. etc. :) Problem 3: It has to be simple (and cheap) I'm no programmer nor do I know a lot about electronics. I'm a simple hobbyist with the dream to finish this project, so it can't be overly complex. :) So, after reading this wall of text, what do you think I could use? Do you know any wireless technology that lets me do this? Oh, sorry about claiming it would be a fun read.. It was the only way I found to make you ACTUALLY read this. :p THANK YOU! :D

Question by pedrotome   |  last reply


Audio frequency and signal strength sensor: is there such thing?

Hi, I'd like to know if there's a sensor easily used with an Arduino that detects the signal strength of a sound of frequency determined by me. I want this to make a sensor that can be used to measure its distance to the emitting object omni-directionally, ie, not like ultrasonic or IR distance sensors, which only sense what's in front of them. I want the sensor to sense the SPACE AROUND it, like... spherically. If you know of a sensor that does that in another way, I'd LOVE to hear about it. I've been searching for something like that for a long time... Anyway, I just need a sensor - cheap, preferably :) - that senses the signal strength of a wave of frequency x. By the way, the distance range to be measured is about 10 - 150cm... Thanks!

Question by pedrotome   |  last reply


I need some help with a bit of Arduino Code

I need some help with a little bit of Arduino code. I need an IR distance sensor to check if something is in the way of its beam and if so, I want the led on pin 13 to light up for a few seconds. If anyone can help it would be really appreciated. ALSO, here is the code I have been using: int IRpin = 1;                                   boolean doDelay=0; void setup() {   Serial.begin(9600);                             } void loop() {   float volts = analogRead(IRpin)*0.0048828125;     float distance = 65*pow(volts, -1.10);            Serial.println(distance);                         delay(100);                                       if (distance<=60) {     digitalWrite(13,HIGH);   } else {     digitalWrite(13,LOW);   } } Whenever something is in the way of the IR distance sensor, the LED lights up but it is so dim I can barely see it. Anyone got any ideas as to what it could be?

Topic by Robot Lover   |  last reply


how to connect a sensor to act as a potentiometer?

 I deed to connect distance measuring sensors with my keyboards potentiometers so they become midi volume controls

Question by nikaki   |  last reply


I want to be able to sense the distance to a car driving in front of me, what kind of sensor would be best?

I am trying to modify my cruise control with an arduino clone, and want to find a sensor which will give me the ability to sense the distance between my car and one directly in front of me. This will help me to let the arduino control the cruise control to adjust the speed to keep a safe distance without manually adjusting the cruise control. Any suggestions?

Question by kikiclint   |  last reply



When using a sharp ir distance sensor (analog), with arduino, can I use the same code as if I was using a potentiometer? Answered

With Arduino, can I use the sharp ir sensor (analog) with the same code as a potentiometer? If not could somebody give me a code example?

Question by porkisgreat   |  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


IR receiver and output over short distance

  I want to set up a short distant IR sensor(<1"). I just want it to register when something is between the two items. Its a pretty simple circuit I just have no experience with optical receivers. Any help would be greatly appreciated, thanks  

Topic by stino66   |  last reply


Help me design a colour sensor?

The sensor that can distinguish the basic colors(Red, Green and Blue) at a distance of a 15cm.The target objects being 50cm x 50cm. To output either 0V or 5V.  Regards

Question by Kirop   |  last reply


Sharp Ir sensor 4cm to 30cm

Could anyone explain the code given in your example specifically the calculations.volts = analogRead(IR)*0.0048828125; // (5/1024) int distance = 13*pow(volts,-1);

Question by rivendeldc 



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



Short range battery operated 2 part (door alarm type) distance sensor.

Hello all! I'm looking to design a range compact distance sensor that will sense 1-4 ft increments. If necessary i could modify a door alarm. id like to fab one or multiple if need be to sense the distances noted. I could utilize a buzzer or some way to record a voice that would alert to said distance. The battery voltage max is 4.2v dc and if it could be rechargeable that would be a plus. Any help on this would be greatly appreciated. Thanks!

Topic by Automan350   |  last reply


Suggestions for a sensitive, hall effect sensor to be used with an arduino?

I'd like to find the an inexpensive, highly sensitive hall effect sensor.  One that could possible sense a strong magnet from several inches away or within someone's hand if they were holding a strong magnet in their closed fist. I am looking for a non-latching sensor that would trigger when a magnet is in the neighborhood - say at least 6".  So the range and shape of the field of detection is important. Imagine that we're playing a game of "which hand is the strong rare-earth magnet in?"  I have a small hall-effect sensor hidden on my palm.  What type of non-latching hall effect sensor would pick up the field through the hand from a distance of about 6 inches or more?

Question by konjurer   |  last reply


Motion sensor and dimmer for LED strip 24V DC

Hi I am designing a table lamp using LED strip with 24V DC. I want to use a motion sensor with distance range maximum 20cm and 24V DC. Here is a link that explains what I am looking for. Any one who can custom made this type of sensor?RegardsMehranhttps://f2rq3.app.goo.gl?link=https://app.alibaba....

Topic by ManiA2   |  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


what LED to use?

Hi there, What kind of LED can I use to activate a phototransistor based switch for a (3 - 5) merters distance ? The phototransistor will be placed in a (2-3) cm long black tube, the whole thing could be installed indoors (shower) or  outdoors (beach). Also, should I worry about the steam blocking the light in the shower? Thanks!

Question by Control80   |  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


Anyone familiar with EZ robot bluetooth controller?

I have the EZ-B (controller) and am attempting to recreate the distance sensor tutorial however, unlike the sensor in the tutorial, my ping sensor only has three pins, ground, 5v and SIG how do i use it with the ez-b?

Question by rptech   |  last reply


How to generate a beep sound in a watch ? Answered

I'm working on an electronic design project : Smart Watch  this watch worn  by clients suffering  from early stages of Alzheimer disease  will play a role so that it guides the patient back to his/her house . We pre-defined a distance boundary that the client will not exceed (speedometer). I want to know if there is a device (sensor) that should be integrated in the watch  so that it generates or creates beep sound (or vibrations) once the client crossed or approaches the Limit distance boundary ( something similar to the beep sound in the car system when it approaches an obstacle ). And , if it is possible ,any ideas or hints on how to implement it on the watch ? Thank you in advance , and if you need more information please let me know :)

Question by ClearVision   |  last reply


security system (not responding after combining ultrasonic sensor code and esp8266 code )

The base of this project is https://www.instructables.com/id/SIMPLE-ARDUINO-ULTRASONIC-SENSOR-DOOR-ALARM-/ &http;://randomnerdtutorials.com/door-status-monitor-using-the-esp8266/ I changed according to my uses from above links I tryed by dividing into two parts one for ultrasonic sensor and other for esp8266 they worked fine while separating ultrasonic and buzzer are working in (Tools and wifi module is working in onlt(Tools when i mix ultrasonic and buzzer nothing happening) any idea here is the code #include #include #include #include #define USE_SERIAL Serial #define trigPin 9 #define echoPin 10 #define piezoPin 8 ESP8266WiFiMulti WiFiMulti; int normalDistance; boolean triggered = false; long duration, distance; void setup() {   USE_SERIAL.begin(115200);   pinMode(trigPin, OUTPUT);   pinMode(echoPin, INPUT);   pinMode(piezoPin, OUTPUT);   long duration, distance; while (millis() < 5000) {   digitalWrite(piezoPin, HIGH);       digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); distance= duration*0.034/2;         normalDistance = distance;       USE_SERIAL.print("Distance: "); USE_SERIAL.println(distance);         digitalWrite(piezoPin, LOW);    for(uint8_t t = 4; t > 0; t--) {         USE_SERIAL.printf("[SETUP] WAIT %d...\n", t);         USE_SERIAL.flush();         delay(1000); } WiFiMulti.addAP("username", "pass"); } } void loop() { digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); distance= duration*0.034/2; USE_SERIAL.print("Distance: "); USE_SERIAL.println(distance); if (distance < normalDistance-5) {       triggered = true;     }     else {         triggered = false;     }     if (triggered) {     tone(piezoPin, 635);     delay(500);     tone(piezoPin, 912);     delay(250);     if((WiFiMulti.run() == WL_CONNECTED)) {         HTTPClient http;         USE_SERIAL.print("[HTTP] begin...\n");                 http.begin("iftt link.........................."); //HTTP         USE_SERIAL.print("[HTTP] GET...\n");         // start connection and send HTTP header         int httpCode = http.GET();         // httpCode will be negative on error         if(httpCode > 0) {             // HTTP header has been send and Server response header has been handled             USE_SERIAL.printf("[HTTP] GET... code: %d\n", httpCode);             // file found at server             if(httpCode == HTTP_CODE_OK) {                 String payload = http.getString();                 USE_SERIAL.println(payload);             }         } else {             USE_SERIAL.printf("[HTTP] GET... failed, error: %s\n", http.errorToString(httpCode).c_str());         }         http.end();     }     } } any idea about whats going on Thanks Hemanth

Topic by hemanth kumar reddy   |  last reply


High Altitude Balloon: Could you steadily release helium as you gain altitude to prevent bursting?

I have recently been researching privately made High Altitude Balloons. Making something that can travel a third of the way to space while taking pictures and/or measurements sounds like a very cool project. Typically these balloons pop before reaching anywhere near space. While researching I had a small "Eureka!" moment for a potential fix for this issue. It might be possible to take these balloons farther up if you slowly release helium in correlation with altitude. Perhaps by measuring the size of the balloon as it expands upwards and out, and then releasing helium with an electronic valve until it returns to proper size.  I have the nagging feeling however I am not considering everything though. Is there some principle of 'The way things be' that prevents this method from working correctly? Would the lift of helium increase with distance from the earth significantly enough not to drag the craft down when you release helium? Or would the helium loose its effectiveness the thinner the atmosphere became? Any help I can receive in being unflummoxed is greatly appreciated.

Question by TheIronHobo   |  last reply


Arduino capacitive touch sensor help

So I have been messing around with the Arduino Capsense library with the immensely helpful guide; https://www.instructables.com/id/How-To-Use-Touch-Sensors-With-Arduino/  (many thanks to DangerousTim!)   using the code provided, i managed to get a relay to operate with a sensor.  It worked great and I was able to adjust the distance and sensitivity.  But when i tried adding another sensor and relay, it stopped working.  I've been trying to isolate the problem for a while now and have gotten nowhere.  I'm hoping someone can help me, here's the original code for the single sensor and relay; #include #include                                           //change '42' to any desired pin... long time = 0; int state = HIGH; boolean yes; boolean previous = false; int debounce = 200; CapacitiveSensor   cs_4_2 = CapacitiveSensor(4,2);  // To add more sensors... //CapacitiveSensor   cs_4_6 = CapacitiveSensor(4,6);        // 10M resistor between pins 4 & 6, pin 6 is sensor pin, add a wire and or foil //CapacitiveSensor   cs_4_8 = CapacitiveSensor(4,8);        // 10M resistor between pins 4 & 8, pin 8 is sensor pin, add a wire and or foil void setup()                    {    cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);    pinMode(13, OUTPUT);   } void loop()                    {     long total1 =  cs_4_2.capacitiveSensor(30);            if (total1 > 60){yes = true;}     else {yes = false;}            // to toggle the state of state         if(yes == true && previous  == false && millis() - time>debounce){              if(state == LOW){          state = HIGH; }     else state = LOW;     time = millis();     }                     digitalWrite(13, state);            previous = yes;                 delay(10); } and here's the code for the two sensors and relays #include int led = 13;     int led2 = 12;    long time = 0; int state = HIGH; long time2 = 0; int state2 = HIGH; boolean yes; boolean previous = false; boolean yes2; boolean previous2 = false; int debounce = 200; CapacitiveSensor   cs_4_2 = CapacitiveSensor(4,2);        // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired CapacitiveSensor   cs_5_7 = CapacitiveSensor(4,6);        void setup()                    {    cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);    cs_5_7.set_CS_AutocaL_Millis(0xFFFFFFFF);  //Calibrate the sensor...    pinMode(led, OUTPUT);    pinMode(led2, OUTPUT); } void loop()                    {     int total1 =  cs_4_2.capacitiveSensor(30);     Serial.println(total1);     int total2 =  cs_5_7.capacitiveSensor(30);                     if (total1 > 60){yes = true;}     else {yes = false;}    if (total2 > 60){yes2 = true;}     else {yes2 = false;}           // to toggle the state of state     if(yes == true && previous  == false && millis() - time>debounce){                    if(state == LOW){          state = HIGH;        }        else          state = LOW;          time = millis();      }                          if(yes2 == true && previous2  == false && millis() - time2>debounce){                   if(state2 == LOW){          state2 = HIGH;        }        else          state2 = LOW;            time2 = millis();            }                 digitalWrite(led, state);       previous = yes;       digitalWrite(led2, state2);       previous2 = yes2;                  delay(10); } Any suggestions are always helpful.

Topic by dudes   |  last reply