Computers, Development Boards & Shields
Educational & Robotics Kits
Electronic Sensors
Motors & Controllers
Communication & Display
Electronic Components
Soldering & Lab Tools

0
Sensor can’t read the color orange

Using Arduino Uno and the Virtuabotix Color Sensor w. Pinhole lens
To decode the colors of pool balls.

With 5v applied: Reads all ball colors except the orange ball (gives red and blue)
but does read a real orange (gives red and green)

The color Orange is made up of red and green only, no blue

With 3.3v applied: Reads the orange 5 ball ok but other colors may be erratic

Can you please tell me why!!!???

4 Answers

0

There could be some blue hues in the ball that may be out of human eye range. I am not sure why you would be seeing this exact issue, as I have never had anyone else encounter it before.

A good solution I have seen is to calibrate for each color so differences from sensor to sensor, and invisible changes in color are calibrated for.

The technique would involve an initial learning step essentially, or one where you send a calibration command while an object of a particular color is in front of the sensor.

Calibration information would be stored in EEPROM and used for reference. In small scales you can get away with hard coding values, but for scale I recommend that approach.

0

Thak you for answering this.

You say send a calibration command, I don’t know what
this command is. Where do I find it?

Also, it does see a real orange just fine, so you may be right.

0
0

Thak you for answering this.

You say send a calibration command, I don’t know what
this command is. Where do I find it?

Also, it does see a real orange just fine, so you may be right.

0
0

You would create a calibration function for your particular application. Basically if you are doing hundreds of units this makes sense. For a single unit you basically do a manual calibration that says Orange is with x of the color values you have tested.

Values change significantly just from external lighting and conditions too, so this can be pretty important in certain environments.

You create a function called calibrateOrange though and you can call it when an orange item is in front of it. It would then take x number of readings and save the mode or mean of the values read for each color into EEPROM memory.

If you make a calibrate command feel free to share it with the community here.

Your Answer

No comments yet.

Leave a Reply