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,103
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
42 projects • 60 followers
Working as Director of Innovation Centre at Manav Rachna, India. I am into development for the last 12 years.
Contact
Texas Instruments University Program
91 projects • 120 followers
TI helps students discover what's possible to engineer their future.
Contact
Energia
34 projects • 26 followers
Founder of @energiaproject
Contact
Shivam Gupta
10 projects • 6 followers
hmsgupta.3062@gmail.com
Contact
devdutt
10 projects • 9 followers
Robotic Gold Medalist at IIT Guwahati and Embedded,Hardware Developer at Manav Rachna Innovation and Incubation Centre
Contact
Ritick sethi
9 projects • 5 followers
Contact
sarika gaind
0 projects • 0 followers
Contact
DEEPAK GAUBA
0 projects • 0 followers
Contact
Shubham Budhiraja
0 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.