![Lego sorter head Lego sorter head](http://thetechnicgear.com/wp-content/uploads/2014/02/color-sorter-3-550x249.png)
It has been almost six months since EV3 was released and I recently realized I haven’t really played that much with it. In fact, if you follow the blog you will realize that I have done little Technic stuff too.
This is the 'Ball Kicker' LEGO Mindstorms NXT project from www.nxtprograms.com. See free building instructions and downloadable programs at. Chapter 8 from the book LEGO MINDSTORMS NXT One Kit Wonders. This chapter introduces building and programming instructions for a fully.
LEGO is so addictive So I decided that it was time to play again with Mindstorms EV3. Have you see my review of it? If you recall the project available are robots like, or some of the others.
They looks awesome but really I don’t find them useful. So I decided that a nice project would be to use the machines and robots from NXT 2.0 set in the EV3. So, here it is the Color Sort3r:). Ads by Google It is mostly the color sorter provided by NXT 2.0 instructions but I did some changes on the rotating tray as well as using other colors different of the one provided in NXT 2.0 instructions The point behind Color sorter is to show the usage of Color sensor and Touch sensors.
Keep in mind that you will have a hard time making this work with just EV3 because you need two touch sensors. 1st step: Ball dispenser This is the first stage and it will set the base for the rest of the project, so it is quite complex to build with lots of steps, please refer to the Mindstorms NXT 2.0 instructions about how to build it. The overall idea is to make the dispenser drop a ball at a time.
My changes has been related to using gears instead of knobs because I though it would be smoother but there is seems to be some serious backslash that damage precision. Also as the EV3 brick is different of the NXT 2.0 brick I had to do small changes to the way it is attached to the machine. So here it is working. Ball dispenser EV3 program And here is the EV3 code. It is the first EV3 program that I do without any external help and I really find the language exasperating. Definitively I am going to grab something else to code this afternoon. One nice difference between the EV3 and the NXT 2.0 graphical language is that in the switch block you can add cases using colors, instead of the cascade of if blocks on the NXT 2.0 Problems with Ball Dispenser This model has a serious flaw in the dispenser tray as sometimes all the balls get stuck and none is dropped.
Problem: Dispenser’s tray don’t move This can be caused by different things. A) Please check all the cables are correctly connected. Ok, now check which cable goes to the motor that moves the tray ( the one that is further from you ) and check that it is the same you are operating at EV3 program. Is it the same? C) Still with problems?
Check that the gear attached to the motor can operate freely. I did some mistakes building and one axle was blocking the gear. I did a little-modification to make the tray moves higher but it resulted in the tray not operating as expected, so make sure the beam that link the gear and the tray is 9U long. Problem: Ball don’t fall Shit happens. The way the tray is designed can ( and will ) make balls to block other balls from failing into the pit.
I will show you some mods at the end to make it perform better. 2nd step: Color detector Ok, balls are now dispensed from the tray one by one. You better run the machine inside a box or you will be chasing balls all around the house. So, in this new step we want to detect the color the ball has, so we can place it in a bucket of the rotating tray.
I used the color sensor from NXT 2.0 set because ehmmm I did a mistake. The Color sensor of the EV3 works better. There is very little to build in this step so let’s see the code.
Color detector EV3 program So here is the code. In this step, we reuse the previous code and add a switch block with a case for each color we have: blue, red, yellow and green as a well as a case for the no color event.
Problems with Color detector Ball don’t fall I had this problem, now and when I built it using the NXT 2.0 set, just add a bit of space between the color sensor and the balls by raising it half stud at least. Ball isn’t correctly detected That happens sometimes if the light setting isn’t correct. Try a darker area away of direct sunlight, also it can happen if the color sensor is too far from the ball. 3rd step: Sorting tray Again, you have so little to build here. The tray is pretty simple, you just need to be sure that the tray and the motor is aligned as explained in the instructions. I have had some problems making it work correctly because I used gears instead of the knob gear that the manual proposed. It seems it wasn’t so good idea after all.
Sorting Tray program Here is the code. As you see it is pretty much the same with two minor additions, the initialization of the sorting tray and making it turns, 0, 90, 180 or 270 degrees depending on the detected color. Problems with Sorting Tray Tray doesn’t rotate Check the motor, the one closer to you, is correctly plug and that you are sending commands to the right port.
Also make sure there is nothing blocking it. Ball doesn’t fall into the tray This is mainly because you didn’t correctly aligned the tray. You have two options, take the tray away, turns the motor until it is correctly aligned and then place the tray again in the machine.
Another option, that it is the one that I used is to correct the tray position inside the code. I found that when kids handled the machine the tray accidentally got blocked a few times and so I had to rewrite the tray initilization code twice. Don’t let kids play with the machine:) #easyfix Wrong container chosen It can happen because of two things: a) It can be a fault of the color sensor that sometimes on some conditions can mistake a ball’s color. Try making less room between the ball and the sensor.
B) It can also happen because of the above problem that the tray gets misaligned. Ball launcher Nah! I refuse to build this part. Do you know how hard and painful it was to look for missing balls after?!
Download EV3 project file for Color Sorter FREE Miguel says I have always said the same since I opened the EV3 box that the NXT 2.0 robots and machines were more interesting. This machine shows how to build a robot that can sort stuff based on color and I will show you on my next Mindstorms posts that with some modifications it can be adapted to other sorting purposes.
Hey you all, 1-st Thanks for watching this video 🙂! Well, it’s my 1 builds with NXT Lego Mindstorms, and it’s a colour ball sorter, it sorts blue and white balls as u saw. I made it my self, i had 1 similar sorter too but it didn’t work coz of the heavy weight and “bad” gearing for turning. Building: The sorter itself, its based on tutorial found on internet, but i built it only with 9797 kit so i hadn’t got those pieces needed and modified it really much. If someone wants then i could upload or send pictures of that or building instructions. Program: Original had a colour sensor, i don’t have it, so the program found in the internet didn’t work either, i made myself one. It is really simple actually, switch-(light sensor switch)- true and false, one ball had about 32% of reflected light(white), and blue one 60% (dont remember then exactly.) but yeah, if it is under 50% reflected light then it turned right and put the white ball to right, if it was more than 50% then turned left have any questions ask free, subscribe,comment and rate!
Feel free to ask. More videos coming soon. Thx to account: cublub92 for the intro template dont mind this here: tags nxt lego mindstorm colour color ball sort sorter edu education white blue light sensor motor brain brick myself program tutorial instruction bot robot kit 9797 car bike wheel wire video complete sorting mindstorms comment rate subscribe stuntboyNRG500 picture something Duration: 0:3:48.