Kitty Candy Cannon

Kitty Candy Cannon

prusaprinters

<h3>Kitty candy cannon</h3><h3>An introduction</h3><p>First off, I'm a novice at both CAD and Arduino. This was a project for me to learn a little of both. It's probably faster (definately cheaper) to just throw candy to your cat.</p><p>As you can see in the videos Harry is as excited as me to finally see this thing in working order. Ungrateful cat...</p><h3>The cannon</h3><p>The cannon has a magazine holding 9 candies. When the button is pressed a servo pushes the magazine forward, dropping a candy down to the trigger. Then it moves to a random horizontal and vertical position. When in position the motor rotates the axle pushing the trigger back until it fires. After firing it goes back to it's original position.</p><h3>Printed parts</h3><p>All stl:s are placed in the way they need to be printed for strength, detail and so on.<br>I've tried to minimize the need for supports but some of the parts have to have them, and a few of the taller parts need a brim to stick to the build plate.</p><p>The Reloader base has supports included in the stl so you'll only have to add a brim for that part. Just break them off when you're finished printing.</p><h3>Assembly</h3><h3>Electronics box</h3><p>Glue the servo holder and the axle in place. When the glue is dry, screw the servo in place. The indent with the slots are for holding the trigger button.</p><h3>Base</h3><p>Glue the servo holders and rotator in place. When the glue has dried you can screw the larger servo in place. When you put this on the axle on the electronics box you can add the wire going from the box's servo to the rotator.</p><h3>Cannon</h3><p>Attach the motor axle to the motor and slide it in place. Put the spring on the firing pin guide and add shims if necessary. Insert the guide in the firing pin, compress it and push it in place.</p><p>Hold the trigger axle in place, add some glue and push the axle studs in. Also glue the lifter anchor in place.<br>You'll need a piece of at least 1,5mm thick wire to attach the lifter servo to the anchor on the cannon.</p><h3>Reloader</h3><p>Slide the magazine in place and attach a rubber band from the magazine to the reloader base. Push the magazine catch in place. The catch will keep the magazine in position when the servo moves back to reload. Insert the magazine pusher in the servo attachment and screw that onto your servo. Then screw the servo in place</p><h3>Lego wiring</h3><p><strong>GND: Ground wire – 0V*</strong>C1: Control 1 - 9V when in forward<i> **C2: Control 2 – 9V when in reverse</i> *<i>9V: Power wire – 9V always</i> If you've got an extension wire, just cut it in half and solder breadboard connectors to both. You'll need one for connecting the battery box, and one for the motor.</p><p>For the battery box you use the 9V (red) and GND (blue) wires, so insulate both control wires (green).</p><p>For the motor you'll use the control wires so insulate the GND (blue) and 9V (red) wires.</p><h3>Arduino wiring</h3><p>I used a motor shield so the motor goes to the shield's A1 and A2 connectors. The battery box goes both to the motor shields power input and the power rail on the breadboard to feed the servos. Make sure the motor shield jumper is set to use external power.<br>The 4xAA battery box goes in the arduino</p><h3>Code</h3><p>The only thing you'll have to modify in the code is the positions of the servos. All positions are set at the top of KittyCandyCannon.ino. The positions will probably need a little triming in.</p><h3>Hardware</h3><p>What you'll need other than the printed parts are:</p><ul><li>Arduino + wires</li><li>Motor/servo shield</li><li>Breadboard</li><li>Lego 8881 battery box</li><li>Lego 88003 L-motor</li><li>Lego 8886 extension wire (for not cutting the original wire)</li><li>2 x micro servos (800g)</li><li>1 x standard servo (&gt;4kg)</li><li>4 x AA battery holder</li><li>Wire for servos</li><li>Rubber band (for the magazine)</li><li>2 x 4mm nuts &amp; bolts (for the cannon hinge)</li><li>10 x AA batteries</li><li>Glue</li></ul><figure class="media"><oembed url="https://www.youtube.com/watch?v=I9LZMGxK5ME"></oembed></figure><figure class="media"><oembed url="https://www.youtube.com/watch?v=QlNiYxCDKL8"></oembed></figure>

Download Model from prusaprinters

With this file you will be able to print Kitty Candy Cannon with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Kitty Candy Cannon.