Questions tagged [arduino-ultra-sonic]

85 questions
1
vote
1 answer

Arduino Uno + servo motor (SG-90) + ultrasonic sensor(HC-S04) detects an obstacle

I'm a newbie to Arduino. The goal is to write a program that can stop a hypothetical conveyor belt (read a servo motor) if too many objects are stacked on a belt, that is detected by HC-S04 sensor. If the the distance exceeds the minimum threshold…
1
vote
1 answer

How to get Ultrasonic Sensor to work properly with Arduino Uno?

I have a HC-SR04 Ultrasonic sensor connected to my Arduino Uno. The problem I'm having is when I check the Serial Monitor to see if the sensor is working: it only says "Out of Range" regardless of the distance. I believe I may have the distance…
1
vote
1 answer

How to detect ultrasonic range sensor is out of range or not?

I am using jsn-srf04t ranging sensor (25cm to 5m range) I want to know when it is going out of range(when under 25cm) The problem is when it goes under 25 cm, the sensor output sometimes goes to (90cm to 95cm or 100cm to 120cm) and this cause…
Sadra
  • 2,480
  • 2
  • 20
  • 32
1
vote
2 answers

How to calculate frequency level from audio recorder mic input data

I am doing sound analyzer application in android.I can generate 18 khz to 20 khz ultrasonic sound using AudioTrack Api.i can record audio using AudioRecord Api.But i don't know how to calculate frequency form mic input data.i saw multiple question…
1
vote
1 answer

Sending Int via VirtualWire (433MHz)

Transmitting Device: Arduino Micro with 433Mhz Transmitter via VirtualWire and an Ultra Sonic Sensor. Both Connected to 5V and Ground as well as: Ultra Sonic Sensor: Trigger Pin: 11 Echo Pin: 12 433 Transmitter: Transmitter: 11 my code so far using…
Peter S
  • 625
  • 1
  • 9
  • 32
1
vote
0 answers

Arduino avoidance robot randomly stops and scans

Hello i've built a arduino avoidance robot, the problem is that it sometimes constantly tries to watchsurrounding(); while there isn't even something near him, and i don't mean that it scans at a meter while watchsurrounding(); should only triggered…
1
vote
1 answer

Arduino HC-SR04 NewPing Code Not Working

I was getting to know this ultrasonic detector with a simple code. All I was looking for was an output (my LED) to light up whenever the detector sensed an object within so many centimetres. However the LED remains lit and the serial monitor just…
SirBuncey
  • 67
  • 1
  • 2
  • 9
1
vote
2 answers

Galileo and ultrasonic error when distance less than 4cm

Below is the code i ran on the Intel Galileo Gen2. I'm just wondering why when the object come really close to the ultrasonic sensor the program stops and complain about that the variable sig "local variable 'sig' referenced before…
Jedani
  • 83
  • 1
  • 2
  • 9
0
votes
0 answers

Ultrasonic sensor code not working with remaining components

ultrasonic sensor in code not working the code is supposed to be if correct password enterd door(servo) will open and led on and sensor will detect the person passing through door. until no one is detected by sensor door will close and led will turn…
0
votes
0 answers

Troubleshooting/understanding RCWL-1601 Ultrasonic sensor on a Raspberry Pi Pico

I am using an RCWL-1601 Ultrasonic sensor, ran off of a Raspberry Pi Pico. According to Adafruit, the sensor is equivalent to the more popular HC-SR04 Ultrasonic sensor. I am trying to use the sensor to measure distance. The output is currently…
0
votes
0 answers

How to incorporate previous code in Processing IDE to Arduino IDE to display radar in a tft-lcd display?

Help me please. This is an arduino uno radar project using servo motor, ultrasonic sensor, piezo buzzer and a tft display. I hope to use a 2.8in st7789 tft-lcd to display the movement of the radar and the detected objects. I can't seem to make it…
0
votes
3 answers

Using Arduino Ultrasonic Sensor with Pyfirmata

I'm trying to use pyfirmata to use an Arduino Ultrasonic sensor. I used Arduino Uno board and HC-SR04 Ultrasonic sensor. Here is the code I'm using. The code ran smoothly, it's just that it seems the echo pin failed to get an impulse from the…
0
votes
2 answers

How to make a variable with the inputs of 3 ultrasonic sensors with a raspberry pi and an Arduino?

I am using Arduino Uno that has 3 ultrasonic sensors and I have successfully gotten my raspberry pi to print out those values, but I don't know how to make those into into variables. Here is the Arduino Code void setup() { …
0
votes
1 answer

Pulsein() function blocks other tasks from running silmultaneously

I am using a zumo bot with a reflectance sensor used to follow a black line. I want to use an arduino to make the zumo bot stop once it gets a certain distance from an obstacle. I have an ultrasonic sensor (HC-SR04) which ive connected to the…
0
votes
0 answers

Ultrasonic sensor which can access raw echo signal

I want to conduct an experiment which needs cheap Waterproof Ultrasonic sensor with the ability of accessing raw echo signal. However, perhaps I can't find such product in the market. Currently, the sensor like JSN-SR04T is very popular, but it can…
Lixing He
  • 1
  • 1