Home 2018 Forums Crumble General Crumble Ultrasonic Tape Measure

This topic contains 0 replies, has 1 voice, and was last updated by  Dr_Alex 4 days, 9 hours ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8325

    Dr_Alex
    Participant

    One problem with the Crumble, is that it is difficult to get data out of it. I’ve been able to get around this by using a servo for various projects, to give an analogue output. In this example, the ultrasonic sensor measures the distance to an object. It then converts this distance into an angle for the servo. Put a needle on the servo and some white card behind it. Move the servo in 10 Deg increments and mark off the angles. 1 Deg corresponds to 1 cm, and it can measure up to 180 cm in this way, with 1 cm resolution. If the distance is >180 cm, then the servo stays on zero. It could be improved by adding a sparkle to indicate the status, yellow for measuring underway, green when a valid result is produced and red when the distance is >180 cm.

    So in this way we can use a servo for all kinds of projects, to measure current, voltage, temperature etc, depending on the sensor we have on the Crumble. With two servos, you could even make a clock, with one scale indicating hours and the other minutes.

    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.