
Fig. 1
Interfacing Microcontrollers to CMOS and MOSFET Circuits
Fig. 1 illustrates connecting a 5-volt microcontroller to a 12-volt MOSFET switch.
Q1 and Q2 are N-channel 2N7000 MOSFETs. The CD40106B is a HEX inverter circuit using only 2 of the six available inverters.
The CD40106B +Vcc is connected to +12-volts (pin 16) and ground (pin 8) are not shown. The four unused inputs should go to ground.
The CD40106B has Schmitt trigger inputs.
A LOW output from the PICAXE is inverted to HIGH on the MOSFET gate turning on the MOSFET.

Fig. 2
Fig. 2 is the same as Fig. 1 but two of four 2-input NAND gates from a CD4093B. This acts as a Schmitt trigger inverter.
Note that Q1 and Q3 work as a non-inverting voltage interface. What if one needs an inverting input? Fig. 3 below does just that.

Fig. 3
Below is a simple program for the PICAXE-08M2 used in the video.
#picaxe 08m2 ; type chip used symbol LED1 = C.1 symbol LED2 = C.2 LOW LED1 HIGH LED2 main: toggle LED1 toggle LED2 pause 500 goto main
- Tri-State H-Bridge using CD4093B CMOS Circuit
- Simplified CMOS-MOSFET H-Bridge Circuit
- Programming PCF8574P 8-bit I-O Expander with PICAXE, Arduino
- Interfacing Microcontrollers to CMOS and MOSFET Circuits
Return Hobby Electronics Main Page
- TB6600 Stepper Motor Driver with Arduino
- Common Collector Opto-Isolated Bipolar Transistor Switches
- Compare 2N3055 and MJE10005 Transistor Power Switches
- TC4420 MOSFET Driver Replacement Circuits
- Common Collector Opto-Isolated Bipolar Transistor Switches YouTube
- Build TC4420 MOSFET Driver Replacement Circuits
- Compare 2N3055 and MJE10005 Transistor Power Switches
- Pt. 1 TB6600 Stepper Motor Driver with Arduino Hardware
- Pt. 2 Program TB6600 Stepper Motor Driver with Arduino
Related links:
- Hobby Electronics
- Optical Isolation of H-Bridge Motor Controls
- All NPN Transistor H-Bridge Motor Control
- Basic Transistor Driver Circuits for Micro-Controllers
- ULN2003A Darlington Transistor Array with Circuit Examples
- Tutorial Using TIP120 and TIP125 Power Darlington Transistors
- Driving 2N3055-MJ2955 Power Transistors with Darlington Transistors
- Understanding Bipolar Transistor Switches
- N-Channel Power MOSFET Switching Tutorial
- P-Channel Power MOSFET Switch Tutorial
- Build a Transistor H-Bridge Motor Control
- H-Bridge Motor Control with Power MOSFETs
- More Power MOSFET H-Bridge Circuit Examples
- Build a High Power Transistor H-Bridge Motor Control
- H-Bridge Motor Control with Power MOSFETs Updated
- Opto-Isolated Transistor Drivers for Micro-Controllers
- Off Site:
- Web Master
- Tri-Cities VA-TN
- General Science
- Hobby Electronics
- US Constitution
- Christianity 101
- Religious Themes
Web site Copyright Lewis Loflin, All rights reserved.
If using this material on another site, please provide a link back to my site.