Precise distance measurement using ultrasonic sensor (HC-SR04) and Arduino
- Estado: Pending
- Prêmio: $20
- Inscrições Recebidas: 6
Síntese do concurso
Measure the distance using the ultrasonic distance sensor after a trigger signal. Send the result through the serial port (Baudrate: 115200, 8 databit, No parity, 1 stopbit) within 200[ms] (so the result must arrive within 200[ms] after the trigger), each result must arrive in a new line. The result must arrive as string rounded to 2 decimal places.
If the result do not arrive in 200[ms] after the trigger then a 0 will be recorded in its place. All the provided sensors can be used. The trigger signal is a high-low-high transition with 10[ms] low time.
How to participate:
Send the hex file of your code to us: ingaelearn (at) [login to view URL] or share your link in the description of your submission. You can send maximum 3 submissions per user (3 HEX files). You have to select your final submission.
An object will be set to different distances from the distance sensor, the output of your code will be recorded. We will test each HEX once during the submission period and once after closing the submission period with a slightly different measurement setup.
The score will be calculated with the Mean Squared Error using the ground truth, the lower the better.
The participant with the lowest Mean Squared Error result will be in the first place. In this case you have to share your source code with us to win the prize.
The hardware setup:
Name Type Pin configuration
Arduino Uno Rev. 3 SERIAL RX: PIN0
SERIAL TX: PIN1
Temp. & hum. sensor DHT11 SIGNAL: PIN2
Distance sensor HC-SR04 TRIG: PIN13