Edible Arduino Mousetrap

Hey Guys,

Sooo, I think I’m going to incorporate morse code into my project and an scan of the world wide web firstly gave me this;

but then also this slightly more informative tutorial.

This is SOS;

int pin = 13;

void setup()
{
pinMode(pin, OUTPUT);
}

void loop()
{
dot(); dot(); dot();
dash(); dash(); dash();
dot(); dot(); dot();
delay(3000);
}

void dot()
{
digitalWrite(pin, HIGH);
delay(250);
digitalWrite(pin, LOW);
delay(250);
}

void dash()
{
digitalWrite(pin, HIGH);
delay(1000);
digitalWrite(pin, LOW);
delay(250);
}

Cool right? I didn’t know you could type it in as dot and dash.

You can check out the full tutorial here.

People are also very wierd.

Have a great night!

2 thoughts on “Edible Arduino Mousetrap”

Comments are closed.

Discover more from Making Studio

Subscribe now to keep reading and get access to the full archive.

Continue reading