130-28176 Parallax Inc, 130-28176 Datasheet - Page 148

KIT PARTS PROCESS CONTROL

130-28176

Manufacturer Part Number
130-28176
Description
KIT PARTS PROCESS CONTROL
Manufacturer
Parallax Inc
Datasheets

Specifications of 130-28176

Accessory Type
Education Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
' -----[ Title ]-----------------------------------------------------------
' Process Control - FanOnOffControl
' Controls 12Vdc fan with transistor driver
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Declarations ]----------------------------------------------------
Fan
OnTime
OffTime CON
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
Next, consider the power Metal-Oxide Semiconductor Field Effect Transistor (MOSFET)
drive circuit in Figure 5-5. The MOSFET is driven into saturation by applying gate
voltage. A positive 5 volts from the BASIC Stamp output is sufficient to place the
MOSFET in an “ON” state. When the device is fully saturated, its ON-state resistance
HIGH FAN
PAUSE OnTime
LOW FAN
PAUSE OffTime
Enter, save and run FanOnOffControl.bs2.
Test the program. The fan should cycle on and off every 5 seconds.
PIN
CON
2
5000
5000
' Energize fan
' Pause while running
' De-energize fan
' Pause while off
' Fan Driver I/O
' Time to leave fan on
' Time to leave fan off
Figure 5-3
Switched Fan Drive
Wiring Diagram with
2N3904 Transistor
Note: The ADC
circuit is left in place
for future use.

Related parts for 130-28176