Programming a color sensor

Started by
9 comments, last by iamcanadian 18 years, 5 months ago
Zahlman, you would need a PIC that can support ADC, a pic18 does. you'll also need a program that can enable ADC conversion. I believe you're talking about steps and resolution in a A/D conversion process, which you're absolutely right.

My circuit has 3 outputs, one for green sensing, blue sensing, and red. so I would have 3 inputs to a PIC. The PIC converts A/D and and gives me a discreet value. Say for instance, the output voltage is 4 volts, after the analog to digital conversion is done, I would see 0100 in binary.

That is how I want the program to work, I know if you can do something in assembly language you can do it in C.

Thank you all for the help

I hope I've explained right, additional help is appreciated!

This topic is closed to new replies.

Advertisement