Smiilo
Published © GPL3+

Smile Machine

Dispense candy with your smile, using Google's ML Kit facial recognition and Particle Photon.

IntermediateFull instructions provided4 hours355
Smile Machine

Things used in this project

Hardware components

Photon
Particle Photon
×1
Touch Activated Candy Dispenser
×1
3v Relay (generic)
×1
Power Bank
×1
Batteries AAA
×3
Jumper Wires
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Wire Strippers
Small Screwdriver

Story

Read more

Schematics

Circuit Diagram

Smiilo diagram v2 5oc4khsxxi

Code

Simple HTML Test

HTML
Use this web page to test you photon and/or circuit.
/* Paste the code between the dashes below into a .txt file and save it as an .html file. Replace your-device-ID-goes-here with your actual device ID and your-access-token-goes-here with your actual access token.

---------------------------

<!DOCTYPE>
<html>

  <head>
  <style>    

body {
Background: #00e7a3; /* Teal */
}

.button {
    background-color: #009cf3; /* Blue */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 10px;
}

.button:hover {
    background-color: #02a4ff; /* Lighter Blue */
    color: white;
}

  </style>
  </head>

  <body>
  <center>
  <div class="everything">
  <br>
  <form action="https://api.particle.io/v1/devices/your-device-ID-goes-here/led?access_token=your-access-token-goes-here" method="POST">
  <br> 
  <button class="button" name="button" type="submit" value="on">Give me candy!</button>
  </form>
  </div>
  </center>
  </body>
</html>

Credits

Smiilo

Smiilo

1 project • 1 follower
The super cute smile machine made with MLKit and IOT.

Comments

Add projectSign up / Login