Chris Woodle
Published © MIT

Mr. Ramen!

An IoT cup ramen maker.

BeginnerFull instructions provided2 hours1,324

Things used in this project

Hardware components

Photon
Particle Photon
×1
Relay Module (Generic)
×1
5V Power Supply
×1
Cup Ramen
×1
Coffee Maker
×1
Marinade Injector Needle
×1
Food Grade Silicone Sealant
×1

Hand tools and fabrication machines

Cordless Drill (Generic)
Phillips head screwdriver (Generic)
Hot glue gun (generic)
Hot glue gun (generic)
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Basic schematic

Code

ramen.ino

Arduino
Use the Particle Web IDE: https://build.particle.io/
// -----------------------------------
// Controlling RAMEN over the Internet
// -----------------------------------

int heater = D2;
int led = D7;

void setup()
{

   // Pin configuration
   pinMode(led, OUTPUT);
   pinMode(heater, OUTPUT);

   // Declare a Particle.function so that we can turn the Heater on and off from the cloud.
   Particle.function("heat",heatToggle);

   // Initilize state
   digitalWrite(led, LOW);
   digitalWrite(heater, HIGH); // Active LOW
}


void loop()
{
   // Nothing to do here
}


int heatToggle(String command) {
    if (command=="on") {
        digitalWrite(led,HIGH);
        digitalWrite(heater,LOW);
        return 1;
    }
    else if (command=="off") {
        digitalWrite(led,LOW);
        digitalWrite(heater,HIGH);
        return 0;
    }
    else {
        return -1;
    }
}

Credits

Chris Woodle

Chris Woodle

4 projects • 11 followers

Comments