Questions tagged [arduino-ultra-sonic]

85 questions
0
votes
0 answers

Multiple Ultrasonic Sensor with Raspberry Pİ

I am new in here and in programming. I have problem about multiple ultrasonic sensor using on raspberry pi. I am making an autonomous car (kind of :)). I had one sensor before just for the front I wanted to put two more on the corners and I am…
cs_tun
  • 1
  • 1
0
votes
1 answer

Trying to get OLED to display input from ultrasonic range sensor using Arduino Nano

I am having a hard time getting the input from an ultrasonic range finder to display the distance on an Oled display. I am using an Arduino Nano. I can get the display to print Hello World while I can view on the Arduino IDE serial monitor all of…
BoatingPuppy
  • 31
  • 1
  • 5
0
votes
1 answer

callback error, when trying to call a function in NodeJs

I am trying to control a raspberry pi through web socket. I found a similar project and have been building my project around it. I have managed to get everything except a distance sensor working. tank.getDistance = function () { async.parallel([ …
sakib11
  • 496
  • 1
  • 5
  • 20
0
votes
1 answer

how to calculate the speed of an object using an ultrasonic sensor

I am working on a project in which I want to calculate the speed of a toy car using an ultrasonic sensor by measuring the distance and once it reaches the end. We see the time that has passed from when the programme has started. However I have…
0
votes
0 answers

US100 Ultrasonic Distance sensor with raspberry pi model 3

I'm trying to configure US100 ultrasonic distance sensor on my raspberry pi device. I'd follow the approach described in this link but not getting any output from the device. I'm sharing my code too so that if anyone can find what I'm doing wrong in…
Apoorv Mishra
  • 1,489
  • 1
  • 8
  • 12
0
votes
0 answers

Interpret read PWM value in Scilab[XCOS]

I have trying to connect an ultrasonic sensor in scilab and I'am utilizing the Arduino toolbox for it. Unfortunately I cannot connect the ultrasonic sensor directly to scilab unlike the temperature sensor that outputs voltage depending on the…
user10865637
0
votes
2 answers

Error Compiling for board NodeMCU 1.0 (ESP-12 Module)

I have an issue connecting my NodeMCU v3 to the Arduino IDE. I have done the same code with the Arduino UNO (without the firebase part) connected to the ultrasonic sensor and there was no issue, but when trying to connect the NodeMCU v3 to the…
Cswanxx
  • 11
  • 1
  • 5
0
votes
1 answer

C program for HC-SR04 ultrasonic sensor is not showing the correct distance

I have a raspberry Pi Zero with the AlphaBot2 which has the HC-SR04 ultrasonic sensor. The implementation using Python works well. I want to implement in C because I need to bind it with another program also in C and for optimization reasons. The…
Felipe
  • 7,013
  • 8
  • 44
  • 102
0
votes
1 answer

How to resolve exit status 1 error in arduino UNO?

I want to find the obstacles using ultra sonic sensor. I am getting a compiling code error that I cannot figure out how to solve. Can any one please help to find what i am doing wrong ?? This is my code:
Nithya
  • 1,029
  • 2
  • 14
  • 27
0
votes
1 answer

Arduino giving me very strange errors on ultrasonic and temperature/humidity sensor

I just don't know how to describe this. It was working, but then I changed the value of distance = duration*0.034/2;. I then changed it back but it still gave me these errors. Is it the Arduino? (Bluno nano) Is it the code? const int trigPin =…
mudbed
  • 11
  • 2
0
votes
1 answer

Arduino Ultrasonic Sensor pulseIn is only 3 or 4

What I am trying to do is to read the value pulseIn(ECHO, HIGH), so that I eventually can convert it to centimeters, so I know how far the ultrasonic sensor is from an object. However when I read the value printed in the Serial Monitor it is only 3…
0
votes
2 answers

Issue with Arduino code running Motors with H Bridge and Arduino according to the written code

So i have an issue in which when I run my code with my ultrasonic sensors, and h bridge with motors one motor spins at all times and the other spins every 6 seconds for 2 seconds but i don't know why. Any help? Here is the code: int in1 = 2; int in2…
0
votes
2 answers

Raspberry pi servo and ultrasonic sensors jitter

I would like to know if someone else experienced the same problem with their servo motor combined with ultrasonic sensors on a Raspberry Pi (I own a 3B). Essentially, I have mounted two ultrasonic sensors (HC-SR04) with 180° apart from each other on…
Jibreel
  • 11
  • 6
0
votes
1 answer

how to get the hcsr04 ultrasonic sensor distance on desktop via php

I want to get the distance from the HC-Sr04 ultrasonic sensor and the color of the led light displayed on my laptop via PHP can anyone please help i am stuck here.. Thanks in advance My php code.. Control Page

"; $port =…

0
votes
1 answer

On and Off Button on Arduino

I'm back with another non-homework related question. I'm playing with an arduino with my brother, and we're trying to attach a button so that when its pressed, his sensor stays on and does what it has to do. When its pressed again it'll do nothing…
ZanesFUNNY
  • 21
  • 4