workshops:arduino_for_the_curious:stage_5
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
workshops:arduino_for_the_curious:stage_5 [2017-04-05 12:52] – external edit 127.0.0.1 | workshops:arduino_for_the_curious:stage_5 [2017-04-10 11:31] (current) – Simon | ||
---|---|---|---|
Line 9: | Line 9: | ||
{{workshops: | {{workshops: | ||
- | The distance can be calculate | + | The distance can be calculated |
- | Distance = Speed of Sound in Air x Time | + | '' |
As the ultrasound travels from the transmitter to the object and back again the result needs to be divided by 2. | As the ultrasound travels from the transmitter to the object and back again the result needs to be divided by 2. | ||
Line 27: | Line 27: | ||
The nice thing about using Arduino to interface with Hardware, is usually somebody else has already done the hard work to write a library of code for others to use. You can focus your effort on your cool project rather than working out how to interface with a piece of hardware. | The nice thing about using Arduino to interface with Hardware, is usually somebody else has already done the hard work to write a library of code for others to use. You can focus your effort on your cool project rather than working out how to interface with a piece of hardware. | ||
- | * Download the Zip file from | + | * Download the Zip file from http:// |
- | http:// | + | |
* Follow the instructions for installing a library at [[http:// | * Follow the instructions for installing a library at [[http:// | ||
- | * Once you've installed the library and restarted the Arduino IDE you should see a new section in the menu | + | * Once you've installed the library and restarted the Arduino IDE you should see a new section in the menu, '' |
- | File-> | + | |
* Change the start of the file to match the pins you wired up | * Change the start of the file to match the pins you wired up | ||
Line 42: | Line 40: | ||
* Upload the Sketch to your Arduino and open the serial console, you should see a distance measurement output every second. | * Upload the Sketch to your Arduino and open the serial console, you should see a distance measurement output every second. | ||
- | | {{workshops: | + | | {{workshops: |
workshops/arduino_for_the_curious/stage_5.1491396766.txt.gz · Last modified: 2017-04-05 12:52 by 127.0.0.1