Shuyi’s Arduino Homework 2

// constants won’t change. They’re used here to set pin numbers:
const int firstButtonPin = 5; // the number of the pushbutton pin
const int ledPin = 12; // the number of the LED pin
const int secondbuttonPin = 3; // the number of the pushbutton pin
int flag=0;

// variables will change:

void setup() {
// initialize the LED pin as an output:
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(firstButtonPin, INPUT);
pinMode(secondbuttonPin, INPUT);
}

void loop() {
// read the state of the pushbutton value:

// check if the pushbutton is pressed. If it is, the buttonState is HIGH:
if (digitalRead(firstButtonPin) == LOW) {
// turn LED on:
flag = 1;
}

if(digitalRead(secondbuttonPin)==LOW){
flag = 0;
}

Serial.print(flag);
if(flag==1){
digitalWrite(ledPin,HIGH);
}else{
digitalWrite(ledPin,LOW);
}
}

Shuyi’s Plush Night Light Proposal

The story of EVIL EGGY

The latest news, the evil eggy has entered the earth, and invaded the cities, they have a very cute appearance, but they hope to cooperate with the triple threat to rule the earth, unfortunately because they are too cute, discovered by humans, accidentally as theirs Children’s toys, and they still need to collect more data. Without revealing themselves, eggys needs to let the children sleep peacefully at night and then act again…

Continue reading “Shuyi’s Plush Night Light Proposal”

Hi,I am Shuyi~

Hi, my name is Shuyi. I am from Shanghai, China and I graduated from China Academy of Art. My major before was industrial design and I’m so good at designing smart products especially the cute products. I love cute things so much that they can makes me come up with so many cute characters and I use them in my owl works. I am so looking forward to the Halloween Parade and maybe that can inspire me to create some amazing products.

According to the class, I trust that I can have more experience from the hands-on skills and new methods of making. By the way, I also think that uploading a lot of protography, video to my blog is really wonderful.

I designed a lot of different products just like the foldable fitness bicycle, intelligent audio, etc. Some of them also got the patents in China, that makes me proud.

This is our exhibition for our graduation design. My work is a foldable bicycle for kids to training and keep fit.