Build a USB Orange Thrower Machine

by XicoMBD in Circuits > Arduino

3513 Views, 7 Favorites, 0 Comments

Build a USB Orange Thrower Machine

AutonomousOrangeThrowerMachine.png
This step-by-step will show you how to build a Orange Thrower Machine controlled by any computer using a normal USB cable.

It is based on the ancient Trebuchets although it is made of canes and doesn't have the sling. The electronics are very simple, it only needs an arduino and a servo to release the arm. 

I used also an webcam so that it could throw the orange when it detected a certain color, using the application ComputerOnWheelsController  which I created for many different projects like the following one - https://www.instructables.com/id/Make-a-simple-platform-and-give-mobility-to-your-c/, for example.

I built it just for fun and you can see it working here: 


UPDATE:
I decided to build a new one using zip ties instead of sisal rope which has a new release and auto-reload mechanism.
 

Materials and Tools

1 20110708_194331.jpg
1 20110708_194401.jpg
Materials:
  • Tape
  • Counterweight
  • Arduino
  • Servo
  • Wires
  • USB Cable
  • Webcam
  • Computer
Tools:
  • Drill
  • Jigsaw

Build the Structure

1 20110708_193040.jpg
1 20110708_193051.jpg
1 20110708_193140.jpg
IMG_9913.JPG
IMG_9904.JPG
I hadn't made any planning before I started building my structure. I just started cutting and drilling the sections and mounting them together.

Notice that the canes form triangles, reinforcing the structure. This is called triangulation, have a look here: http://www.technologystudent.com/struct1/triag1.htm
  • "A triangular form is one of the strongest shapes known to man. It is not surprising then that ‘triangulation’ is used in the construction of buildings and structures."

See the photos and take inspiration from them if you need.

The Junctions

IMG_9912.JPG
IMG_9903.JPG
20110708_193015 .JPG
20110708_192438 .JPG
20110708_192441 .JPG
20110708_192514 .JPG
20110708_192659 .JPG
20110708_192726 .JPG
20110708_192805 .JPG
20110708_192924 .JPG
20110708_193015 .JPG
How you can see on the photos, firstly I drilled holes in the canes to put there a smaller piece so that they don't move in relation to each other.

Then used the sisal rope to don't let them take apart. 

Build the Arm

1 20110708_193503.jpg
20110708_193514 .JPG
20110708_193511 .JPG
20110708_193519 .JPG
This is how I built the arm. I used three big canes and one smaller.
You can build your how you want, just be sure that is strong enough and that it fits the main structure.

Put the Arm in Its Place

1 20110708_193551.jpg
1 20110708_193658.jpg
That's it, just put it on the top of the main structure, how you can see on the photos. 

Add the Electronics and the Counterweight

IMG_9897.JPG
IMG_9891.JPG
IMG_9880.JPG
20110421_185131 .JPG
20110421_185135 .JPG
20110425_121328 .JPG
20110425_121424 .JPG
20110425_121520 .JPG
20110425_121603 .JPG
20110425_121531 .JPG
20110421_185153 .JPG
Place the servo on the main structure, but under the arm so that you can easily attach the rope lace.

I tried to use a sling but found that the easiest and the most functional way to throw the oranges was simply using a nail, how you can see on the photo.

Place the arduino and the webcam on secure places like the sides of it, but make sure that the camera has a clear view of the front of the machine.

Finally, add a counterweight like a simple rock, a brick or even a bucket full of water or sand.

Now the hardware part is done!

Upload the Sketch

Sem t��tulo.bmp
Connect the USB cable, open the arduino IDE and choose there your board and serial port.

Download and open the attached sketch, or create your own, if you prefer, and upload it to the arduino.

If you want to test it you can simply open the Serial Monitor and send a 'w' to move the servo and throw the orange.

Run the Application

montagem.png
V1 settings.PNG
V1 manual control.PNG
V1 color track.PNG
The machine can be controlled if you use this application: http://www.franciscodias.net/applications/openframeworks/computer-on-wheels-controller. I designed it to be easy and intuitive to use. 

You just need to download it here (http://www.franciscodias.net/downloads/ComputerOnWheelsController.zip?attredirects=0&d=1), unzip it and run the .exe file on the bin folder. If you want to develop it you can open the Code::Blocks project file. If you have any doubts contact me.

The first screen you will see is the "Settings" one (2nd picture). There you will have to choose your webcam and the arduino's serial port. Then you have the "Manual Control" and you can choose the "Color Track" one. 

If you use external software like TeamViewer and GlovePIE you can even control it using another computer, by a smartphone or by wiimote.

 Just use what you prefer ;)