How to Combine UArm With Slider

by Ufactory in Circuits > Robots

7903 Views, 97 Favorites, 0 Comments

How to Combine UArm With Slider

uArm Swift Pro-Slider
导轨视频封面-6.png

Hi Everyone, it's been a long time since the last post. And we are back! We want to show you something new, and combine it with uArm to see what we got. Actually, there are million things could be done to uArm, but what we do today is something special. With ultrasonic sensor and color sensor, the slider enables uArm to carry a cube automatically from one side to the other.

Ok, let's begin. There are few steps to make it happen.

Let's Get Started

guiderail1.jpg

Hardware:

1. Slider * 1

2. uArm Swift Pro* 1

3. Target Object(Red Cube, Green Cube,Yellow Cube)* 1

4. USB Type C line & uArm 30P Bottom Expansion Plate * 1

5. LCD * 1

6. Color Sensor * 1

7. Ultrasonic Sensor * 1

8. Control Board * 1

9. Drag Chain * 1

10. Power adapter * 1

Software:

1. Arduino IDE

2. Slider.ino for Arduino Mega 2560

3. uArmSwiftPro_2ndUART.hex for uArm

Software Installation

guiderail2.png

1. Download the hex.

2. Download and extract XLoader.

3. Open XLoader and select your uArm's COM port from the drop down menu on the lower left.

4. Select the appropriate device from the dropdown list titled "Device".

5. Check that Xloader set the correct baud rate for the device: 115200 for Mega (ATMEGA2560).

6. Now use the browse button on the top right of the form to browse to your hex file.

7. Once your hex file is selected, click "Upload". The upload process generally takes about 10 seconds to finish. Once completed, a message will appear in the bottom left corner of XLoader telling you how many bytes were uploaded. If there is an error, it would show the total bytes uploaded instead. Steps should be similar and may be done through the command prompt.

Install Master Control Board: Put the Main Control Board on the Base of the Slider

guiderail3.png

Install Slot: Put the Slot on the Corresponding Position of the Slider

guiderail4.png

Install Ultrasonic Sensor: Put the Ultrasonic Sensor on the Corresponding Position of the Slider; Connect the Ultrasonic Sensor to the D10-D11 Port of the Expansion Board

guiderail5.png
guiderail6.png

Install Color Sensor: Connect the Color Sensor to the IIC Port of the Expansion Board

guiderail7.png

Install LCD Display: Connect the LCD Display to the IIC Port of the Expansion Board

guiderail8.png

Install UArm Power Terminal: Connect the Power Line of the UArm to the Main Control Board

guiderail9.png

Install USB Type C Line: Connect the Type C Line to the Main Control Board

guiderail10.png

Install UArm 30P Bottom Expansion Board: Install the UArm 30P Bottom Extension Board to the Back of UArm

guiderail11.png

Fixed UArm: Attach the UArm to the Slider Mounting Plate

guiderail12.png

Plug in UArm Power and USB Cord: Connect UArm Power Line and Type C Communication Cord to UArm

guiderail13.png

Operation

After we finished the installation, what's next?

It's time to run it !!!

Move UArm to the Starting Point: Near the End of Ultrasonic Sensor, But Remember to Leave Some Space

guiderail14_meitu_12.jpg

Press the Power Button

guiderail15_meitu_13.jpg

Use 12V Power Adapter to Power Up the Whole System, Then UArm Will Reach the Initial Position

guiderail16_meitu_14.jpg

Put the Cube on the Color Sensor and Wait for UArm to Grab It

guiderail17_meitu_15.jpg

For the first time we use, adjust the position of color sensor to match the position of uArm.

*Now three colors are supported: Red, Yellow, and Green.

Firmware Reset

guiderail18.png

In the first step, a special firmware for the slider was added to the uArm Swift Pro. The special firmware will stop the connection between uArm and uArm Studio. If you want to control uArm with uArm Studio, please follow the following steps to reset the firmware:

1. Connect the uArm Swift Pro to your computer, open XLoader, and load swiftpro3.2.0.hex.

2. Click the "upload" button to upload the hex to uArm Swift Pro.

Firmware Re-written

guiderail18.jpg

The firmware Arduino Mega2560 has been set before it shipped. If the firmware need to be re-written, please refer to the following steps:

(1) Download firmware: Slider.ino for Arduino Mega 2560

(2) Connect Mega2560 to the computer via USB cable.

Open Firmware in the Arduino IDE and Send the Firmware to Arduino Mega2560 With the Parameters Shown Below

guiderail19.png
guiderail20.png

Ok, that's all the things i want to share with you today. Hope you enjoy playing uArm with this lovely Slider!

_______________________________________________________

Created by UFACTORY Team

Email: info@ufactory.cc

Facebook: @Ufactory2013

Official web: www.ufactory.cc