Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:tcb:tcbinstall:io_ports_ab [2018/02/16 01:53] opadmin [Relay Modules] |
wiki:tcb:tcbinstall:io_ports_ab [2021/03/22 23:42] (current) opadmin [Using an I/O Port as Output] |
||
---|---|---|---|
Line 31: | Line 31: | ||
===== Using an I/O Port as Output ===== | ===== Using an I/O Port as Output ===== | ||
- | When an I/O port is set to output, four functions appear in the [[wiki: | + | When an I/O port is set to output |
If you wish to connect the output to another microcontroller (such as another Arduino) you can do so directly - just connect the signal pin of the I/O port to the input pin of your other controller, and also make sure both the TCB and the other controller share a ground connection. | If you wish to connect the output to another microcontroller (such as another Arduino) you can do so directly - just connect the signal pin of the I/O port to the input pin of your other controller, and also make sure both the TCB and the other controller share a ground connection. | ||
- | However keep in mind these outputs are only rated at 20mA each. That means they will almost surely be inadequate | + | Each output can supply up to 40mA of current |
+ | |||
+ | {{ wiki: | ||
+ | |||
+ | For anything | ||
There are also various logic-level modules available on eBay that can interface directly with the TCB using a male-to-male servo cable. But be careful when choosing them, because many use a different pinout than the TCB! They can still be used, but you will need to swap the pins on your servo cable. The order on the TCB is Ground/ | There are also various logic-level modules available on eBay that can interface directly with the TCB using a male-to-male servo cable. But be careful when choosing them, because many use a different pinout than the TCB! They can still be used, but you will need to swap the pins on your servo cable. The order on the TCB is Ground/ |