Hi JP,Off hand, I can imagine a GPS or solid state compass doing what you want. The GPS might be more complicated and less sensitive for the yaw (vertical) axis. Most compasses come with accelerometers in the same plastic IC, In most cases, you can ignore what you done't want. I have experience with the BMC156, MPU9250, and AK8963. The MPU9250 actually incorporates the AK8963 as I recall. It is the most complicated to deal with as it requires both SPI and I2C for the compass.
My personal favorite was the AK8963. It was easy (SPI), sensitive (more than the BMC), and gave fast response. Response time is under user control as you control the number of readings being averaged. My code is Assembly and for an enhanced mid-range PIC (probably the 16F1829). I found its datasheet easier to understand than the BMC's too.
I have attached a zipped file of the MP4. Not sure I can upload MP4 here. Hope it works.
John (aka JP or J1 )
EDIT: I had forgotten that I wrote a short review of those 3 chips:
Hi S,Does the red LED flash? It should, along with the yellow. If neither LED is flashing, then something wrong with the configuration. Based on your schematic, both yled and rled should flash ok based on that simple code (from what I can see). Diagnose if either LED is working first....
Other than that, can't help much, I don't work with the 18F series of chips
Hi J,Which program version are you now testing?
They are spread into different threads and it is quite confusing to follow.