Hi Antony,
We had tried interfacing the 2 MAG3110 boards with both Raspberry Pi-3 board and CC1110
Case 1:- MAG3110 interface with raspberry Pi using I2C protocol
The code for Raspberry PI-3 board is attached as "mag3110.py"
Case 2:- MAG3110 interface with CC1110 using Bit banging method
Our main intention to interface the MAG3110 sensor is with the TI's CC1110
Due to erroneous sensor reading we did some filtering to the raw output of the MAG3110 sensor in the code to get stable reading . The filtered process implemented in the code is as follows:-
1. Exponential average of raw sensor data
2. Difference between the raw and exponential average
3. Squaring the difference
4. Quadratic mean of the Squared Output
The main idea behind the filtering is to detect the drastic change in the earths magnetic field due to presence of the vehicle and make the readings from the sensor raw data with less difference to zero
The code for the CC1110 is attached as "CC1110_MAG3110 code"
Thanks,
Fakhruddin