update week14

parent bd8a63df
Pipeline #111390 passed with stage
in 27 seconds
......@@ -130,8 +130,8 @@ void loop() {
It is very important to interpret the Neil code for this assignment,
because when using the IDE of the Arduino with the programming of the board created with the LDR it gave failures with the communication and the correct sending of information between all the nodes.
After several tests I could not find the fault until the whole code was analyzed in detail.<br>
To get a correct operation we must place the pin of the TX initially as an INPUT with the commands:<code> set (serial_port, serial_pin_out)</code> and <code>input (serial_direction, serial_pin_out)</code>, because we are waiting for the input of a signal.
When message is associates with the corresponding node, immediately the pin associated with TX becomes OUTPUT to be able to send a message with the command <code> output (serial_direction, serial_pin_out)</code>,
To get a correct operation we place the pin of the TX initially as an INPUT with the command:<code>input (serial_direction, serial_pin_out)</code>, because we are waiting for the input of a signal.
When message is associates with the corresponding node, immediately we must set PORTB of Serial communication to 0, after the pin associated with TX becomes OUTPUT to be able to send a message with the command <code>output (serial_direction, serial_pin_out)</code>,
Performs the action corresponding to the message sent and at the end it goes to work again as an INPUT to wait for the new message with <code>input (serial_direction, serial_pin_out)</code>, in this way if it can work in a correct way.<br>
From this action will be created some subroutines of high, low and blink of the led, each node will have a different blink.<br>
<pre><code>void high() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment