Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
wiki:tcb:tcbinstall:accessories [2016/05/30 22:54]
opadmin [Accessories]
wiki:tcb:tcbinstall:accessories [2021/03/22 23:48] (current)
opadmin [MOSFET Switch]
Line 61: Line 61:
  
 =====MOSFET Switch===== =====MOSFET Switch=====
-The TCB has two [[wiki:tcb:tcbinstall:io_ports_ab#using_an_i_o_port_as_output|general purpose I/O ports]] that can be set either to input or output. When used as outputs they provide a logic-level (5v) digital signal (on/off). This signal can be attached directly to another microcontroller (such as an Arduino) but it can //**not**// be used to power anything directly because it can only source a very low current (20mA each output). If you want to drive an LED or a relay from these outputs, you will need to implement some kind of transistorized switch. Of course, remember also that the TCB already has [[wiki:tcb:tcbinstall:lights|four light outputs]] for lights, and a special [[wiki:tcb:tcbinstall:special_aux_output|Aux Output]] that can be used to drive a relay directly - so most people will never need to use these alternate outputs. But if you do, the sample circuit below shows a MOSFET driver circuitry with flyback protection that can be plugged into one of these outputs and used to drive an LED or a 5v relay. +The TCB has two [[wiki:tcb:tcbinstall:io_ports_ab#using_an_i_o_port_as_output|general purpose I/O ports]] that can be set either to input or output. When used as outputs they provide a logic-level (5v) digital signal (on/off). This signal can be attached directly to another microcontroller (such as an Arduino)but as each port can only source 40mA on the signal pin, they are inadequate for switching most loads other than possibly one or two standard LEDs. If you want to drive a relay or some other kind of device from these outputs, you will need to implement transistorized switch. Of course, remember also that the TCB already has [[wiki:tcb:tcbinstall:lights|four light outputs]] for lights, and a special [[wiki:tcb:tcbinstall:special_aux_output|Aux Output]] that can be used to drive a relay directly - so most people will never need to use these alternate outputs. But if you do, the sample circuit below shows a MOSFET driver circuitry with flyback protection that can be plugged into one of these outputs and used to drive an LED or a 5v relay. 
  
   * [[http://openpanzer.org/downloads/accessories/mosfetswitch/mosfet_switch_eagle.zip|Eagle Schematic]] (ZIP)   * [[http://openpanzer.org/downloads/accessories/mosfetswitch/mosfet_switch_eagle.zip|Eagle Schematic]] (ZIP)
wiki/tcb/tcbinstall/accessories.1464648894.txt.gz ยท Last modified: 2016/05/30 22:54 by opadmin