NWI1245 DAT

https://www.electrodragon.com/product/esp32-can-rs-485-wire-interface-shield/

Main functions:

  • general load switching - high-side-driver-dat
    • current driving capability is ~ 36V 5A
  • RS485 communication
  • CAN communication

Used ESP32-DevKitC Pins

  • CAN UART
    • IO23 = CAN0_TX
    • IO22 = CAN0_RX
  • UART1
    • IO17 = TXD1
    • IO16 = RXD1
  • UART0 (default used by USB-TTL bridge chip)
    • TXD0 = TXD0
    • RXD0 = RXD0
  • IO33 = Power_ADC
  • IO5 = LED

  • general load switching
  • please note one chip is not soldering default in case you don't need two to save cost
  • try IO12 or IO19
  • VBAT pin up to 36V, and OUTA or OUTB will be on/off when you digitalWrite it high or low
    • IO12 = CTRL1
    • IO19 = CTRL2
    • IO13 = STATUS1
    • IO18 = STATUS2

Schematic of peripherals

Dimension and pin definitions

  • back side selector for UARTs

removing tips

  • use a small driver to leverage in the between carefully

power supply

demo

https://www.youtube.com/shorts/TeaZ1xKcAqg

ref

  • code please refer to our ESP32 arduino github repository
  • https://github.com/Edragon/Arduino-ESP32/tree/master/BSP/NWI1245/power-switch-test
  • https://github.com/Edragon/Arduino-ESP32
  • https://github.com/Edragon/Arduino-ESP32/blob/master/Sketchbook/interface/RS485-1/RS485-1.ino

  • RS485-dat - CAN-dat - high-side-driver-dat

  • voltage-divider-dat