It just occurred to me that the Razor is a 3.3V device but we used a 5V calibration when writing the WebbotLib code.
It just occurred to me that the Razor is a 3.3V device but we used a 5V calibration when writing the WebbotLib code.
Not sure what you mean by the 5V calibration?
SparkFun say that:
The 9DOF operates at 3.3VDC; any power supplied (3.5-16VDC) to the white JST connector will be regulated down to this operating voltage.
There is nothing you guys can do to fix it........
Heads-up........There is a topic on the SparkFun Forum regarding Non-Linear Output from the SparkFun 9DoF Razor IMU X-axis accelerometer. See;
Board index » Technical Discussions » Projects and SparkFun Product Questions
Post subject: Question regarding Razor IMU X-axis accelerometer behavior
In summary: the previously supported boards Axon etc all use 5v as the ADC reference voltage. But on the Razor Board itself it uses 3.3v as the ADC reference voltage. So all the sensors that use ADC need to be rewritten to support ANY reference voltage rather than just assuming its 5v. Once I'm done then Admin can release a new hex file for uploading to the Razor.
WebbotLib Version 1.23 has been released with the following features:-
* a2d.h - Added a2dReadMv
* Reworked ALL analogue sensors to work with different ADC reference voltages
Nothing in the code I sent you has changed. What had changed were the hidden WebbotLib functions, hence the recompiled hex I sent you.The code that runs on the Razor itself links in the new WebbotLib sensor code that copes with non-5V ADC - so as Admin says that wont change his main program at all. However: assuming that Admin used Project Designer to generate his Razor code then the 'hardware.h' produced by Project Designed will contain an extra line declaring that the Razor uses 3300mV as the ADC reference voltage.
That said, Webbot rewrote my code in a much more difficult to understand manner, but he says its better so I believe him :PI only rewrote your code that talks/listens to the Razor, ie on the Axon. It had to be redone to make it compatible with Project Designer and also to add timeouts so that the Axon doesn't hang if the Razor isn't connected.
Have you made any progress with the Kalman filter?Nope! We are still trying to figure out the best way to go about it . . . expect it to take a few more months . . .
Have pointed Invicta to a DCM solution giving similar results. Uses matrix stuff which WebbotLib already supports.I'll volunteer.
Could be a good solution but requires someone, ie not me, with the relevant hardware to write and test.