diff --git a/README.md b/README.md index fe09d30..0d7dfe2 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,6 @@ ## Some simple and fun robotics projects -[pong-catapult.md](lego-ev3/pong-catapult/pong-catapult.md) \ No newline at end of file +[pong-catapult.md](lego-ev3/pong-catapult/pong-catapult.md) + +[hit-with-stick.md](arduino/hit-with-stick/hit-with-stick.md) \ No newline at end of file diff --git a/arduino/hit-with-stick/hit-with-stick-1.png b/arduino/hit-with-stick/hit-with-stick-1.png new file mode 100644 index 0000000..d3f96bc Binary files /dev/null and b/arduino/hit-with-stick/hit-with-stick-1.png differ diff --git a/arduino/hit-with-stick/hit-with-stick-2.png b/arduino/hit-with-stick/hit-with-stick-2.png new file mode 100644 index 0000000..452eb59 Binary files /dev/null and b/arduino/hit-with-stick/hit-with-stick-2.png differ diff --git a/arduino/hit-with-stick/hit-with-stick-3.png b/arduino/hit-with-stick/hit-with-stick-3.png new file mode 100644 index 0000000..1202c35 Binary files /dev/null and b/arduino/hit-with-stick/hit-with-stick-3.png differ diff --git a/arduino/hit-with-stick/hit-with-stick-4.png b/arduino/hit-with-stick/hit-with-stick-4.png new file mode 100644 index 0000000..c0c6380 Binary files /dev/null and b/arduino/hit-with-stick/hit-with-stick-4.png differ diff --git a/arduino/hit-with-stick/hit-with-stick-5.png b/arduino/hit-with-stick/hit-with-stick-5.png new file mode 100644 index 0000000..4c4bb24 Binary files /dev/null and b/arduino/hit-with-stick/hit-with-stick-5.png differ diff --git a/arduino/hit-with-stick/hit-with-stick-6.png b/arduino/hit-with-stick/hit-with-stick-6.png new file mode 100644 index 0000000..53f8961 Binary files /dev/null and b/arduino/hit-with-stick/hit-with-stick-6.png differ diff --git a/arduino/hit-with-stick/hit-with-stick-photos.md b/arduino/hit-with-stick/hit-with-stick-photos.md new file mode 100644 index 0000000..e23fd9b --- /dev/null +++ b/arduino/hit-with-stick/hit-with-stick-photos.md @@ -0,0 +1,17 @@ + + +![hit-with-stick-1.png](hit-with-stick-1.png) + +![hit-with-stick-2.png](hit-with-stick-2.png) + +![hit-with-stick-3.png](hit-with-stick-3.png) + +![hit-with-stick-4.png](hit-with-stick-4.png) + +![hit-with-stick-5.png](hit-with-stick-5.png) + +![hit-with-stick-6.png](hit-with-stick-6.png) + +Video: + +https://www.youtube.com/watch?v=RTrSjhRTgA0 \ No newline at end of file diff --git a/arduino/hit-with-stick/hit-with-stick.md b/arduino/hit-with-stick/hit-with-stick.md new file mode 100644 index 0000000..79016da --- /dev/null +++ b/arduino/hit-with-stick/hit-with-stick.md @@ -0,0 +1,79 @@ + + +# hit with stick robot + +Can I build an interesting robot below 10€, that could be a prototype for robotics competition? + +Robot will scan for targets in 180 degrees arc, and will try to hit targets that are not too close or too far. + +Lot of room for improvements, but good enough for proof of concept. + +Photos and video: [hit-with-stick-photos.md](hit-with-stick-photos.md) + + +## Required components + +- nodemcu/arduino +- breadboard +- 2x servo (SG90) +- Ultrasonic Distance Sensor (HC-SR04) +- 3x 1kOhm resistors +- ~20 wires +- couple of sticks for arms +- some way to attach everything together + +Total cost ~15€ . + +## Steps + +1. Get components. +2. Download arduino IDE. +3. Connect and test a simple program with blinking light. +4. Assemble components according to the diagram below. +5. Connect to the computer and upload program. + 1. https://git.makerobots.eu/konstantin/arduino-robots/src/branch/main/src/2026-06-18_hit-with-stick/2026-06-18_hit-with-stick.ino . +6. Iterate and find distances and delays that work for your setup. + 1. Min 10cm, max 20cm for detection. + 2. Offset if hitting stick is not centered. + 3. How fast could you make it without missing targets or hitting ones that are too close? + + + +## wiring diagram + +``` + 5V Power Bank + + - + | | + | +-------------------- GND ------------------+ + | | + | | + +----+-------------------+----------------+ | + | | | | + Servo 1 Servo 2 NodeMCU VIN | + Red wire Red wire (5V in) | + | | | | + | | | | + Signal D5 Signal D6 GND ---------+ + + HC-SR04 + VCC ---------------------- 5V + GND ---------------------- GND + TRIG --------------------- D1 + ECHO -- voltage divider -- D2 + +HC-SR04 Echo + | + 1kΩ + | + +----> NodeMCU D2 + | + 2kΩ + | + GND +``` + + + + +