Difference between revisions of "Accelerometer ADXL335 with Explore M3"
(Created page with "The ADXL335 is an three axis analog accelerometer which outputs raw X, Y and Z axis values on three pins. Let's connect these to the analog input pins on Explore M3 and log th...") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | The ADXL335 is an three axis analog accelerometer which outputs raw X, Y and Z axis values on three pins. Let's connect these to the analog input pins on Explore M3 and log the data to the | + | [[category:Explore M3]] |
| + | The ADXL335 is an three axis analog accelerometer which outputs raw X, Y and Z axis values on three pins. Let's connect these to the analog input pins on Explore M3 and log the data to the serial monitor. | ||
=Hookup= | =Hookup= | ||
{| class="table table-striped" | {| class="table table-striped" | ||
| Line 16: | Line 17: | ||
|} | |} | ||
| + | |||
| + | [[File:Adxl335_explorem3.JPG]] | ||
| + | |||
=Code= | =Code= | ||
This is a standard Arduino example that I will be using. We will make a tutorial some time later to do some math and put the accelerometer to good use. | This is a standard Arduino example that I will be using. We will make a tutorial some time later to do some math and put the accelerometer to good use. | ||
| Line 22: | Line 26: | ||
</html> | </html> | ||
=Demo= | =Demo= | ||
| + | The log on the serial monitor. | ||
| + | [[File:Explore_m3_adxl335_log.PNG]] | ||
| + | {{DISQUS}} | ||
Latest revision as of 16:44, 20 June 2016
The ADXL335 is an three axis analog accelerometer which outputs raw X, Y and Z axis values on three pins. Let's connect these to the analog input pins on Explore M3 and log the data to the serial monitor.
Hookup
| Explore M3 | ADXL335 |
|---|---|
| 5v | 5v |
| GND | GND |
| A3 | X axis pin |
| A2 | Y axis pin |
| A1 | Z axis pin |
Code
This is a standard Arduino example that I will be using. We will make a tutorial some time later to do some math and put the accelerometer to good use.
