I have already done that. I have another Uno and I hooked it to that and used pin 10 and 11. I did the face recognition and had the coordinates in the serial monitor.
I need help with the best location to wire the Husky to the CNC shield to run the stepper motors.
@bldrgy Sorry, no idea. I don't have any shields or stepper motors.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
I need help with the best location to wire the Husky to the CNC shield to run the stepper motors.
Not sure what you mean by "best location to wire the Huskylens to the shield?
What Pins should I use to connect the communication wires to the shield? I will post the wiring diagram of the shield as it is now.
Is this the shield you are using?
yes that is it.
I should have made the post title "SCARA robot arm and Huskylens" but can't change it now without starting a new post.
From what I have read online I don't see Huskylens returning the orientation of an object?
No I don’t think it will. That’s why if I can catch it with the grippers, it would always be close to the same location in the robot grippers every time. Then I could code the robot to make another movement to place it where I need it. Hope that makes sense.
What Pins should I use to connect the communication wires to the shield? I will post the wiring diagram of the shield as it is now.
The videos I have seen connect the Arduino to a PC via the Serial Port (USB).
The shield probably uses all the pins or at least the same ones as Bill's connections for the Huskylens. I would have to have the shield to inspect what is or is not connected. Maybe pins 0 and 1 (RX,TX) are not connected to the shield.
The Huskylens, if I remember correctly, used the Ardunio IDE Monitor program. The SCARA robot I looked at had a program written in the Processing language and in another video some other special program.
So you want to get input data from the Huskylens (position) and send that to the SCARA arm software that makes all the move decisions. I don't know if you can connect to a single PC using two USB ports, one for the Huskylens and the other for the SCARA arm?
Just for fun I thought I might play around with how I would get the data from images using my own software and a webcam. Example input images below, one from an angle and another from above.
It's simple to fix, just move the code up one level.
I don't understand what it is about. I think you are overestimating my Arduino skills. In fact, I suck. Currently I am using Arduino IDE 1.8.15. Anyway, I don't have this type of problem with my HuskyLens, but thanks for the information, I take note of all this and put it in the back of my mind.
What Pins should I use to connect the communication wires to the shield? I will post the wiring diagram of the shield as it is now.
The videos I have seen connect the Arduino to a PC via the Serial Port (USB).
The shield probably uses all the pins or at least the same ones as Bill's connections for the Huskylens. I would have to have the shield to inspect what is or is not connected. Maybe pins 0 and 1 (RX,TX) are not connected to the shield.
The Huskylens, if I remember correctly, used the Ardunio IDE Monitor program. The SCARA robot I looked at had a program written in the Processing language and in another video some other special program.
So you want to get input data from the Huskylens (position) and send that to the SCARA arm software that makes all the move decisions. I don't know if you can connect to a single PC using two USB ports, one for the Huskylens and the other for the SCARA arm?
I assume it would be simpler to use the Huskylens example code and add to it for positioning of the robot?? Collecting data from Huskylens then sending it to the current processing language seems a little clunky. Your thoughts?
- The PC is connected to the Nano usb connector. - The Arduino Nano is clipped on a shield. - The Arm is connected to the shield digital pins. - The HuskyLens is connected to the shield I2C connector.
So, you need one Nano and one shield. And, that's it !
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
@bldrgy Every robotic or artificial vision system I have seen the re-orientation is done in software. The reason is it is faster and has to be done prior to moving any robotic parts anyway so may as well save the time.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
I assume it would be simpler to use the Huskylens example code and add to it for positioning of the robot?? Collecting data from Huskylens then sending it to the current processing language seems a little clunky. Your thoughts?
The Huskylens will apparently provide the position of an object but then you have to compute the stepper movements required by the SCARA arm and I am not sure if the required computations can be done in the Arduino alone.
This might help you, or someone with the know how on the forum, to work out a solution to connect the Huskylens to an Arduino with the cnc shield attached.
- The PC is connected to the Nano usb connector. - The Arduino Nano is clipped on a shield. - The Arm is connected to the shield digital pins. - The HuskyLens is connected to the shield I2C connector.
So, you need one Nano and one shield. And, that's it !
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.