vekexasia / comfoair-esp32

Interact with Zehnder Comfoair with esp32
Other
116 stars 38 forks source link

RX/TX pinout for node mcu ESP32s wroom #58

Open KASR opened 8 months ago

KASR commented 8 months ago

Hi,

I have an ESP32 from node mcu (see the figure below for the pinout and the board specifics.

I think the pinout is not exactly the same as what's mentioned in the readme. Is my understanding that the pin 21/25 mentioned in the readme are the TX0 and RX0 pins in the figure below?

image

In other words, would this be the correct connection:

---------------+        +---------------+                 +-------------+
(oran/red)12V  o--------o IN+      OUT+ o-----------------o VIN         |
               |        |   [LM2596S]   |                 |             |
(brown)   GND  o--------o IN-      OUT- o-----------------o GND         |
               |        +---------------+                 |             |
    [RJ45]     |                                          |   [ESP32]   |
  [ComfoAir]   |                                          |             |
               |        +-------------------------+       |             |
(w/blue) CAN_L o--------o CAN_L               3v3 o-------o 3v3         |
(blue)   CAN_H o--------o CAN_H               GND o-------o GND         |
---------------+        |                         |       |             |
                        |   [SN65HVD230]   CAN TX o-------o TX0         |
                        |                  CAN RX o-------o RX0         |
                        +-------------------------+       +-------------+
vekexasia commented 8 months ago

Hey you can use whwatever pins you prefer. But definitely pin 21 is no tx0 :) there is pin21 in your pic.

On Wed, Oct 18, 2023 at 10:01 AM KASR @.***> wrote:

Hi,

I have an ESP32 from node mcu (see the figure below for the pinout and the board specifics.

I think the pinout is not exactly the same as what's mentioned in the readme. Is my understanding that the pin 21/25 mentioned in the readme are the TX0 and RX0 pins in the figure below?

[image: image] https://user-images.githubusercontent.com/22029863/276156595-fa9e0281-0afa-4bdd-91ae-d7f1f08a3f8e.png

In other words, would this be the correct connection:

---------------+ +---------------+ +-------------+ (oran/red)12V o--------o IN+ OUT+ o-----------------o VIN | | | [LM2596S] | | | (brown) GND o--------o IN- OUT- o-----------------o GND | | +---------------+ | | [RJ45] | | [ESP32] | [ComfoAir] | | | | +-------------------------+ | | (w/blue) CAN_L o--------o CAN_L 3v3 o-------o 3v3 | (blue) CAN_H o--------o CAN_H GND o-------o GND | ---------------+ | | | | | [SN65HVD230] CAN TX o-------o TX0 | | CAN RX o-------o RX0 | +-------------------------+ +-------------+

— Reply to this email directly, view it on GitHub https://github.com/vekexasia/comfoair-esp32/issues/58, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABQ6S4RRTIJDKRUSZ65ITDX76EEHAVCNFSM6AAAAAA6FCCFP2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2DSMJRGY4DOOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

Andrea Baccega [image: @. [image: @. [image: Personal site] http://www.andreabaccega.com/ [image: Linkedin Profile] http://it.linkedin.com/in/andreabaccega [image: Facebook] https://www.facebook.com/andrea.baccega [image: Google+] https://plus.google.com/109217393200753135791 [image: Twitter] http://twitter.com/veke87 [image: StackOverflow] http://stackoverflow.com/users/314407/andrea-baccega [image: GitHub] https://github.com/vekexasia

KASR commented 8 months ago

ah ok i understand, so i do not need to use any RX/TX pin's from the ESP32 for the can communication

to use the code from the repository directly i need to connect the SN65HVD230 to the P21 and P25 on the board (circled in red below)

image

vekexasia commented 2 days ago

Sorry for being late in reply. Yes u can use that as well. Did u succeed in the end? I would also like to know your setup in #74 :)