Recommendations on color sensor

We are wanting to add a sensor to our intake to toss out the wrong color. We are also using block coding. Can anyone give us an example how you would do that?

There are multiple sensors that work. You could use optical, vision(maybe), or ai vision. Using block coding you would have a forever block that has a delay of whatever you want, but generally you want a 1/3 of a second between each snapshot. Hope this helps

We have a vision sensor. We are trying to figure out how to use it effectively. We thought about building something like a piston that will eject the wrong color ring, not sure exactly how we are going to do that. We are still brainstorming all our options. We haven’t had any luck finding any robots on youtube that explains the color sensor. Thank you for your input!

Other teams simply make the intake run a certain way so that the ring either doesn’t land on the mobile goal or pops out in the front (depends on design). That way, all they need to add for color sorting will be a sensor, while the rest is taken care of in code.

Ofc, one way to use it effectively though is if you have a hook intake to briefly stop the intake so the ring goes flying. Ifyou have a hood intake a piston isnt a bad idea but you would have to worry about air.

1 Like

We’re trying to figure out how we can kick the wrong colored ring off when it gets to the top of the intake.

Because hook requires the hook to actually rotate down to put the ring on the mobile goal. As soon as the ring is out of the way, the intake can keep moving.

I’m not sure if I’m following you. Can you give me an example?

I’m not sure how to give an example, but I’ll elaborate.
The hook intake works by hooking onto the ring and then flipping over the ring. Somewhere between the moment the ring starts flipping and the moment the ring lands on the mobile goal, there is a brief period of time where, if the intake stops moving, the ring will “unhook” itself and go flying because of inertia. (During that period of time, there is nothing stopping the ring from flying off.)

Makes sense, thank you! We were thinking we had to build something to physically remove the we wrong color ring.