I have purchased a Husky Lens and would like to integrate it into a SCARA robot I made. I found the plans from another website and printed it on a 3d printer. I used the code they provided with an interface.
I am not proficient at code, so my question is how do I code the robot to do a pick and place with a recognized object. Should I use the sample Huskylens code and try to work from that? It’s a little beyond my knowledge right now so any advice is welcomed.
I have have watched Bill’s video and understand I will need to pull the coordinates from the from the serial monitor. Knowing how to code that and use them is another thing. The item picked will most likely be moving slowly down a conveyor belt. So where should the camera mount, on the robot or stationary above the conveyor.
@robotbuilder Thanks for input. I’m trying to make a mini product line that would stack the brackets in a certain number. Other issues I foresee, is the robot fast enough to either catch it with grippers or try using a suction cup/magnet and try to catch it in the middle of the bracket.
Catching a bracket while the conveyor belt is moving might be tricky. Can you control the conveyor belt speed such as stopping it while the object is lifted off? The arm is not all that fast so I assume you have some control over the conveyor belt speed.
What is the purpose of stacking the brackets? Is this just an experiment or something practical?
How do they get on the conveyor belt in the first place?
An electromagnet may be a way to grab metal brackets off the belt as they pass. Then the rotational orientation of the bracket on the arm might be determined for stacking.
By the way it is possible to attach an image if you want to give some visual idea of your setup by clicking the Attach Files option at the bottom of the post with the paper clip image.
Let me just say if you have actually built this robot arm then I am very impressed.
Thanks!
What is the purpose of stacking the brackets? Is this just an experiment or something practical?
It’s kinda both, and experiment that hopefully leads to something practical. The brackets need to be stacked so they can easily be handled to be placed in a package.
How do they get on the conveyor belt in the first place?
That’s a whole neither issue! I guess I’ll figure that out later if I can make the pick and place process work out. I’ve also pondered if the Husky lens could pick them from a random pile.
An electromagnet may be a way to grab metal brackets off the belt as they pass. Then the rotational orientation of the bracket on the arm might be determined for stacking.
A camera could be pointed down ahead of the pick up arm so it would have a clear view. The arm could move into place and grab it at just the right time. It would also be useful if the computer can control the speed of the conveyor belt.
You never indicated the type of L bracket? The easiest to recognize would be the 2d flat L shaped bracket. The other two might be easier for the gripper to pick up (unless a solenoid magnet is used but then how do you orientate it).
To enlarge an image, right click the image and choose Open link in new window.
It may be possible to align the brackets by pouring them onto a sloping table with an edge on the bottom before dropping them onto the conveyor belt.
Of course there is no competition here between the slow robot arm and a human doing the same job 🙂
A camera could be pointed down ahead of the pick up arm so it would have a clear view. The arm could move into place and grab it at just the right time. It would also be useful if the computer can control the speed of the conveyor belt.
Conveyor would be variable speed. I suppose it wouldn’t even need to stop. Missed pickups could be recycled back into the belt. Unless you are thinking to stop the belt each time the camera sees a brackets?
You never indicated the type of L bracket? The easiest to recognize would be the 2d flat L shaped bracket. The other two might be easier for the gripper to pick up (unless a solenoid magnet is used but then how do you orientate it).
Brackets are like the first image but 1.5x1.5x2.5 inches in width. So there could be enough surface to grab it.
To enlarge an image, right click the image and choose Open link in new window.
It may be possible to align the brackets by pouring them onto a sloping table with an edge on the bottom before dropping them onto the conveyor belt.
I’ve tried two conveyors on a 90 and a downward slope from one to the other. That was fairly successful.
Of course there is no competition here between the slow robot arm and a human doing the same job 🙂
Not yet:) I’ve also looked at Delta robots, they are much quicker but the range of motion appears to be a little limited. Thanks for you thoughts, much appreciated.
I think my first step should be to get the lens wired to the Arduino and CNC shield. The Husky lens has 3 wires- power and communication. Would the communication wires go the pins 0 and 1 of the Arduino?
If I know it’s wired properly and can establish communication between the lens and Arduino, then I can approach trying to code it. I’m going to assume that if communication is established and sent to the serial monitor, that’s how to code the robot to somehow go to that position?
@bldrgy I think you should first start with the Husky Lens tutorial, then think about incorporating that into the arm software. Aren't pins 0 and 1 reserved?
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
To day, since I waked up, I challenge this. Hope you appreciate. I refer to this link, HuskyLens/HUSKYLENSArduino (github.com) and I write a less than 30 lignes code. I hope I have wrote it as simple as possible.
With id=0 you can recognize any things that are already in the HuskyLens memory. If you want to recognize your own thing, you have to learn it before. The goal here is simply to print the parameters of an OBJECT_RECOGNITION on the Arduino IDE Monitor.
In your Internet Browser, let say that you look for cats. So you can scan hundreds cats pictures with the HuskyLens. It will recognize them very easily. The same for dogs, horses or cows, etc. Do not hesitate to ask.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
@oracid I am using the normal IDE 1.8.20 When I installed the github download I get the error message. It's simple to fix, just move the code up one level.
Obviously you either did not use the Arduino IDE or you encountered the error and fixed it as well. I have reported it to the maintainers but don't know how long it will take them to respond. For now, just move the source code up one level. See attached pic of correct organization.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
We use cookies on the DroneBot Workshop Forums to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.