Canbus ESP32 - Schemtics added (#1922)

* Images added

Schematic images.

* Update canbus.rst

* Edit writing

Co-authored-by: Daniel Schramm <daniel.schramm@kyocera-avx.com>
Co-authored-by: Flaviu Tamas <me@flaviutamas.com>
This commit is contained in:
Daniel Schramm 2022-03-11 15:11:13 +01:00 committed by GitHub
parent f778497c8a
commit 044a7c2704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 4 deletions

View File

@ -150,20 +150,39 @@ ESP32 CAN Component
-------------------
The ESP32 has an integrated CAN controller and therefore doesn't need an external controller necessarily.
You only need to specify the RX and TX pins.
You only need to specify the RX and TX pins. Any GPIO will work.
.. code-block:: yaml
# Example configuration entry
canbus:
- platform: esp32_can
tx_pin: GPIO1
rx_pin: GPIO3
tx_pin: GPIO5
rx_pin: GPIO4
can_id: 4
bit_rate: 50kbps
on_frame:
...
Wiring options
**************
5V CAN transceivers are cheap and generate compliant levels. If you power your
board with 5V this is the preferred option. R501 is important to reduce the 5V
logic level down to 3.3V, to avoid damaging the ESP32. You can alternatively
use a voltage divider here instead.
.. figure:: images/canbus_esp32_5v.png
:align: center
:target: ../_images/canbus_esp32_5v.png
If you prefer to only have a 3.3V power supply, special 3.3V CAN transceivers are available.
.. figure:: images/canbus_esp32_3v3.png
:align: center
:target: ../_images/canbus_esp32_3v3.png
Configuration variables:
************************
@ -217,7 +236,8 @@ Configuration variables:
- All other options from :ref:`Canbus <config-canbus>`.
Wiring options
---------------
**************
Easiest approach is to just use fully assembled boards and just add one resistor in the MISO line.
This runs MOSI, SCK and CS out of specification which is nearly never a problem.

Binary file not shown.

After

Width:  |  Height:  |  Size: 865 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 876 KiB