Precise distance measurement using ultrasonic sensor (HC-SR04) and Arduino

  • 状态: Closed
  • 奖金: $20
  • 参赛作品已收到: 5

竞赛简介

The challenge:
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) gmail.com 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.

Testing:
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.

Winner:
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.

Prize:
$20

The hardware setup:
Name Type Pin configuration

Arduino Uno Rev. 3 SERIAL RX: PIN0
SERIAL TX: PIN1
TRIGGER: PIN4

Temp. & hum. sensor DHT11 SIGNAL: PIN2

Distance sensor HC-SR04 TRIG: PIN13
ECHO: PIN12

您还可能感兴趣的技能

此竞赛的顶尖作品

查看更多参赛作品

公共说明面板

  • collaborart
    竞赛主办者
    • 4 年 之前

    Thank you for your participation! I see that the description of the contest was not clear and I could not maintain the contest properly. So I decided to wait for the end of the award period where you will get the prize evenly distributed among you.

    • 4 年 之前
  • patrickwagner068
    patrickwagner068
    • 4 年 之前

    What do you mean by "high-low-high" transition ?
    Do you want the signal to be triggered on logic level or signal edge ?
    Should it trigger from high to low or low to high ?

    What do you mean by rounding to 2 decimal places? Which unit ?
    Should the String only contain the number or the unit and elapsed time as well ?

    How do you want exceptions to be handled ?
    The HC-SR04 operates between 2cm and 4m, what should happen, when a result is outside this range ?

    • 4 年 之前
  • tonnyboy
    tonnyboy
    • 4 年 之前

    I have a problem while submiting work please check the link https://www.youtube.com/watch?v=Zux5YFAge1E

    • 4 年 之前
  • Abelk020
    Abelk020
    • 4 年 之前

    Is the wiring connection flexible, i mean can the external trigger pin which gives high low high signal be connected to pin 3.

    • 4 年 之前
  • Abelk020
    Abelk020
    • 4 年 之前

    "If the result do not arrive in 200[ms] after the trigger then a 0 will be recorded in its place." Can you please elaborate.?

    • 4 年 之前
  • i2eng
    i2eng
    • 4 年 之前

    Hello! Do you need the code for the DHT11 too?

    • 4 年 之前
    1. collaborart
      竞赛主办者
      • 4 年 之前

      The DHT11 is only for temperature calibration if you need.

      • 4 年 之前
  • collaborart
    竞赛主办者
    • 4 年 之前

    If you have any questions feel free to ask!

    • 4 年 之前

显示更多评论

如何以竞赛开始

  • 发布您的竞赛

    发起您的竞赛 快速简单

  • 获取众多参赛作品

    获取大量参赛作品 来自世界各地

  • 悬赏最佳参赛作品

    悬赏最佳参赛作品 下载文件-简单!

立即发布竞赛 或者立即加入我们!