What does this do?

This is a fan that will automatically come on when i sit at my workbench and off when i leave.
It uses an Ultrasonic Distance Sensor, or commonly called a  "Ping " sensor for detection.
An ATtiny2313 to handle the processing.
A power supply from a router. ( Wall wort )
A relay to switch the AC power.

The ping sensor works by sending out radio waves and times how long it takes for the radio waves to bounce off of an object then return. From this time we can calculate distance. I know it is more complicated than this but this is the simplified version 

Video Link

Step 1: BOM

  • ATtiny2313
  • 6v relay
  • 20 pin socket
  •  Ping sensor
  • Fan
  • 2n2222 transistor
  • 1N4004 Diode (2)
  • 10K resistor
  • 330R Resistor
  • 8.2v power supply
  • Perf board
  • Switch
Wire Glue
<p>please tell me the min range of the sensor</p>
<p>wwc have u ever used a PIR Sensor?</p>
<p>Wow... simple and good example on how to use ultrasound sensor... I've made something similar... but trying to get the ultrasound sensor to activate the relay... but cant figure out the configartion... fairly new to arduino...</p>
<p>Nice idea. I came here to find some inspiration for my project where the Ultrasonic Sensor trigger the relay for the light. Anyway, two things I noticed and I believe should be said for the newcomers:</p><p>1. The so called ping sensor does not emit radio waves. As the name suggests it emits ultrasounds. Sound which cannot be heard by humans. The following is true - by measuring the time needed for the sound to bounce we can calculate the distance.</p><p>2. Please work on your spelling :) I am not an English speaker but fortunately I understood what you meant by 'scenes' :) It's spelled 'since'.</p>
You come to this site and the first thing you do is complain about one of my projects. This is your one and only contribution to this community. I suggest you actually do something of your own instead of complaining about somebody else hobbies. I am sure you do not realize that making an Instructable is far more work than the actual project and is done for the sure pleasure of sharing with other DIY'ers. If you do not like somebody's Instructable i suggest you move on and not try to fix people to conform to the way you think the world should be. This explains why your FB link on your Instructables page shows only one friend.
<p> I am working on a project which requires that a very powerful bulb gets brighter as a person aproaches it. </p><p>How could I modify this to give an output voltage which increases in a linear fashion from 0 to 10 volts?</p><p>There <br> are many projects on instructables and elsewhere that either use the <br>distance information to output to a digital display or light up a few <br>leds in steps as with car reverse sensors, but I have not found anything <br> which will give a continous analogue output voltage neccessary to <br>operate a lighting dimmer. Can anyone point me in the right direction?</p>
When I upload the code it gives an error saying that 'class Ultrasonic' has no member named 'Ranging' <br>What do I do now?
Did you install the Ultrasonic library?
It works fine, just had to install a newer version of the Ultrasonic library, thanks for the tutorial :D
Your welcome. <br>I also was trying to get the ranging adjustable with a pot but never got that worked out.
Nicely done! <br>Well suit for the tropical climate!
Following the advise of my spiritual guide Saint Ozzy I'd have used an electric eye.<br> <br> <a href="http://www.youtube.com/watch?v=tsLkL8DTHeg" rel="nofollow">http://www.youtube.com/watch?v=tsLkL8DTHeg</a>
You do good work !<br> And that is a heavily well worked bench.<br> <br> A
Thanks A <br> <br>i was trying to prevent myself from getting tennis elbow from turning the fan switch on and off, You know how dangerous that can be.
Extremely elbow hazardous !<br> And very humid by the iron oxide on the fan lamination <em><strong>:-P</strong></em><br> Especially since I see you are using a 220VAC style of power connector.
Clever idea! Nice work.
Hi <br>Thank You for looking at one my Instructable and it is a honor to have you comment also. <br>I follow you work as well. <br> <br>Thank You <br>

About This Instructable




Bio: Why would i buy something ready made when i can make it myself with half the features for twice the money? DIY!
More by WWC:3D Pinted Spool Reel Hard Drive Tachometer for a Desktop Computer 4093 Schmidt Trigger / Fan Speed Regulation 
Add instructable to: