I released V1.1 earlier, but soon after realized I had made a mistake in the calculation of ClassNXTSound::SoundLevel. I fixed the mistake in this V1.11 release (available here).
-
Recent Posts
Categories
Archives
Lego Blogs and Sites
3rd party lego accessories
Lego Forums
We are working on a school project and we need to use the color sensor. I have tried your library with the NXShield D and I only get 0 readings.
The sensor does not light up, as it does when used with the NXT. The sensor we use has 3 diodes, like this one http://botbench.com/blog/wp-content/uploads/2011/02/rdg_colorsensor.jpg?w=250
I believe it is the version 1.
Any idea what’s wrong?
My color sensor driver is for the HiTechnic Color sensor V1, not the NXT 2.0 color sensor.
Due to the unique nature of the NXT 2.0 color sensor’s communication protocol, it’s impossible to use with the NXShield. You would have to solder jumper wires, and bit-bang the communication.
BTW, the NXT 2.0 color sensor “bumps” on the front are a phototransistor and an RGB LED (and a dummy “device”, which is just part of the cosmetic design).
Thanks for the quick answer. Ok, that explains it. Maybe the easiest would be to get hold of v1 sensor. It seems that there are several versions. Can you please clarify which one works with your driver?
It is this one: http://www.hitechnic.com/contents/media/Color%20Sensor%20W1.jpg
Or this one: http://www.rapidonline.com/catalogueimages/module/M076278P01WL.jpg
Or a third type?
The first picture looks right, but my driver is specifically for V1 of that sensor. It might work with V2, but I don’t have one to confirm.
The second picture is an NXT Light sensor, and it only measures intensity of light (no color detection).
That’s what I thought. I order a sensor here http://www.generationrobots.com/hitechnic-color-sensor-robot-lego-mindstorms-nxt,us,4,NXT-Color-Sensor-NCO1038.cfm
I’ll let you know if it works.
Excelent!!!!!!!!!!!!! Thanxs, I´ll test it!!!!!!!!
Hi, In the library it gets an error on ClassNXTSound:, some variables are not declared… It´s just me? please chech it if you can…I´ve edited (commented out) some lines and it worked…but it is not the right solution. Many Thanxs
It sounds like you aren’t running the latest version of the NXShield drivers provided by OpenElectrons. Try getting the latest version, and see if that helps.