## DAY 3-- practical operation of advanced Blink

* DAY Blink of 3-gymnastics advanced
before the end of the period due to suspended bald head Arduino learning, it is now winter have more adequate time to learn it it!
Let us take a look at the tools used today
Here Insert Picture Description
Dupont line:
DuPont wire can be used in pin expansion board, the pin can be very robust and connections without welding, can quickly test circuit.
Breadboard: breadboard is because there are many small receptacle on the board, to be specifically manufactured without welding of the experimental design of electronic circuits. A bottom plate with a metal strip, corresponding to the position of the plate can be perforated so that when in contact with the metal strip member insertion hole, so as to achieve conductive object. The poles are respectively connected to both sides of the power jack breadboard, typically each intermediate plate 5 is connected with a metal bar. Below:
Here Insert Picture Description
Other components are not very familiar with the notes.
According to the first lesson content to find a good port and find the Blink example, or you can delete the gray comment. Slightly modify the code to do:
`void Setup () {

pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
}
void loop() {
digitalWrite(12, HIGH);
digitalWrite(11, LOW);

Delay (1000);
digitalWrite (12 is, the LOW);
digitalWrite (. 11, HIGH);
Delay (1000);
} `
can be seen that I used two lamp connecting two pins 11 and 12, and they alternately emit light. And connection circuit.
Arduino first find the GND on the board, and it is connected with the breadboard Dupont line, corresponding to the ground GND, frequently used, so that a line is connected to the breadboard sideways, and then using a breadboard LED light 12 from the lead pin, then back to GND. FIG: Here Insert Picture Description
A point to note: LED lamp is a very small resistance component, so if connected directly to the GND Press Dupont line, LED light will burn because the current is too large, so we assessed using a resistor voltage. Therefore, when using the LED light, preferably all plus resistance.
Then connect the other lamp in the same manner, upload code.
There have been two alternating light lit phenomenon indicates that the connection is successful.
There is an error in the experiment: the first successful connection, but the second failed after numerous tests found to have a bad wire.
Today, it is learned that it, hee hee.

Released three original articles · won praise 0 · Views 42

Guess you like

Origin blog.csdn.net/weixin_45149042/article/details/103989123