simulating HMC5883L

Status
Not open for further replies.

heliboy

Active member
I have a rather peculiar application and hoping someone has some suggestions. Most autopilot systems use an inexpensive HMC5883L as a compass connected over I2C. These do not perform well in industrial environments. I have a better compass (brick-IMU) but this only communicates over USB. What I want to do is use a teensy 3.2 to take the USB input from the new compass and simulate the HMC5883L over I2C to the autupilot. Any chance this is possible ?
 
The main problem is the Teensy is setup to act as a USB client and not a host. The new Teensy 3.6 has pins to provide USB host support, but I don't think the software is ready to use (I don't know, I haven't looked into it). I believe there are also USB shields for arduino type boards. I don't know how easy they are to use.

If the only thing you need the Teensy for is to act as a translator, it might be simpler to use a Raspberry Pi A+ board (or Zero if it is a one-off project), and have a program that reads it USB and does the i2c. Or if you haven't programmed under Linux, perhaps not.
 
The brick-IMU, assuming its the one from Tinkerforge, uses a BNO055. The BNO055 is a self contained IMU that has an on-board Kalman fileter that gives you yaw, pitch, roll and several other quantities. Do not really think you can call it industrial grade. You can pick one up from Tindie or from Adafruit. These use I2C to communicate to the Teensy. I have tested it on the Teensy 3.5 and 3.2 and it does work quite well.
 
Status
Not open for further replies.
Back
Top