4DOF Pin correspondence extension board

From Wiki
Revision as of 03:48, 23 October 2018 by Root (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)".