20 Band Audio Spectrum Analyzer
July 18th, 2011

Bus Pirate case

bus_pirate_case

I was looking around for a small case to put by Bus Pirate in and I found these Microchip sample bins in which the Bus Pirate fits just nice. No need to make any openings cause I’ll only be using it for storage probably. Checkout the pics below.

ATAVRSBIN1 and Bus Pirate

So in my last post I was telling you how I managed to mess up the ATAVRSBIN1 I got from Atmel during a crash with the quad. After the crash I noticed it didn’t respond any more so I hooked it to my Bus-Pirate and the result of a search on the bus was not pretty, no device found:

I2C>(1)
Searching I2C address space. Found devices at:
Warning: *Short or no pull-up

But I figured maybe one or two of the chips (ITG3200, AK8975 and BMA150)survived and the other one who got damaged is keeping the bus low, or shorted or whatever. So I decided to de-solder the chips one by one to find if any still works. I started with the ITG3200 gyro, removed it and the same error, no device found, next I continued with the BMA150 accelerometer and success!:

I2C>(1)
Searching I2C address space. Found devices at:
0×18(0x0C W) 0×19(0x0C R)

When there was only the AK8975 magnetometer left it replied. I also tried soldering back the ITG3200 but it didn’t work. So I was only left with the AK8975 but that’s useful for comparing with the other magnetometer that I’m working with the LSM303DLHC from STmicro. I guess you could call this whole incident a stress test and I’ve determined that out of the 3 chips only the AK8975 survived in conditions above its maximum ratings :) .

Now for reading something out of the sensors I tried reading the WIA register which holds a fixed value(0×48 as mentioned in the datasheet) set during manufacturing. The WIA register is at 0×00 address so start by writing the address of the register then perform 1 read:

I2C>[0x18 0x00]
I2C START BIT
WRITE: 0×18 ACK
WRITE: 0×00 ACK
I2C STOP BIT

next perform 1 read:

I2C>[0x19 r]
I2C START BIT
WRITE: 0×19 ACK
READ: 0×48
NACK
I2C STOP BIT

And the returned value 0×48 matches the one from the datasheet. I’ve gotta say the BP helped allot during this debug session and it would’ve been much harder without it.

AVR ISP MKII Entering programming mode failed

If you ever get the message “Entering programming mode.. FAILED!” while trying to program your AVR device don’t start messing with your MKII or upgrade its firmware 10 times or messing with the windows drivers like I did, cause that’s probably not the cause and you risk damaging you’re perfectly working MKII. As it turns out its just a faulty connection between the programmer and the target board. This is not likely to happen if you only use the programmer occasionally but I used it for like 50+ times a day and that meant inserting and removing the little 6pin connector a bunch of times. I removed the old 6pin connector, crimped a new one and its working again, so long live the MKII because it is a great tool.

You might be wondering why would I need to use that many times, well its because I’m working on this new project, a quadrocopter based on an atmega64. The microcontroller was chosen because I had a bunch around and ATMEL was kind enough to send me a ATAVRSBIN1 for my project.

atavrsbin1

The Inertial One System Board delivers a full 9 degree of freedom sensor platform comprising a 3 Axis Magnetometer from AKM (AK8975); 3 Axis Accelerometer from Bosch (BMA150) and a 3 Axis Gyroscope from InvenSense (ITG-3200) connected through an I2C interface.

At $54 its probably the most accessible 9DOF breakout out there and it comes with great sensors. Unfortunately I only managed to test and fly with the ITG-3200 gyro before I had a crash(you crash allot when developing from scratch a new firmware for a quad). Because of the crash a short-circuit happened somewhere on my board and it messed up the ATAVRSBIN1 sensors.

The ITG-3200 is a very good gyro with low noise so to replace the damaged ATAVRSBIN1 and to continue flying I got a wii motion plus which has the ITG3205 inside(its supposed to be just an OEM version of ITG3200). I haven’t done allot of testing with this new ITG3205 but I did notice some problems on the I2C bus, like sometimes the sensor does not respond , which is strange.(maybe the 400KHz freq is too high for the ITG3205 ?).

Anyway enough for now, I’ll post some updates on the project soon.

January 20th, 2011

555 Contest

555-timer-ic-DIP-package

Jeri Ellsworth and Chris Gammell are preparing the 555 Contest. Not enough details released yet but you can suggest your own ideas for contest categories. It should get pretty interesting as the contestants struggle to be creative with a 555. Maybe you’re asking how many 555 based ideas can be ? I’m sure this contest will show us allot :)

January 3rd, 2011

Chip and Pin is broken

You need to a flashplayer enabled browser to view this YouTube video
The truth is banks often lie to us to protect their interests. People like Omar Choudary and projects like the SmartCard Detective show us just how much is being hidden from us. If you ever find yourself victim of credit card fraud this might help you to recover your loss. It’s outrageous that even though they know about the loop hole they’re not doing anything to fix it and on top of that if you’re a victim they don’t give you your money back because “EMV is infallible”.

you can read about the EMV interceptor in Omar Choudary’s thesis: The Smart Card Detective - a hand-held EMV interceptor and you can check for more info and source files on his project page.



© 2007-2011 YourITronics | Any logo, trademark and project represented here are property of their respective owners | Wordpress | Privacy Policy    RSS