Added: 1 year ago
From: oorcinus
Views: 2,126
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (6)

Sign In or Sign Up now to post a comment!
  • 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.

  • 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