Introduction: How Do I Use the RFduino With a 6 Axis Accelerometer

Check out the RFduino's finger-tip sized, Arduino compatible, wireless enabled micro controller:

This instructable will show you how to interface to the Accelerometer/Gyro with the RFduino and pull data from it to post to your computer using the USB shield.

Step 1: Materials Needed

  • RFD22102 RFduino DIP
  • RFD22121 USB Shield for RFduino
  • MPU-6050 Six-Axis (Gyro& Accelerometer)
  • USB Extension Cord
  • Mini-Breadboard
  • Solderless Breadboard Wires

Step 2: Preparing the Hardware

  1. Place the USB Shield onto the Mini-Breadboard along with the RFduino BLE DIP Board stacked on top of the USB Shield
  2. Place the MPU-6050 onto the Mini-Breadboard with spacing to place wires
  3. Using the schematic shown in the photo above, wire the connection between the MPU-6050 to the RFduino Note: R1 and R2 shown in the schematic do not need to be placed as they are already located on the MPU-6050 breakout board.
    • VCC = 3.3V
    • GND = GND
    • SCL = GPIO5
    • SDA = GPIO6
    • ADO = GND
  4. Attach the USB extension cord to USB shield and connect to your computer (The extension cord allows you to move the entire project instead of having it stuck to your laptop USB port)

Step 3: Setting Up Software

  1. Before beginning the instructable for this demo, please follow the steps to set up your computer for using the RFduino here:
  2. Download and install the program "Processing" from the following link:
  3. Download the following demo file:
  4. Using the Arduino IDE, upload the following sketch from the downloaded library "FreeIMU_cube1_arduino" onto the RFduino.
  5. Extract the 'RFduino MPU6050 Processing Sketch' into a sketch folder for Processing. All files, including the photos must be located inside the same folder as the sketch.
  6. Using Processing, run the sketch.

Step 4: Using the Application

  • A Processing window will open, showing the RFduino in a 3D form. This 3D form will move depending on the movement of the physical RFduino. You can view the video to see the example. Enjoy!