Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
wiki:opconfig:tabs:lightsio [2018/04/03 02:32]
opadmin [Lights Used as Indicators]
wiki:opconfig:tabs:lightsio [2019/02/21 03:51]
opadmin [General Purpose Input/Output Ports A & B]
Line 85: Line 85:
  
 ===== General Purpose Input/Output Ports A & B =====  ===== General Purpose Input/Output Ports A & B ===== 
-{{ wiki:externalab.png?nolink|I/O A & B Settings}}+{{ wiki:externalab.jpg?nolink|I/O A & B Settings}}
 The A & B ports are general purpose, logic-level ports that can set to input or output depending on your needs. The A & B ports are general purpose, logic-level ports that can set to input or output depending on your needs.
  
Line 107: Line 107:
 - External Output A/B - Turn Off\\  - External Output A/B - Turn Off\\ 
 - External Output A/B - Pulse\\  - External Output A/B - Pulse\\ 
 +- External Output A/B - Blink\\
  
 You can then assign a trigger to these functions and in so doing control the output of these ports. The first three functions are self-explanatory, the fourth function, "Pulse," will briefly set the output pin to the state opposite its default. For example, if you had set Port A to Output with Default High, the pin will be kept high (+5 volts) normally and the Pulse command would cause it to briefly be held Low (to Ground). This feature can be used to emulate a button press to some external device. You can then assign a trigger to these functions and in so doing control the output of these ports. The first three functions are self-explanatory, the fourth function, "Pulse," will briefly set the output pin to the state opposite its default. For example, if you had set Port A to Output with Default High, the pin will be kept high (+5 volts) normally and the Pulse command would cause it to briefly be held Low (to Ground). This feature can be used to emulate a button press to some external device.
  
-What you do with these outputs is up to you, but remember these are logic-level outputs! That means they can //not source// enough current to actually power something, not even an LED! Instead consider the outputs like signals, and the signals can tell some other more powerful circuit to do something, or they could be used as direct inputs into another microcontroller (such as another Arduino).+The fifth function will cause the output to blink and blinking will continue until you call the "Turn On" or "Turn Off" function. The blink rate can be set by using the "Blink - On Time" and "Off Time" values (the blink rate is shared by both outputs). 
  
-If you want to use these outputs to turn on a lamp, or a relay, or some other object that draws current, you will need to use a driver circuit. You can find a schematic for a MOSFET driver adapter on the [[wiki:tcb:tcbinstall:io_ports_ab|I/O Ports]] page. Alternatively you may want to use the Aux Output (see above) which //is// capable of driving a load directly.+What you do with these outputs is up to you, but remember these are logic-level outputs! That means they can not source enough current to actually power something, not even most LEDs! Instead consider the outputs like signals, and the signals can tell some other more powerful circuit to do something, or they could be used as direct inputs into another microcontroller (such as another Arduino). (If you know what you are doing, and you are certain your LEDs do not draw more than 20mA, you can connect them directly to the port). 
 + 
 +If you want to use these outputs to turn on a lamp, or a relay, or some other object that draws more than 20mA of current, you will need to use a driver circuit. You can find a schematic for a MOSFET driver adapter on the [[wiki:tcb:tcbinstall:io_ports_ab|I/O Ports]] page. Alternatively you may want to use the Aux Output (see above) which //is// capable of driving a load directly.
  
  
wiki/opconfig/tabs/lightsio.txt · Last modified: 2023/06/04 16:39 by opadmin