1.3 KiB
1.3 KiB
pong catapult
One of the easiest robotics projects, with a single motor and repeatable interactions.
Distance where the ball launched could be controlled with motor speed.
Photos and video: lego-catapult-photos.md
Required components
- Lego Ev3
- wifi dongle
- microsd card
- some lego parts
- several ping pong balls
Steps
- Install linux on sd card for ev3 brick.
https://www.ev3dev.org/docs/getting-started/
- Download, unzip.
- If linux:
sudo dd if=ev3dev-stretch-ev3-generic-2020-04-10.img of=/dev/sdb bs=4M status=progress conv=fsync- then
sync
- then
- If windows: use win32diskimager or similar app.
- Wait 2-10 minutes so OS image is written to the card.
- Turn on, connect to wifi.
- Test app for motors.
- Get the project from https://git.makerobots.eu/konstantin/lego-ev3-java .
- Update IP address.
- Connect motor to port A .
- Run gradle deployAndBrickRun task.
- When the brick beeped, press the right button to test motor.
- Assemble a sturdy structure with a motor.
- Place ball and test.
- Iterate (structure and code) and try to launch a pong ball:
- as far as possible
- as high as possible
- exactly 30 cm (use the plastic cup or some bowl)
- exactly 1-meter distance.