3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Ultrasonic Range Finder with an ATtiny85 (With Shield)

Ultrasonic Range Finder with an ATtiny85 (With Shield)
I’m here to show you how to use a HC-SR04 Ultrasonic Range Finder with an ATtiny85 as well as programming the ATtiny85 using the wonderful shield that randofo created.

List of materials:
ATtiny85 Programming Library
Arduino Uno
HC-SR04 Ultrasonic Range Finder and Library
Jumper Wires
Breadboard
ATtiny85
 
Remove these adsRemove these ads by Signing Up
 

Step 1Program the Arduino

Program the Arduino
Before you connect your shield to the Arduino Uno, you’ll want to make sure you’ve put your Arduino Uno into it’s ISP mode, to do this load up your Arduino IDE and once it’s loaded go to File > Examples > ArduinoISP, now connect your Arduino up to your PC and upload the ISP sketch.
« Previous StepDownload PDFView All StepsNext Step »
11 comments
Feb 2, 2012. 2:48 PMbillbillt says:
This is cool...I like your DOOM avatar...
Nov 23, 2011. 1:42 PMPyroMonger says:
where can i purchase jumper wires like the ones shown??? Ive been looking for sooo long. Thanks in advance
Jan 20, 2012. 12:01 AMdiy_bloke says:
Dealextreme has them as well. good quality and very cheap
http://www.dealextreme.com/p/breadboard-jumper-wires-for-electronic-diy-70-cable-pack-80208
Nov 24, 2011. 7:54 AMfzbw9br says:
what does this contraption do?
Nov 24, 2011. 2:37 PMdwicks1 says:
A useful application would be in the drone community or other RC flying platforms.
Nov 24, 2011. 6:05 PMAlphaRomeo says:
Could you suggest something that I can put behind my car to give warning when I am reserve driving
Nov 26, 2011. 8:39 PMwurth51 says:
I wrote a short program that uses if_then_else statements to determine and energize one of three LEDs (green, yellow, red) depending on the distance and installed it on the back of my motorhome. Works great. I even ended up using an RGB (3n1)led to minimize the footprint. I used inches and the light stays green until 3ft then goes to blinking yellow until distance is less than 2ft. THEN red. One NOTE: the HC-SR04 is voltage sensitive and must not exceed the rated 5vcc. Unlike the arduino that can handle some variations. Its and expensive lesson.
Nov 24, 2011. 6:36 AMbcraun says:
Adafruit.com also has them. They have both male: https://www.adafruit.com/products/153 and female: https://www.adafruit.com/products/266.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
25
Followers
6
Author:Dominion-Network(Dominion-Network)
I've always taken stuff apart, almost always put it back together... I enjoy tinkering around with pretty much anything.