wichers / esphome-comfoair

ESPHome configuration to drive Zehnder ComfoAir devices.
GNU General Public License v3.0
51 stars 28 forks source link

Is rs232-TTL converter needed? #13

Closed DamianBroj closed 2 years ago

DamianBroj commented 2 years ago

Hey, In case of using nodemcu (esp8266 based)- is it needed to use RS232-TTL converter or connecting TX and RX lines directly to nodemcu will be fine?

wichers commented 2 years ago

No, you need the rs232 converter, ther're not TTL voltages.

Op zo 30 jan. 2022 22:51 schreef DamianBroj @.***>:

Hey, In case of using nodemcu (esp8266 based)- is it needed to use RS232-TTL converter or connecting TX and RX lines directly to nodemcu will be fine?

— Reply to this email directly, view it on GitHub https://github.com/wichers/esphome-comfoair/issues/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENFF7NEZQCIPARA3OVIDTUYWXEPANCNFSM5NEYSVVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

DamianBroj commented 2 years ago

No matter if i am using db9 or rj45 sockets? What is the logic voltage on CA side? For Nodemcu it's if i am not mistaken 3.3v

wichers commented 2 years ago

Valid RS-232 signals are either in the range of +3 V to +15 V or the range −3 V to −15 V with respect to common ground. My advice is to use something with the max3232 chipset and you're safe.

No idea where the db9 is located, at least the rj45 on the CA is known to be rs232.

Op ma 31 jan. 2022 19:08 schreef DamianBroj @.***>:

No matter if i am using db9 or rj45 sockets? What is the logic voltage on CA side? For Nodemcu it's if i am not mistaken 3.3v

— Reply to this email directly, view it on GitHub https://github.com/wichers/esphome-comfoair/issues/13#issuecomment-1026062295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENFFYPTVGNXWHRMA5HBE3UY3F3LANCNFSM5NEYSVVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

DamianBroj commented 2 years ago

Got it. So from one MAX3232 side it would be TX, RX, 3.3v and GND from Nodemcu, from the other side it would be TX, RX and GND from CA. No need for connecting voltage from CA side, right?

wichers commented 2 years ago

That's correct. For your reference you could have a look at this schematic: https://github.com/wichers/esphome-comfoair/blob/master/doc/schematic.png

Op ma 31 jan. 2022 om 20:03 schreef DamianBroj @.***>:

Got it. So from one MAX3232 side it would be TX, RX, 3.3v and GND from Nodemcu, from the other side it would be TX, RX and GND from CA. No need for connecting voltage from CA side, right?

— Reply to this email directly, view it on GitHub https://github.com/wichers/esphome-comfoair/issues/13#issuecomment-1026108249, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENFF4Z2TCEUUCH2IOA3T3UY3MJRANCNFSM5NEYSVVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>