Project details

From PHYSpedia
Jump to: navigation, search

Authors: Jack Maseberg

Arduino Uno code file: File:Kinect bot.ino


Install CodeBlocks 10.05 WITH mingw (gcc)
Install openFrameworks (http://www.openframeworks.cc/download/)
Read the openFrameworks "setup guide" for your OS and add the extra include and library files to your CodeBlocks install.
Create a "myApps" folder in "of_preRelease_v007_win_cb\apps"
Copy the serialExample folder from "of_preRelease_v007_win_cb\apps\examples" into your "myApps" folder.
Open the "serialExample.workspace" file in CodeBlocks and click to expand the "src" folder. You can double click on each of the three files (main.cpp, testApp.cpp, and testApp.h) and start modifying them! On windows, we had to change the serial.setup line to be: serial.setup("\\\\.\\COM17", 115200); in the testApp.cpp file to connect to our Arduino using Bluetooth!

Kinect: use git: git clone git://github.com/ofTheo/ofxKinect.git

Following the instructions here: https://github.com/ofTheo/ofxKinect

Put the ofxKinect folder in your of_preRelease_v007_win_cb\addons folder and copy the example folder inside of the ofxKinect folder to your of_preRelease_v007_win_cb\apps\myApps folder. Before you run anything plug your Kinect in and update/install drivers found in the of_preRelease_v007_win_cb\addons\ofxKinect\libs\libusb\win\inf folder. Then you can run the example ofxKinectExample_win.workspace file!


Kinect: LPF-00004 (has usb and external power adapter) ($145)
Arduino Uno http://www.mouser.com/ProductDetail/Arduino/A000066/?qs=sGAEpiMZZMtE4ePzUE8d2JuFIVM5Ac0l ($25)
Motor Driver Sheild http://store.nkcelectronics.com/freeduino-arduino-motor-control-shield-kit.html ($11)
Aluminum standoffs: http://www.mcmaster.com 93505A102 ($0.44x8 = $3.52)
Motors: Mini Metal Gearmotor 100:1 http://www.sparkfun.com/products/8912 ($13x2 = 26$)
Wheels: Wheel 32x7mm (7mm D shaft) http://www.sparkfun.com/products/8901 ($7 for pair)
Battery: Polymer Lithium Ion Battery - 1000mAh 7.4v http://www.sparkfun.com/products/10472 ($7) (this will run the bot for about 1 hour)
Battery Charger: "iMax B6 Balance Charger" Li-Ion/Polymer Battery Charger/Balancer - 50W, 5A http://www.sparkfun.com/products/10473 ($33) (use NiMH setting when battery is too low to charge with Li2S setting)
Digital Compass HMC6352 http://www.sparkfun.com/products/7915 ($35)
Bluetooth Modem BlueSMiRF Silver http://www.sparkfun.com/products/10269 ($40)
Total Materials Cost ~ $333 plus shipping!


Uno schematic: Uno schem.png


H-bridge schematic: Hbridge.png