Simulated · Communication

CAN transceiver (SN65HVD230)

CAN transceiver (SN65HVD230): 3.3 V, for the ESP32’s TWAI. In Argynix Lab it is fully simulated: wire it to an Arduino, ESP32, STM32 or Raspberry Pi Pico in your browser and run your code against it.

The ESP32's own CAN controller (TWAI, driver/twai.h) needs a transceiver: wire CTX to the GPIO given as TX in TWAI_GENERAL_CONFIG_DEFAULT and CRX to the one given as RX. Its CANH and CANL are the pair, shared with every CAN node on the bench (other ESP32s, MCP2515 modules): a frame goes at the bit rate the sketch sets and needs another node at that rate to acknowledge it. A node in normal mode at another rate sends error frames over every frame: the sender’s error counter climbs to bus-off.

CAN transceiver (SN65HVD230) in Argynix Lab

Pins

  • 3V3
  • GND
  • CTX (to the ESP32’s TWAI TX)
  • CRX (to the ESP32’s TWAI RX)
  • CANH (the pair)
  • CANL (the pair)