Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Arduino + ultrasonic rangefinder

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,071
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 31, 2011

An el cheapo chinese rangefinder (similar to Parallax' Ping, but with a slightly different interface) hooked up to an Arduino Uno with 4D Systems' tiny dwittwe uLCD-144 as the output device. The speed of sound is temperature compensated via a thermistor. The chip in the middle and the crystal oscillator don't do anything (forgot to remove them).

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (oorcinus)

  • Nice work, I've got one of these hooked up to a temp/humidity sensor for fun.

    Do you have a link to your source code for this project? I have an SGC version of this LCD and am trying to figure it out :). Did you use the arduino library the 4d site links to?

  • @doN0Evil Yeah, i've used this library: code.google.c o m/p/displayshield4d/

    It's rather poorly documented and is missing a few crucial time-delays after some of the functions.

    Here's the source: dl.dropbox.c o m/u/1702513/Distance.pde

  • @oorcinus Thanks for that, I'm rather new to c style programming. I had to do some conversion to send a float to the lcd.drawstringblock() function with itoa(), which is somewhat different from what you did. It's nice to learn a new technique!

  • @doN0Evil Ah, yeah, converted the distance value to string manually instead of using itoa() because at some point i was playing with rounding the least significant digit to 5 cm, with decimal points etc. Left it like that in the end. itoa() basically does it the same way, so no harm done :)

  • @doN0Evil Oh, also, just noticed i've linked you the version of the code that also lights up a led bar graph via a shift register. In case you were wondering what's with the extra shiftOut lines.

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • great job ;)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more