This device will output RFID key fobs once an ID card has been imputed in the device.

Created: May 3rd, 2018

0

Product 

Product 1: Sign up

A vending machine at the entrance of a park will dispense RFID tags after parents have scanned their state ID and input credentials. The parent will specify how many children they have and the vending machine will dispense that dumber of RFID shoe clips for the child. After all RFID tags are dispensed, the vending machine will communicate with “home” device. Furthermore, additional clips can be obtained from the vending machine.

0

Parts List

1 x Particle Photon

1 x Servo Motor

1 x Lever Switch

1 x Resistor

7 x Jumper Cables

Wood for housing

Acrylic for housing and pusher arm

0

Wiring

0

Code

0

Concept Render for Clips for Children and Cards for Chaperones

0
Servo myservo;
int buttonPin = D0;
int servoPin = A4;

int initial_position = 180;
int final_position = 120;
int buttonState;


void setup()
{
  Serial.begin(9600);
  // Setup pins
  pinMode(buttonPin, INPUT_PULLUP);
  pinMode(servoPin, OUTPUT);

  // Setup Servo to initial position
  myservo.attach(servoPin);
  myservo.write(initial_position); // Initial
  delay(500);
  myservo.detach();
}


void loop()
{
  // Read button
  buttonState = digitalRead(buttonPin);
  if (buttonState == HIGH)
  {
    Particle.publish("tag_dispensed", "HIGH");
    myservo.attach(servoPin);
    myservo.write(final_position);
    delay(5000);
    myservo.write(initial_position);
    Particle.publish("tag_dispensed", "LOW");
    // Do something
  }
}
Click to Expand
x
Share this Project

Courses

49313 Designing for the Internet of Things (Undergrad)

· 22 members

A hands-on introductory course exploring the Internet of Things and connected product experiences.


About

This device will output RFID key fobs once an ID card has been imputed in the device.