Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
wiki:tcb:tcbinstall:io_ports_ab [2016/05/08 20:45] opadmin [Using an I/O Port as an Input] |
wiki:tcb:tcbinstall:io_ports_ab [2016/05/08 22:14] opadmin [Relay Modules] |
Each I/O port is given three pins on the TCB board - the signal pin, +5 volts, and Ground. See the schematic below for how to wire an input switch or potentiometer. | Each I/O port is given three pins on the TCB board - the signal pin, +5 volts, and Ground. See the schematic below for how to wire an input switch or potentiometer. |
| |
It is also possible to attach sensors to an analog input so long as they provide a signal that ranges from Ground to 5 volts. | It is also possible to attach sensors to an analog input so long as they provide a signal that ranges from Ground to 5 volts. You could then create a [[wiki:tcb:operation:functionlist#custom_functions|custom function]] to do something with the input - we will leave that to your imagination. |
| |
**Note:** The digital input is considered On when the signal pin held to ground. In the schematic below, that will occur when the switch is closed. | **Note:** The digital input is considered On when the signal pin held to ground. In the schematic below, that will occur when the switch is closed. |
| |
{{ wiki:io_input.png?direct&500 |Using an I/O port as an input}} | {{ wiki:io_input.png?direct&500 |Using an I/O port as an input}} |
| \\ |
| |
{{ wiki:io_switch_knob.jpg?direct&500 |Switch and Pot Example}} | {{ wiki:io_switch_knob.jpg?direct&500 |Switch and Pot Example}} |
<html><center></html>//Example of switch and potentiometer used as inputs//<html></center></html> | <html><center></html>//Example of switch and potentiometer used as inputs//<html></center></html> |
| \\ |
| |
{{ wiki:keyestudio_analogrotation.jpg?direct&500 |Keyestudio Analog Rotation Sensor}} | {{ wiki:keyestudio_analogrotation.jpg?direct&500 |Keyestudio Analog Rotation Sensor}} |
<html><center></html>//[[http://stores.ebay.com/keyestudio/|Keyestudio]] Analog Rotation Sensor//<html></center></html> | <html><center></html>//[[http://stores.ebay.com/keyestudio/|Keyestudio]] Analog Rotation Sensor attached with male-to-male servo cable//<html></center></html> |
| \\ |
===== Using an I/O Port as Output ===== | ===== Using an I/O Port as Output ===== |
| |
{{ wiki:ebay_relay.jpg?direct&400 |Chivazhu Logic-Level Relay}} | {{ wiki:ebay_relay.jpg?direct&400 |Chivazhu Logic-Level Relay}} |
<html><center></html>//[[http://stores.ebay.com/chivazhu/|Chivazhu]] 5V One Channel Relay Module//<html></center></html> | <html><center></html>//[[http://stores.ebay.com/chivazhu/|Chivazhu]] 5V One Channel Relay Module//<html></center></html> |
| \\ |
| |
{{ wiki:keyestudio_relay.jpg?direct&400 |Keyestudio Logic-Level Relay}} | {{ wiki:keyestudio_relay.jpg?direct&400 |Keyestudio Logic-Level Relay}} |
<html><center></html>//[[http://stores.ebay.com/keyestudio/|Keyestudio]] Single Relay Module//<html></center></html> | <html><center></html>//[[http://stores.ebay.com/keyestudio/|Keyestudio]] Single Relay Module//<html></center></html> |
| \\ |
| |
{{ wiki:ebay_relay_tcb.jpg?direct&400 |Relay Module connected to TCB}} | {{ wiki:relay_tcb.jpg?direct&400 |Relay Module connected to TCB}} |
<html><center></html>//Relay attached to TCB Output A with male-to-male servo cable//<html></center></html> | <html><center></html>//Relay attached to TCB output with male-to-male servo cable//<html></center></html> |
| \\ |
==== Buzzer Module ==== | ==== Buzzer Module ==== |
The [[http://stores.ebay.com/keyestudio/|Keyestudio]] **Digital Buzzer Module** can be attached to an output and triggered to create a beep. | The [[http://stores.ebay.com/keyestudio/|Keyestudio]] **Digital Buzzer Module** can be attached to an output and triggered to create a beep. |