Table Tennis Ball Smasher Machine

Enhance your table tennis skills with our ball smasher machine, which provides easy control via an Android app.

AdvancedFull instructions provided3 days2,048
Table Tennis Ball Smasher Machine

Things used in this project

Hardware components

MSP-EXP430G2 MSP430 LaunchPad
Texas Instruments MSP-EXP430G2 MSP430 LaunchPad
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Dual H-Bridge motor drivers L298
SparkFun Dual H-Bridge motor drivers L298
×1
DC motor (generic)
×2

Software apps and online services

Energia
Texas Instruments Energia
MIT App Inventor 2
MIT App Inventor 2

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Schematics

CIRCUIT DIAGRAM

Code

Ball Smasher DC Motor Control

Arduino
Receive data from bluetooth and adjust the speed of dc motor using analogWrite function
int a;  // declare an integer a to store incoming serial data

void setup() 
{
  // put your setup code here, to run once:

  // enable 6 msp pins as output
  pinMode(11,OUTPUT); 
  pinMode(12,OUTPUT);
  pinMode(13,OUTPUT);
  pinMode(9,OUTPUT);
  pinMode(8,OUTPUT);
  pinMode(7,OUTPUT);
  
  Serial.begin(9600);  // enable serial communication

  // initially all the pins are at low state
  digitalWrite(12,LOW);
  digitalWrite(11,LOW);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
}

void loop() 
{
  // put your main code here, to run repeatedly: 
  if (Serial.available()>0)  // when the incoming byte > 0
  {
    a=Serial.parseInt();  // read the bit and store in ‘a’
    
    if ((a>1) && (a<256))
    {
      digitalWrite(12,HIGH);
      digitalWrite(11,LOW);
      analogWrite(13,a);
      digitalWrite(7,HIGH);
      digitalWrite(8,LOW);
      analogWrite(9,a);
      Serial.println(a);  // Serially prints the value of a
    } 
    else if(a==1) 
    {
      digitalWrite(12,LOW);
      digitalWrite(11,LOW);
      analogWrite(13,a);
      digitalWrite(7,LOW);
      digitalWrite(8,LOW);
      analogWrite(9,a);
      Serial.println(a);  // Serially prints the value of a
    } 
    else
    {
      Serial.println(a);  // Serially prints the value of a
    }
    delay(1000);
  }
}

Credits

Dr. Umesh Dutta

Dr. Umesh Dutta

38 projects • 53 followers
Working as Director of Innovation Centre at Manav Rachna, India. I am into development for the last 12 years.
Texas Instruments University Program

Texas Instruments University Program

91 projects • 119 followers
TI helps students discover what's possible to engineer their future.
Energia

Energia

34 projects • 26 followers
Founder of @energiaproject
Shivam Gupta

Shivam Gupta

10 projects • 6 followers
hmsgupta.3062@gmail.com
devdutt

devdutt

10 projects • 9 followers
Robotic Gold Medalist at IIT Guwahati and Embedded,Hardware Developer at Manav Rachna Innovation and Incubation Centre
Ritick sethi

Ritick sethi

9 projects • 5 followers
sarika gaind

sarika gaind

0 projects • 0 followers
DEEPAK GAUBA

DEEPAK GAUBA

0 projects • 0 followers
Shubham Budhiraja

Shubham Budhiraja

0 projects • 0 followers

Comments