T&T Confettinator

From DigitalCraft_Wiki
Jump to navigation Jump to search

THE PROJECT

We knew that our 'enemy' was going build a confetti machine so we had to build a robot that counters it. We talked about different options like : magnetic field (van de graaf generator), static charge, flamethrower and stickiness.

research

First we started doing research about the magnetic field but we realized that it wouldn't be possible because it couldn't be close to electric devices. Then we thought about applying sticky material to the wheels that would collect the confetti the most efficient way. We tried to put clothing rollers, different types of tapes to the wheels. We didn't choose to use this as the main function because we wanted to add a more technical approach.

We looked at options and choose to use a ventilator that could blow away the confetti. We wanted to operate the ventilator remotely controlled. We opened the car to see how the electrical part is working. Our car is radio controlled. The transmitter sends a control signal to the receiver using radio waves, which then drives the motor. It has two motors, one in the back to control the speed and one in the front that controls the directions.

We realized that if we would only connect the ventilation to the speed of the car, it wouldn't be efficient because we had to drive fast for a optimum operation. To operate the ventilator from a distance like the car, we wanted to control it separately. We decided to hack a doorbell. We found out after researching all the components separately that the chips looks a lot like the chips of the radio controlled car. The preset features like turning left and right, forward en backward where used for the different tunes. While trying to figure out what the pulse voltage was it wasn't working anymore. The reason was that when you touch the radio-tranciever the frequency changes slightly, what resulted in a de-sinc of the sender and receiver.

We also attach an external battery to the arduino. The board can operate on an external supply of 6 to 20 volts. The recommended range is 7 to 12 volts. We used 9 V. We connected the + end of your battery to Arduino Vin and the - end to Arduino ground. The green light on the Arduino turned on to indicate that it is powered.


Group roles

We build the confetti machine together. Each person did research about an option we could use. The writing and wiki we did together.

CODE

We took an existing code and modified it for our purpose.

original code:

/*
Adafruit Arduino - Lesson 13. DC Motor
*/


int motorPin = 3;
 
void setup() 
{ 
  pinMode(motorPin, OUTPUT);
  Serial.begin(9600);
  while (! Serial);
  Serial.println("Speed 0 to 255");
} 
 
 
void loop() 
{ 
  if (Serial.available())
  {
    int speed = Serial.parseInt();
    if (speed >= 0 && speed <= 255)
    {
      analogWrite(motorPin, speed);
    }
  }
} 


Midified code: Changes in the code

/*
Adafruit Arduino - Lesson 13. DC Motor
*/


int motorPin = 3;
int buttonPin = 2;
int led=13;
int speed = 255;
 
void setup() 
{ 
  pinMode(motorPin, OUTPUT);
  pinMode(buttonPin, INPUT);
  pinMode(led, OUTPUT);
  digitalWrite(motorPin, LOW);

  //analogWrite(motorPin, speed);  
} 
 
 
void loop() 
{
if (digitalRead(buttonPin));
  // read the state of the pushbutton value:
  int buttonState = digitalRead(buttonPin);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is HIGH:
  if (buttonState == HIGH) { 
    // turn LED on:
    digitalWrite(led, HIGH);    
    digitalWrite(motorPin, HIGH);  
  }
 
  else {
    // turn LED off:
    digitalWrite(led, LOW);
    digitalWrite(motorPin, LOW);
  }
}

CIRCUIT

Confettinator bb.png


Confettinator schema.png


PROCESS PICTURES

IMG 7903.JPG


IMG 7904.JPG


IMG 7905.JPG


IMG 7906.JPG


IMG 7908.JPG


IMG 7910.JPG


Foto 06-10-14 10 47 35.jpg


Foto 06-10-14 10 54 12.jpg


Foto 27-10-14 11 20 48.jpg



END RESULD PICTURES

Foto 27-10-14 11 51 31.jpg


Foto 27-10-14 11 54 32.jpg


20141028 103649.jpg