Category: Arduino Homework Exercises
ARDUINO 7 – LEILA
Arduino circuit 7
Here’s my code for the second circuit:
int OnSwitch = 2;
int OffSwitch = 3;
int LEDPin = 4;
boolean onoff = false;
void setup()
{
pinMode(OnSwitch, INPUT);
pinMode(OffSwitch, INPUT);
pinMode(LEDPin, OUTPUT);
}
void loop()
{
if(digitalRead(OnSwitch)==LOW)
{
onoff = true;
digitalWrite(LEDPin, HIGH);
}
else if(digitalRead(OffSwitch)==LOW)
{
onoff = false;
digitalWrite(LEDPin, LOW);
}
if(onoff == true)
{
digitalWrite(LEDPin, HIGH);
}
if(onoff == false)
{
digitalWrite(LEDPin, LOW);
}
}
Piezo
Piezos do cool things but have an annoying sound. Are there better sounding ones out there?
Eden
Arduino by Qi
Thanks Belen >_ 。
CIRC 06 by Long
LEILA’S ARDUINO – ANOTHER ONE BITES THE DUST
Yang’s CIRC-6
Arduino Piezo Circuit 06-Marianna Me-zhi-bov-ska-ya
Arduino Twinkle Twinkle Piezo excercise.
Extra Arduino Piezo exercise: Super Mario Theme!!
This project was really interesting! I liked learning the equation used to create code for musical notes and want to write code for some funky Aretha Franklin tunes.
Arduino Stairway to Heaven
plus an LED, inspired by the one and only Jon Lung.