Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 31105

For questions about the HC-SR04 ultrasonic ranging sensor.

1 vote

Ultrasonic HC-SR04 echo and trig pins

You can connect them to two GPIO pins. It does not matter much which ones (probably between 2 and 12 since these are not used by other functions like the builtin led or RX/TX). In the following examp …
Michel Keijzers's user avatar
1 vote

Connecting multiple ultrasonic sensors(hc-sr04) to a single arduino board.(mega)

This is NOT an answer to the question, but I did some (major) refactoring which make it much more clear what is happening. I think you made some mistake within the (refactored) method Sensor::UpdateSt …
Michel Keijzers's user avatar
1 vote

Strange discrete errors when reading HC-SR04 sonar sensor

I think it's from the HC-SR04... it uses echos and it seems your bad readings are some kind of echo reflections. What you should do is either remove the bad readings, or take the average/most common …
Michel Keijzers's user avatar