Skip to content

STEM robot attachment to kick a foosball around using raspberry-pi

Notifications You must be signed in to change notification settings

EricRohlfs/UltrasonicStriker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ultrasonic Striker for educational robot that has to strike a small ball to make it move. Usually a ping-pong ball or a foosball.

The parts for this attachment are fairly cheap on ebay.

There is some fabrication needed to make the striker.

Things to learn.

Look in the HowTo folder to see step by step details.

  • Measuring distance with ultrasonic range finder
  • Making stepper motors go left or right
  • Making servo motors go left or right
  • Making a linear actuator go forward and backward (universal car door unlock actuator)
  • Convert electricity from 5v to 12v.
  • Open and run a python program using IDLE

Overall Wiring Diagram

Wiring Diagram

Parts Explained

The Striker

Price: $3.50

The striker is a common car door locker.
Universal Car Door Lock Actuator

The Striker Driver

Price: $2.00

LM298 board.

LM298

Power Supply

Price: $10.00

Any 5 volt portable power bank. Power Bank

Power Converter

Price: $3.50

We need this to convert 5 volts to 12 volt. We are using a buck type of converter. See the very small brass screw, we need to use an Ohm meter and turn the screw to make sure we output 12v and not 35v. 35v will blow up our electronics. Buck Power Up

Ultrasonic Sensor

Price: $2.00

Measures distance using sound

We need to create a voltage divider using two resistors to make this work.

HC-SR04

Stepper Motors

The stepper motors are more precise than servos and we use them to turn the striker head so the ball goes where we want it to go.

Currently we are using a second stepper to turn the ultrasonic range finder, but we may no need this, and instead will turn the whole robot.

Price: $3.00

The stepper motor is a 28BYJ-48.

The motor driver is the unl2003.

Motor and Driver

Servo Motors

Price: $10.00

This is NOT the continuous rotation servo used as the wheels of the robot.

Standard Servo

Servo Motor Driver

Price: $20.00 or $3.00

Adafruit 16 Channel PWM Servo Hat

or if you are on a budget you can use the PCA9685 16 Channel 12-bit PWM

(Please support Adafruit if you can, they have made STEM easy for all of us.)

PWM Servo Hat

Brains

Price: $29.00 - $39.00

Raspberry Pi

Raspberry Pi

Miscellaneous Supplies

  • JB Weld
  • Wooden Dowel - more info soon
  • Jumper Wires - mostly female-to-female
  • Few resistors
  • Soldering Iron and Solder
  • Old USB cable you can destroy

About

STEM robot attachment to kick a foosball around using raspberry-pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published