Labs / Electronic modules

GraftSense-MOS Level Shift Module (Open Version)

Author: Li Zisheng · Source: FreakStudio open documentation, v1.2 · License: CC BY 4.0

Contents
2N7002 1N5819WS 5V 3.3V
V1.0 DIN0 DOUT1 DIN1 DOUT0 R1 R2 R3 C1 C2

I. Module Introduction

The MOS transistor level conversion module is designed based on 2N7002 MOS transistor and 1N5819WS diode, integrating DC-DC 5V to 3.3V circuit, realizing one-way conversion between 3.3V and 5V levels; it can protect low-voltage chips from high-voltage signal damage, ensure that the high-voltage end reliably recognizes the logic high level, and is suitable for GPIO communication scenarios of different voltage MCUs or devices, providing a secure adaptation scheme for bidirectional signal transmission between 3.3V and 5V systems.

II. Introduction to Main Chips

This module is designed based on 2N7002 MOS transistors and 1N5819WS diodes; since the selected chips are relatively basic, no additional introduction will be provided.

2.1 Chip Overview

None.

2.2 Pin Definition

None.

2.3 Functional Block Diagram

None.

2.4 Performance Parameters

None.

2.5 Reference Circuit

None.

2.6 Chip Configuration

None.

None.

2.8 PCB Routing Precautions

None.

III. Instructions for Circuit Engineering and Module Usage

3.1 Circuit Source Engineering

To obtain the circuit source project, please follow the official account [Freak Embedded]

3.2 Module Usage Instructions

The schematic diagram of this module is shown below:

SCH_MOSFET Level Shifter Module_v1.0_2025-11-23.pdf 1.8 MB

R1 R2 R3 C1 C2 D1 U1 U2 DOUT0 DIN1

This module is used for the level conversion between the low-voltage side VL (MCU) and the high-voltage side VH (sensor module):

This module is a unidirectional level conversion circuit, suitable for two MCUs that operate at different voltages to perform GPIO communication (for example, for communication between different units operating at 3.3V and 5.0V respectively: a continuous 5V high-level signal will exceed the withstand limit of a 3.3V chip, thus causing pin damage). However, due to differences in I2C communication conditions, this circuit is not applicable for I2C communication.

When in use, it is necessary to ensure that the high-voltage chip correctly identifies the logic high level:

3.3 Application Experiment

Here, we use the GraftPort-RP2040 development board for testing, and connect the MOSFET level conversion module to the main controller via the DIO interface.

Here, we first use the HY2.0-4P connection cable to connect the module to the GraftPort-RP2040 development board's DIO1 interface:

The core function of this module is to realize bidirectional signal level conversion between different voltage domains (5V and 3.3V voltage standard mutual conversion), and no code is required:

IV. Drivers

None.

None.

VI. Revision History

Document Version

Revision Date

Modifier

Revised Content

v1.0

2025-11-23

Li Zisheng

Initialize Document

The BOM sheet has not been finally checked, the driver has not been re-verified, and the 3.3 application experiment

Not yet specified.

v1.1

2025-12-29

Li Zisheng

Added application experiments and production files

v1.2

2025-12-31

Sin Ruili

Create an open version of the document based on the internal document version v1.1.

VII. Relevant Materials

7.1 Chip Datasheet

C7420321_MOSFET_2N7002_Datasheet_2N7002_REV2.0.PDF 287 KB

C191023_Schottky Diode_1N5819WS_Datasheet_WJ157486.PDF 1.1 MB

7.2 Unique Icons for PCB Silk Screen

7.2