PICAXE-08M2 CMOS MOSFET demo circuit 1.
Fig. 1

Interfacing Microcontrollers to CMOS and MOSFET Circuits

by Lewis Loflin

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. It will replace the CD4000 and has Schmitt trigger inputs.

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.

Also in Fig. 1 one can one 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. 2 below does just that.

PICAXE-08M2 CMOS MOSFET demo circuit 2.
Fig. 2

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


toggle LED1
toggle LED2
pause 500
goto main

Bristolwatch.com banner.

© Copyright 2018 Lewis Loflin E-Mail