chris_harrison84
New Member
I am currently trying to integrate the PICAXE Colour Sensor (AXE045) module with a PIC and output RGB values on a LCD.
I have read the PICAXE Colour Sensor datasheet and I am using the COUNT command as suggested. With a 50ms COUNT period I get values ranging from 0 to 1000(ish) outputted on the LCD for red, green and blue values depending on the colour that the sensor is looking at.
Please could someone tell me if these values seem correct, given that the values given on the datasheet seem to vary between 0 and 350.
If anyone knows I would be extremely grateful if someone could let me know how to convert these values to true RGB values (ie. between 0 and 255, not 0 and 1000(ish).)
Many thanks in advance,
Chris
I have read the PICAXE Colour Sensor datasheet and I am using the COUNT command as suggested. With a 50ms COUNT period I get values ranging from 0 to 1000(ish) outputted on the LCD for red, green and blue values depending on the colour that the sensor is looking at.
Please could someone tell me if these values seem correct, given that the values given on the datasheet seem to vary between 0 and 350.
If anyone knows I would be extremely grateful if someone could let me know how to convert these values to true RGB values (ie. between 0 and 255, not 0 and 1000(ish).)
Many thanks in advance,
Chris