Conveyor Belt Color Sensor


#1

Hello,

I’m trying out the conveyor belt’s color sensor using Blockly. When I try the Get color blocks, the values that are returned never change even with different objects (colors) over it. I do turn on the LED for better lighting.


#2

Seems strange, that should work, could you show me your connections and all the codes? Or try to use those codes here:


#3

I just realized this didn’t post:

Same result.

11
0
0
0
56
130
30
0
56
130
30
0
56
130
300
0
56
130
30
0
56
130
30

56
130
30
0
56
130
30
0
56
130
30
0
56
130
30
0


#4

I got the same problem. The values didn’t change even I changed different color blocks.
The cable isn’t fit to EIO18. The sensor instruction told me to connect to GP5 on the forearm, which is EIO4 or EIO5. When I plug in, the sensor’s 4 lights are on and can’t be turned off by programming it in BLOCKLY. RGB readings are always the same.


#5

Hello,

the color sensor have to connect to the 10 pin interface on the base of the robot (Communication interface).

See also the conveyor belt demo introduction on www.dobot.cc.

Kind regards


#6

OK. Attached pictures are the color sensor and instruction I got from the Dobot conveyor package, its cable has 4 pins. Any idea how I should I connect those 4 pins to? And instruction shows GP5 on forearm interface as shown.

Further more, the IR sensor I received is called photoelectric switch. It works only input on and off, I can’t get distance.
Is it wrong hardware, or you have an example program to get the distance reading?


#7

Hello farmerh,

it seems, that I have an older model of the conveyor belt.


But I received an email from Dobot Support.
You don’t have wrong hardware, you have the newest model of the conveyor belt. Dobot doesn’t support the distance sensor any longer, because it has made to many problems. Unfortunately you can’t get the distance with a photoelectric switch. It returns 1 or 0, if there is an object or not.

The color should still work with the code above. You only have to change EIO18 to EIO5.
Please let me know, if this was helpful to you.

Kind regards


#8

Finally get color sensor works. This is a really low quality color sensor. Works only about 5mm to 1cm distance with no-reflection objects. If I put near it near than 5mm, can’t tell the color. Yellow is calculated as red. Only, RGB 3 colors work.


#9

Yes, indeed the R G B value of the color sensor can only output 1 or 0, it’s already programmed to be so in the Blockly, so we can only recognize RED GREEN and BLUE.


#10

Thank you so much for sharing information about Conveyor Belt Color Sensor.


#11

This sensor is not working properly. It is creating lots of issues `like Asus Error Code 55. If you have any idea please help me to fix this.