Difference between revisions of "250a Accelerometer Lab"
From CCRMA Wiki
(→Audio Filtering) |
|||
(31 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <font size=5>Lab 5: Accelerometers, | + | <font size=5>Lab 5: Accelerometers, Audio Filters & Graphics</font><br> |
− | + | See [https://ccrma.stanford.edu/courses/250a/schedule.html this quarter's schedule] for due dates. | |
== Set up for lab == | == Set up for lab == | ||
− | + | First start up your kit | |
+ | Connect your Satellite CCRMA kit to your laptop and boot it. | ||
+ | * Use a terminal window to login to Satellite CCRMA as usual using the command <code>ssh -XY ccrma@192.168.105.106</code> with the password <code>temppwd</code>. | ||
+ | * Check that your kit has access to the internet through you laptop. You can do this by trying to ping Bing. Run the command <code> ping bing.com</code>/ If it is successful, it will tell you how long it takes to send a packet from your Satellite CCRMA kit to Bing and back. | ||
− | + | Now copy the lab files to your kit. | |
+ | * At the command line in the terminal window, type <code> wget http://ccrma.stanford.edu/courses/250a/labs/lab5.zip </code> to download the lab5 files to your Beagleboard. | ||
+ | * Unzip the file: change into your ~/ directory, and type <code>unzip lab5.zip</code>. This should create a folder called lab5/ with all the files you need. | ||
− | Set up your accelerometer | + | Run the command <code>arduino &</code> to start the Arduino IDE. |
+ | *Use the Arduino IDE to flash your Arduino with Standard Firmata. (See [https://ccrma.stanford.edu/wiki/Talk:250a_Microcontroller_%26_Sensors_Lab_Pd#Prepare_Arduino this link] if you forget how.) | ||
+ | |||
+ | Set up your accelerometer: | ||
+ | * if you haven't soldered your header pins to your accelerometer board, do this now (ask the TA for help if you haven't soldered before). (see [https://ccrma.stanford.edu/wiki/Talk:250a_Microcontroller_%26_Sensors_Lab_Pd#Tilt_control_with_an_Accelerometer_.28Optional.29 this previous lab) for details. | ||
+ | * connect 5V and GND to the Vin and G pins, respectively. | ||
+ | * connect XYZ outputs are going into the Arduino analog pins A0, A1 & A2. | ||
+ | |||
+ |