Difference between revisions of "4DOF Pin correspondence extension board"

From Wiki
Jump to: navigation, search
 
Line 1: Line 1:
1.the corresponding code on the extension board Pin1 to Pin6 is 2-7, that is, pin number  
+
1.the corresponding code on the extension board Pin1 to Pin6 is 2-7, that is, pin number<br>
+1. For example, the servo wire is inserted in Pin1, and the code will be changed to  
+
+1. For example, the servo wire is inserted in Pin1, and the code will be changed to <br>
"myservo.attach (2)", in other words, the 16 of the chart will be changed to 2.
+
"myservo.attach (2)", in other words, the 16 of the chart will be changed to 2.<br>
 
[[File:201810231136.jpg]]
 
[[File:201810231136.jpg]]
  
  
2.the corresponding code on the extension board Pin7 to Pin 12 is 14-19, that is, pin  
+
2.the corresponding code on the extension board Pin7 to Pin 12 is 14-19, that is, pin <br>
number +7. Similarly, suppose the servo wire is inserted in Pin9, the code is  
+
number +7. Similarly, suppose the servo wire is inserted in Pin9, the code is <br>
"myservo.attach (16)."
+
"myservo.attach (16)."<br><br><br>
  
  
The extension board connects Pin1 to Pin6 port to D2 from Nano board to D7
+
The extension board connects Pin1 to Pin6 port to D2 from Nano board to D7<br>
respectively.Its calling method is pin number +1. For example,the servo wire is
+
respectively.Its calling method is pin number +1. For example,the servo wire is<br>
inserted in the Pin3 of the expansion board, and the code is "myservo.attach (4)".
+
inserted in the Pin3 of the expansion board, and the code is "myservo.attach (4)".<br>
This expansion board uses the A0 ~ A5 ports of the Nano board as digital pins, and  
+
This expansion board uses the A0 ~ A5 ports of the Nano board as digital pins, and <br>
Pin7 to Pin12 on the expansion board are connected to A0 ~ A7 respectively. The call  
+
Pin7 to Pin12 on the expansion board are connected to A0 ~ A7 respectively. The call <br>
method is pin number + 7. For example, the servo wire is inserted in Pin9, and the  
+
method is pin number + 7. For example, the servo wire is inserted in Pin9, and the <br>
code is "myservo.attach (16)".
+
code is "myservo.attach (16)".<br>

Latest revision as of 03:48, 23 October 2018

1.the corresponding code on the extension board Pin1 to Pin6 is 2-7, that is, pin number
+1. For example, the servo wire is inserted in Pin1, and the code will be changed to
"myservo.attach (2)", in other words, the 16 of the chart will be changed to 2.
201810231136.jpg


2.the corresponding code on the extension board Pin7 to Pin 12 is 14-19, that is, pin
number +7. Similarly, suppose the servo wire is inserted in Pin9, the code is
"myservo.attach (16)."



The extension board connects Pin1 to Pin6 port to D2 from Nano board to D7
respectively.Its calling method is pin number +1. For example,the servo wire is
inserted in the Pin3 of the expansion board, and the code is "myservo.attach (4)".
This expansion board uses the A0 ~ A5 ports of the Nano board as digital pins, and
Pin7 to Pin12 on the expansion board are connected to A0 ~ A7 respectively. The call
method is pin number + 7. For example, the servo wire is inserted in Pin9, and the
code is "myservo.attach (16)".