Distance detecting pc

distance

Reader [Joshua] sent in his latest project. using a sonar rangefinder, an Arduino, and some clever programming, he’s made is computer react to his distance from it. As you can see in the video after the jump, he has programmed it to change text size and background color depending on his distance from the screen. While he admits that his implementation doesn’t seem immediately useful, there’s lots of potential  there. We can actually think of several uses. What would you use it for?

Comments

  1. William Deacon says:

    How about just simple everyday uses? Automatically turning off the screen saver when you sit down and reach for the keyboard? Or shuts off the screen when you walk away? It would seem to me the best use of such technology would be integrating into human/computer interactions…

  2. Barry Smith says:

    Might be useful when the PC is being used as a controller function. For example, inside a darkened observatory, controlling a telescope. When you approach it, detailed control functionality is displayed. When you’re away, at the scope, large-text displays of the scope’s coordinates and and any imaging it’s doing. It could also control its red-light-screen brightness.

  3. Dan says:

    Im with william deacon on this one, it’d be great if my computer at work locked it self when I got up and walked away. At work people are always forgetting to lock their computer when they walk away, this would be a nice safe gaurd.

  4. jarza says:

    It could also be used for measuring how long your penis is(how close it is to computer)

  5. dano says:

    how about playing music or playing a game… here is a pretty interesting hack doing exactly those 2 things:

    http://zevv.nl/play/code/ultrasonic-theremin/

    Entirely Software (Pure Data)!!! No Arduino or Maxbotix sonar needed.

  6. nubie says:

    I like this, must see it put into computer screens :)

  7. gomi says:

    I third William Deacon.

    1. Close to the screen, screen saver turns off and computer becomes active.
    2. Near the computer, data screen comes up, with large type clock, maybe a news or stock feed, various status indicators.
    3. Not within the field of vision, monitor turns off and computer goes to sleep (or some other low-power mode).

  8. tulcod says:

    theremin ftw

  9. dustin says:

    to further the idea of locking it when your away. you could set it up like WOL so when you get close it turns on. or you could make a portable version hooked up to a netbook and lay carpet or whatever haha

  10. Mouserz says:

    to measure my penis

  11. az1324 says:

    Its not very cost effective for a simple proximity sensor.

  12. Sam says:

    If it can detect multiple people at a time, the distance detection mechanism could trigger an ALT-Tab if you boss walks in on you playing a video game at work or your girlfriend walks in while you’re looking at…

  13. Name says:

    I was thinking of using this in a more active sense.

    Combined with a webcam to recognize certain hand gestures, use the ultrasound range finder so I can manipulate objects on the screen with my hands.

  14. Lot’s of good ideas.

    If anyone can do Windows Dev. and would like to collab on this as a fun side project, hit me up.

    Twitter: joshuamc
    e-mail: goodespeler@gmail.com

  15. g3n says:

    USe it to set the zoom on a webpage : the farther you are, the bigger the text.
    Always readable !

  16. Alex says:

    jarza, mouserz… I don’t think it can measure distances that small.. it appears the distance is measured in inches, anyway

  17. blizzarddemon says:

    A more effective zoom then that multitouch “separate the lips” bs

  18. @alex, jarza, mouserz,

    it’s accurate up to 5 inches and has a 1 inch resolution.

    date sheet:

    http://www.maxbotix.com/uploads/LV-MaxSonar-EZ2-Datasheet.pdf

  19. Dan says:

    How is this a “hack”? All I see is a simple distance sensor calibration. What happened to the quality of the posts on this site?

  20. hum4n says:

    YOU ARE THE CANCER THAT IS KILLING /B/.. uh i mean hackaday. so shut it.

    aaanyway, I’d use it to know if someone is sneaking up behind me, point it over my shoulder.

  21. alu says:

    what happened to the quality of comments here

  22. rasz says:

    a hack would be interfacing Ultrasonic sensor from old discarded Polaroid camera.

  23. pavalos says:

    Letters and graphics can become smaller when someone get closer to screen

  24. cyberpunk64bit says:

    this is what i been looking for. a prank im going to do with my friends, but it requires it knowing if someone is actually in front of my comp. have a number generator count down, and if ne of my friends gets close to the computer, it will start the generator count down…. i can only think of evil things to do with this, sorry everyone, but I cant see any good, just evil, and fun from this proximity hack.

  25. cyberpunk64bit says:

    ….also, why cant someone have a security lock on there computer that only accepts admin/users face to login to the computer? (ok, i will stop rambling.)

  26. goodnews says:

    How is this deserving of a post on hackaday?

  27. dan says:

    shit, why does there have to be some whinging asshole with the same name as me?

    i like this idea; have you thought about using it to control zoom? move your face closer to the machine to zoom in, further away to zoom out. might be quite cool in google earth or something.

    i wrote some code earlier this year that uses face detection to let you control the mouse (and thus look around in a FPS game) by pointing your face left,right,up and down; it might go quite well with something similar!

  28. PKM says:

    I’d use it to sound an alarm or possibly electro-shock myself every time my face got closer than arms length from the monitor- I don’t need glasses but staring at a monitor from a foot away all day can’t help.

    Ditto the wol (\/\/0L_?) ideas, it could automatically put your computer into “away” mode- power off monitor, pause music player or anything else that needs pausing, crank up your waiting torrents/processing/seti@home or whatever if you are away for more than a minute or so.

    Or it could just play the “Are you coming back?” and “there you are” portal turret sounds :)

  29. saadin says:

    Using an external ultrasound sensor? Meh.
    Now if this was done using laptops internal speakers and mic, that would be a worthy hack.

  30. IceBrain says:

    @saadin: with the mic?! You’re seeing to much Macgyver, how could you use a sound sensor to detect proximity? Unless you require the person to shout when (s)he approaches :P

    But most laptops now have cameras, you could probably do something very similar with only motion detection and face size identification.

  31. wh00tyw00 says:

    I’m no expert on cell phones but isnt there similar technology in use already (behold/itouch/iphone)

  32. kerry bill says:

    eye exam

  33. haounomiko says:

    This is being used already in robotic toys.

  34. stereoharold says:

    What would be cool is to control volume of an audio player with this. You’d set the volume to a comfortable room listening level. Then, if you walk away from PC, the level would go up a bit so you can hear from your kitchen. Then when you sit back in front of the PC, the volume would level down.

  35. irab88 says:

    i like all the ideas being thrown around. i think that what it boils down to is:
    >if user is in front of computer then
    >get distance
    >[distance related action]
    >else
    >[idle action]
    i could also see this being used as a way to save electricity (>ahem<), seeing as any ad these days is geared for green.

    (btw- i, too, am a bit puzzled as to why this is on “hack-a-day”)

  36. Ynynymys says:

    @hum4n

    you sir, are and idiot

    but seriously though, you could probably couple this with the robotic arm from the other day to make something like Stark’s assistant in Iron Man.

  37. Weenis says:

    Hmmm…Interesting

  38. Roman D says:

    Interesting, though may be useful for some things, a lot of the suggested can also be done with a built-in cam in some laptops. Which means the software can be adapted to existing hardware already out there. Except for the telescope application, where in darkness using a IR to light up the scene for the camera may interfere with viewing of the stars.

    Now take a servo, put the system on that and rotate it around, and you have a cool little sonar(radar) fuction, you could then plot it out. Add one more servo to give you a controlled Y axis to move the beam up and you could do a 3D plot of your envelopment. Kind of spiral scan. Would have possible uses in robotics to chart out your environment before proceeding.

  39. thetwiz says:

    while i also like the idea of unlocking/turning off a screensaver when you sit down, i personally find this is be a highly impractical and inefficient approach to such an idea.

    currently, there is already a method of unlocking a workstation using a chip you carry on a keychain or in your wallet, and it locks when you go so far away from the the machine. similar to the newer keyless entry/start vehicles. this is also better for security reasons, obviously, unless facial recognition were a capability.

    cool project though, kudos.

  40. Presentation in the courtroom.

  41. jermy says:

    penis mesurer

  42. doodoo says:

    i don’t know why this is such a big deal. connecting an ultrasound sensor to an arduino and making it control things on your computer is about 10 lines in the arduino sketchpad and 30 lines of processing on the computer. and the wiring is USB -> arduino, 5V/ground/analog from sensor to microcontroller.

  43. mike says:

    It would be cool to hook it up to a motion sensor camera – and then configure them both to a automated paint ball gun – have the computer calculate the proper tragectory and stuff

    or just measure a penis or two

  44. kris says:

    You guys are posting comments about how you can use this so your screen turns on or off if your around it on your computer?????well thats already been done .My alienware laptop can tell if im there in front of it or not and with facial recognition it can even tell if it is me and it will not respond to anybody else.I believe that this could be usefull for reading text at different distances becouse it can automaticly adjust the text size .If my laptop could do that i would be very happy.

  45. supershwa says:

    is caleb kraft a neophyte who also just happens to be a freshman in engineering school?

    caleb chooses a lot of really weak subjects — just “ooh that’s cool child’s play” stuff versus real hacks. why is this guy still writing for hackaday?!

    i mean, come on — the cell phone shoe is a krafty caleb classic: http://hackaday.com/2009/02/11/cell-phone-shoe/

  46. Drake says:

    Just because you don’t see it as a hack does not make it a hack. Surly you can figure out how to make it work with a proxi sensor from a poloroid or without using an audrino. Its about the core idea that can be innovated upon. Use your brains and make it better or find more applications for such.

  47. pokey says:

    @drake: I hooked a PIR motion sensor to my work PC’s parallel port ten years ago to lock the screen when I’m away and turn on the desk lamp via X10 when I log in and am at my desk. Many others have done the same with RF transponders, bluetooth MAC sniffing, cameras, and ultrasound. This isn’t novel or unique.

  48. drake says:

    @pokey: Not to be offensive . . . but did you post results on the web? This is the first I’ve seen this done with results posted. Sometimes its not about how you can use it, or how new the idea is, its about the results and the documentation. Just because you have done it before does not mean there isn’t anyone who hasn’t and needs ideas for hacks. Yes it is basic, but it has potential for other uses. Think of how it could be used in a smart home or a smart car. Some people cant afford specialized equipment but still need to know how it is done so they can find a solution for their needs.

  49. Ninja says:

    Two words.
    TAPE MEASURE.

  50. aficionado says:

    the worst part about this whole thing is how easily you people are trolled

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 94,613 other followers