MarioBartolome / GII_0_17.02_SNSI

This is Mario Bartolome's Final Year Project for Computer Science BS.
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Gather information about Distance Sensors #6

Closed MarioBartolome closed 6 years ago

MarioBartolome commented 6 years ago

The quadcopter is going to need environment distance measurements. Therefore, we need to gather information, and get some distance sensors.

MarioBartolome commented 6 years ago

I had a look to Ultrasonic distance Sensor HC-SR04, it seems the best choice for under 4m distances.

MarioBartolome commented 6 years ago

Just bought a bunch of super cheap HC-SR04... hope they all work 😄

MarioBartolome commented 6 years ago

I successfully tested the five HC-SR04 Ultrasonic sensors, and I'm happy to say they're all working fine in a 4-380cm with a very slight deviation. For the task I made use of the NewPing library as it allows to measure distances in a non-blocking way (pulseIn is easier, but blocking), and an Arduino Mega 2560R3 Board.