Questions tagged [arduino-ultra-sonic]

85 questions
0
votes
0 answers

Python Multiprocessing Stops after a while

So basically we're using raspberry pi for a project and a part of it includes the usage of ultrasonic sensors. We have three, and we've been able to get readings from all of them (I actually came from multi-threading but decided to move to…
0
votes
1 answer

Arduino HC-SR04 pwm interfere

I have been struggling with arduino and ultrasonic sensor HC-SR04 and PWM. I am using arduino pro mini. Also using NewPing library. the newping library example works perfectly if I have just the sonar attached and I get about 170cm when pointing…
Ou Tsei
  • 470
  • 7
  • 24
0
votes
1 answer

How to apply fft and hanning window function for Digital audio signal

Audio beacon is generating different frequency between 18 khz to 19 khz in DIGITAL(square wave) formate.I'm trying to record all frequency using AudioRecord Api and trying to convert time domain to frequency domain. I refered this link How to get…
0
votes
1 answer

How to apply hanning window function

Audio beacon is generating different frequency between 18 khz to 19 khz.I'm trying to record all frequency using AudioTrack Api.I refered this link How to get frequency from fft result?. I'm getting all data is 0 after apply hanning window…
0
votes
0 answers

Convert Arduino code for ultrasonic sensor to android code to be used with IOIO board

Is it possible to get the ardunio code for the Me Ultrasonic Sensor in android format? The code comes from the manufacturer in arduino format but I need to have it in android to be hooked up to a IOIO board not an arduino. I have no I idea how to go…
0
votes
1 answer

How to control a robot arm using ultrasonic sensor and Arduino

I'm working about arduino and HC_SR04. I searched most of the documents, but they didn't solve our problem. My question is that how to read a value that is taken from library . #define echopin 11 //set echopin #define trigpin 12 //set…
Rahsan Goksu
  • 29
  • 1
  • 7
0
votes
2 answers

Raspberry Pi Ultrasonic Sensor Output Stalls After Several While Loop Iterations

I made this simple robot using LEGO and it uses a Raspberry Pi as the computer. The code I wrote was in Python and basically what it does is use the ultrasonic sensor to to measure distance. Here is the code: import RPi.GPIO as g import time as…
0
votes
2 answers

Boiling water (hacking into Kettle)using Arduino UNO and Ultrasonic sensor and Temperature sensor

I am making this machine thing(using arduino) that uses ultrasonic sensor to detect if you are close to it and then it starts boiling water (i hacked into this kettle for this function, and connected it to a relay), and once the temperature reaches…
rp2402
  • 23
  • 1
  • 3
0
votes
1 answer

Draw image from live arduino sensor data

I want to draw real time graph using data coming from a rotating ultrasonic sensor through arduino. What are the tools or library required for this. I am using official arduino IDE using C language.
0
votes
2 answers

HC SR04 + Arduino Uno lose connection issue

I am using the following devices/components to for distance measurement using ultrasound sensor. 1. Arduino Uno board 2. HC-SR04 ultrasound sensor 3. Breadboard 4. Arduino jumper cables. 5. Sketch : Provided at…
2.8a8a_G
  • 617
  • 1
  • 7
  • 16
0
votes
1 answer

How to capture SR04 echo from another Arduino

I have two Arduinos (A1, A2) and I want to capture the echo of A2 at A1. How can I do it? If I trigger at A1, I receive its own echo. If I do not trigger at A1, SR04 does not work (as I understand), so how can I get A2 triggered echo at A1?
user2800464
  • 113
  • 3
  • 11
0
votes
1 answer

Adb for arduino UNO

i am working on a distance sensing app for android using arduino and ultrasound sensor.I found code that uses Abd for communication between android and arduino. The Abd used is for Arduino mega which has many more ports as compared to arduino Uno.I…
dhiraj uchil
  • 113
  • 10
0
votes
3 answers

Inaccurate results for arduino uno and ultrasonic sensor

Good day, I have the following code for an ultrasonic sensor that I'm using, but the result is not being accurate and I'd like to display the distance from the target in centimetres. #include //Load Liquid Crystal…
0
votes
1 answer

Arduino - Ultrasonic sensor (SR04T) measure only 0

I have a ultrasonic sensor (SR04T) that I have connected to my Arduino. I'm using the TX and RX port at the Arduino UNO. The problem is that it only reads value 0 cm. Could anyone help me find the error? The code I'm using looks like this: const…
anp
  • 47
  • 1
  • 2
  • 12
-1
votes
1 answer

Robot navigation using ultrasound sensor

I'm building a simple robot, using an Arduino Uno, an Arduino Motor Shield, 2 DC motors (this is the part I used https://www.aliexpress.com/item/33026775429.html) and 2 12V batteries. I have got the robot to control 2 motors, but I also want it to…
regular
  • 1
  • 3