Table Runner

SRJT08105

Jugaadu's family invited family friends for a get-together dinner at home. As all will be sitting together for the dinner, they ask their son Jugaadu to make something which automatically serves things on the dining table and never fall out of the table. Let's help him?

Bag Items:

  1. Arduino UNO
  2. Arduino UNO Cable
  3. Bread Board
  4. Motor Driver
  5. IR Sensor
  6. LED
  7. Hookup Wire
  8. BO Motor
  9. BO Motor Wheel
  10. Screw Driver
  11. Free Wheel
  12. Nut Bolt
  13. 9V Battery
  14. L Clip
  15. Jumper Wires
  16. Battery Connector

"

We can make use of an Arduino UNO based bot which can move linearly and will stop for a while as soon as it detects the obstacle i.e human s in this case. Obstacle detection can be done using IR sensors that gives input to the Arduino UNO. Therefore, the Table runner will stop for a while to let the family have the dish. To avoid the food falling from the table, we can make use of cover touch. Hence, as long as it touches the cover, it will move else it will stop.

    int ir=7;       
int lm1=10;
int lm2=11;
int rm1=8;
int rm2=9;
int LED=12;
int cover=HIGH;

void setup()
{
  Serial.begin(9600);
  pinMode(lm1, OUTPUT);
  pinMode(lm2, OUTPUT);
  pinMode(rm1, OUTPUT);
  pinMode(rm2, OUTPUT);
  pinMode(LED, OUTPUT);
  pinMode(ir, INPUT);
}

void loop()
{
  
  cover=digitalRead(ir);
if(cover==LOW)
{
digitalWrite(rm1,HIGH);
digitalWrite(rm2,LOW);
digitalWrite(lm1,HIGH);
digitalWrite(lm2,LOW);
digitalWrite(LED,HIGH);
}
else
{
digitalWrite(rm1,LOW);
digitalWrite(rm2,LOW);
digitalWrite(lm1,LOW);
digitalWrite(lm2,LOW);
digitalWrite(LED,LOW);
}
}