← All serial adapters

ESP-KVM is free, open-source firmware that turns an ESP32-P4 board into an IP-KVM: another computer's screen, keyboard and mouse in your browser, from the BIOS up. The MAX3232 module - DB9 is an optional extra: it puts a computer's RS-232 serial port on the device's pins, for the serial console in the browser. What it does → Try the demo →

MAX3232 module - DB9
Serial adapter (optional)

MAX3232 module - DB9

The common small board with a MAX3232 and a 9-pin socket. It puts a PC's COM port on two of the device's pins, for the serial console.

StatusWritten from the datasheet, not run on one yet
ChipMAX3232 or SP3232, 3.0 to 5.5 V
WiringVCC to 3V3, GND, and two free GPIOs for TX and RX
Target sideDB9 socket, plugs into a PC's male COM port
SettingSettings → Power → Serial console

Photo: Cirkit Designer

A PC's or a server's COM port is RS-232: about ±12 V, which destroys a 3.3 V pin. This module turns it into 3.3 V logic. Its 4-pin side goes to the ESP32-P4 board, and its 9-pin socket plugs into the target.

Three data wires and power: the device's TX to the module's RXD, its RX to TXD
Three data wires and power: the device's TX to the module's RXD, its RX to TXD

How to wire it

  • VCC to 3V3, not 5V. Powered from 5V, its TTL side outputs 5V too.
  • GND to GND.
  • The device's TX pin to the module's RXD, and the device's RX pin to its TXD.
  • The 9-pin socket into the target's COM port. On a server with only an internal 10-pin header, an adapter bracket brings it out.

Then Settings → Power → Serial console: turn it on, pick the two pins and the speed. Any two free GPIOs work; avoid 37 and 38, which many boards wire to their own USB-to-serial chip. On the Function EV board GPIO 5 and GPIO 4 are free. A PC BIOS usually runs at 115200 or 9600, Linux at 115200.

Good to know

  • Labels differ between makers. The one in the photo has GND, TXD, RXD, VCC in a row; some print TXD for the pin that receives. If nothing comes through, swap the two data wires; it does no harm at 3.3 V.
  • A network switch or a router often has its console on an RJ45 port. That needs a "Cisco" console cable to DB9, then this module.
  • A 3.3 V console needs no module. A Raspberry Pi or a router's 4-pin header wires straight to the device's pins.
  • I have not run this module myself yet; the wiring is from its datasheet.