Buckley(9)
music(8)
Jesserer(8)
Brian(8)
Kaczor(7)
kids(7)
Lloyd(7)
computer(7)
Zaharko(6)
Irving(6)
LED(6)
solder(6)
circuitry(5)
laptop(5)
electronics(5)
Alison(5)
book(4)
wood(4)
internet(4)
PC(4)
digital(4)
audio(4)
mp3(3)
DIY(3)
surround-sound(3)
TV(3)
safety(3)
fashion(3)
tape(3)
FiOS(3)
wiring(3)
toys(3)
upgrade(2)
multi-room(2)
headphones(2)
furniture(2)
doorbell(2)
games(2)
bookcase(2)
e-cycling(2)
reuse(2)
wireless(2)
charging(2)
wire stripper(2)
phone(2)
digitize(2)
Twitter(2)
home theater(2)
cassette(2)
photos(2)
analog(2)
clean(2)
DVR(2)
LCD(2)
newbie(2)
fiber(2)
MIDI(2)
Wii(2)
show(2)
booster(1)
light(1)
mh-2(1)
wall(1)
RSS(1)
hack(1)
router(1)
glow(1)
display(1)
JBJBs(1)
automation(1)
soda(1)
paint(1)
horn(1)
pipe(1)
Media Manager(1)
car(1)
organ(1)
charity(1)
text messaging(1)
cell phone(1)
hidden(1)
chair(1)
environment(1)
pets(1)
shelves(1)
GeekBrief.tv(1)
instruments(1)
green(1)
Guitar Hero(1)
celebrities(1)
cords(1)
Cali Lewis(1)
how to(1)
iron(1)
jumpsuit(1)
infrared(1)
silent movie(1)
Word(1)
sports(1)
tubing(1)
Technology(1)
favorites(1)
shadow wall(1)
heat gun(1)
Teddy(1)
Techno-Guru(1)
TV Search(1)
Valentine(1)
Altoids(1)
wires(1)
network(1)
solar(1)
flux(1)
Ryan Howard(1)
car couch(1)
accelerometer(1)
HD(1)
Bat Cave(1)
Super Bowl(1)
emergency(1)
IMG(1)
wifi(1)
Flickr(1)
streaming(1)
food(1)
speakers(1)
makeover(1)
craft(1)
gadget(1)
Picasa(1)
reader(1)
Recall from the previous article the brief introduction to Inertial Measurement Units (IMU)and Microelectromechanical Systems (MEMS). The IMU provides us with the information we need to track the position of the bat in space.
For our applications we need a small low power circuit. Our IMU circuit consists of 1 - ADXL330 Accelerometer from Analog Devices, and 1 - IDG-300 Gyroscope from Invensense. The ADXL330 is a triple axis accelerometer that has a measurement range of +/- 3g. The IDG-300 is an integrated dual axis gyroscope. The combination of these 2 circuits gives us Roll, Pitch, X, Y, and Z information. Now that we have our MEMS devices, we next need a way to get the information from them. Our microcontroller handles for us.
There is a huge selection of microcontrollers that work with this project. If you are used to working with a paticular microcontroller, you should have no problem integrating the devices above. The microcontroller used in our bat is the PIC16F88 by Microchip. Microchip manufactures affordable 8-bit microcontrollers that work well with popular IDE's (i.e. software application used to program the device) such as MPLAB. The microcontroller has Analog to Digital (A/D) pins that are used to connect our IMU device. The accelerometer and gyroscope output different voltages based on their movement and position. This voltage gets converted into a digital value via the A/D pins on the microcontroller.
The microcontroller receives the values from the accelerometer and gyroscope, at a rate based on the internal frequency set on the microcontroller. Depending on your microcontroller this can be adjusted to a rate of up to 8MHz. This allows you to process hundreds of values per second. Once the microcontroller gets the data, it buffers it, does minor processing to filter out noise, and sends it to the transiever. We will discuss the communications part of the bat in the next article.
There are a few thing to note about data received from the accelerometer. The accelerometer outputs acceleration values. This does not tell you right away the position or displacement of the bat. A double integration with respect to time is required to get x,y, and z values. Recall from your physics course that velocity is the integration of acceleration with respect to time. If you just want the velocity of the bat, you simply integrate the values you receive from the accelerometer within your measured time frame. You can then plot the change in speed over time, and get an idea of how fast the bat was swung. The graph below shows a sample plot of acceleration, velocity and position received from a single axis of the accelerometer.

For more information on how these values are calculated, read Implementing Positioning Algorithms Using Accelerometers by Freescale Semiconductor.
In the next article we will discuss comunication from the Bat to the PC.
Porter: Game On!
Nov 21, 2008 1:00 pm
FOX 55 - WFFT, Fort Wayne
Share your tweaks, tips and knowledge with FiOS users!
Does your family need a tech makeover?
Audition now!
Have a family to recommend?
Click here!
Phillip Says:
Aug 22, 2008 9:46 pm
I have been waiting for this article. JIM 2.0 posted a link to download a zip file with the Hack-A-Bat information but some of us are "MAC challenged" with only access to an IBM PC and cannot open the downloaded MAC zip files. Could someone do a conversion of at least the documentation to help us folks who are "limping along" with IBM PC's.
I also agree that the bat animation is a nice touch. Thanks for your efforts to educate and explain.
I am waiting for the communication article and an overview of the software.
How about a link to instructions on "wire wrapping".
Guru Lloyd Says:
Aug 23, 2008 8:28 am
Thank you very much for your patience Phillip.
I have been so busy with preparations for the Indiana makeovers, that I haven't had time this week to get the next article up. My hopes is that these series of article may provide some background to everyone from the engineering student to the engineering professional such as yourself.
Thanks again.
L.E.
Jim 2.0 Says:
Aug 25, 2008 8:30 am
C'mon man, you mean you still haven't made that cyborg clone of yourself YET?! I thought for sure there had to be at least 2 Lloyds out there to get all this stuff done. ;)
Phillip Says:
Aug 26, 2008 8:06 pm
Ditto Jim 2.0. Where is the Lloyd "Terminator" Version? Time to quit teasing us. I am ready to get started. Did you use the evaluation board for the accelerometer. What did you do for a socket for the gyroscope?
Ryan Says:
Oct 21, 2008 11:42 pm
how can i get the circuit schematic that goes with the circuit and is their a also a solderless breadboard