Assignment 4.1— More arduino

This time we have the chance to try some thing that we interested.

Trail 1. Blinking LED 

I search on the internet and find a circuit,  which can make the LED blinking one by one. so this time I try to follow the instruction of the online tutorial to build this circuit model.

first of all I build the circuit like this :


Then I write the code with the instruction, it works really good!

屏幕快照 2016-02-28 20.53.40

Trail 2. light sensor

After finish the first trail, I want to add some sensor, so I choose the light sensor this time, and build a circuit like this:


Then I write the code like:

屏幕快照 2016-02-28 21.04.47

However this time there are no change of the light sensor, then I open the console and found that the light level is too big, and I change the level value, now it works well!

屏幕快照 2016-02-28 20.57.23

Publié dans Uncategorized