Giter Site home page Giter Site logo

alexgustafsson / mindstorms-catapult Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 20.93 MB

A very strong and robust design for a fully automatic LEGO catapult

License: The Unlicense

Python 100.00%
mindstorms lego leocad robotics lego-mindstorms ev3

mindstorms-catapult's Introduction

Mindstorms Catapult

A very strong and robust design for a fully automatic LEGO catapult

Preview

Note: A high resolution version of the GIF is available in the renders directory.

Many thanks to Marcus Lenander for helping create the design!

Setting up

Building

The file catapult.mpd contains a 3D model created in LeoCAD. Open it using LeoCAD and use it as a reference when building. One can also open one of either catapult.3ds or catapult.dae as a reference.

After the catapult has been built, 6-8 rubber bands or springs can be added to make the catapult function. A string between the base wheel and the arm also needs to be attached.

Programming

An example class built around the catapult can be found in catapult.py. This class assumes that an EV3 brick running the official micropython runtime is used to power the catapult.

from pybricks.parameters import (SoundFile, Color, Port)

from catapult import Catapult

catapult = Catapult(Port.A, Port.B)
catapult.reset()

catapult.safe_lock()
catapult.retract(100)
catapult.unlock()

Note that the catapult arm is very strong and may damage itself if used incorrectly. Read through the provided class and always be ready to stop the execution of the program.

Renders

Hero

Hero

Hero

Hero

Hero

Contributing

Any contribution is welcome. If you're not able to code it yourself, perhaps someone else is - so post an issue if there's anything on your mind.

Disclaimer

Although the project is very capable, it is not built with production in mind. Therefore there might be complications when trying to use the catapult for large-scale projects meant for the public. The project was created to easily throw projectiles in a strong and automated way and as such it might not promote best practices nor be performant.

mindstorms-catapult's People

Contributors

alexgustafsson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

mindstorms-catapult's Issues

Add parts list

Add a parts list to the README. Also add a link to any third-party models.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.