today I received my new calibrated sensor back from Hitechnic's, they recalibrated it with a Lego program.now pointing to a white sheet of paper it shows quite correctly red=54green=58blue=62color=17=white

It's really a mess that it's not been possible to have such a claibration tool from the RobotC Co.!!

today I received my new calibrated sensor back from Hitechnic's, they recalibrated it with a Lego program.now pointing to a white sheet of paper it shows quite correctly red=54green=58blue=62color=17=white

It's really a mess that it's not been possible to have such a claibration tool from the RobotC Co.!!

Given the HiTechnic site doesn't provide the documentation for calibration I don't see why RobotC would provide a calibratin routine. It seems details had been provided at one point because folks have developed calibration programs for the sensor, but I wouldn't expect any official support for this until Hitechnic provides official documentation. Currently the Command byte used to switch to calibration mode is listed by HiTechnic as reserved for future use. One of these days I'll add this functionality for my sensor. It looks pretty straight forward. Here is a link with some sample code (not RobotC but shouldn't be difficult to translate): http://www.mindstorms.rwth-aachen.de/su ... ateColor.m

Wed Jan 21, 2009 11:04 pm

spaceballs

Rookie

Joined: Sat Apr 19, 2008 11:51 amPosts: 43

Re: HT Color sensor: -> calibrating?

as Ford wrote above, Hitechnic actually provided the data for calibration, but nevertheless all attempts with RobotC calibration programs didn't work! E.g., you can read a program written by Mightor above, but unfortunately it didn't work (I was able to watch this as I visited Ford).

Hitechnic doesn't support RobotC, so I agree that it's wishful that the RobotC Company supports third party sensors like Hitechnic.

Thu Jan 22, 2009 12:41 pm

Ford Prefect

Guru

Joined: Sat Mar 01, 2008 12:52 pmPosts: 1030

Re: HT Color sensor: -> calibrating?

yes, correct.the reason why RobotC calibration programs don't work, are incompatibilities of the RobotC I²C driver libraries and intrinsics with the Hitechnic and Lego standards - and it's not due to the calibration algorithm itself.

yes, correct.the reason why RobotC calibration programs don't work, are incompatibilities of the RobotC I²C driver libraries and intrinsics with the Hitechnic and Lego standards - and it's not due to the calibration algorithm itself.

Well for sure I don't know much about RobotC but couldn't the problem be with the sample code you're trying? Shouldn't the line

Have you guys tried using other I2C buss settings other than HiTechnic Color? If you can find another buss setting that works, maybe the HiTechnic Color setting should have the same specs and you can let Dick know.

Just so you know I am working very hard on a driver suite that will include the following:* ALL of the HiTechnic sensors, including their less frequently used functionality (like calibration)* NXT Cam* MAX127 ADC* MCP23008

All of them will be heavily documented with examples. They all share common code to reduce size. Stay tuned!

For some reason I can't attach files to my posts, so I'll have to paste it in:

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum