Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Use of "ttl to rs485"-circuit without RE/DE-pin? #1

Closed
niklascp opened this issue Oct 4, 2018 · 4 comments
Closed

Question: Use of "ttl to rs485"-circuit without RE/DE-pin? #1

niklascp opened this issue Oct 4, 2018 · 4 comments

Comments

@niklascp
Copy link

niklascp commented Oct 4, 2018

Hi. First of all thanks for sharing your awesome work! I was also planning to integrate my AHC-9000 and HA, so this comes very convenient!

This is a hardware question more than a issue. I can see from your schematic that D1 is used as RE/DE for the MAX3072E. Now I don't have a MAX3072E/MAX3485 available. But I do have this one, which is based on MAX13487 with "AutoDirection" - so no RE/DE pin:
https://www.amazon.de/DSD-TECH-SH-U12-MAX13487-Raspberry/dp/B07B667STP/ref=sr_1_3?ie=UTF8&qid=1538679557&sr=8-3&keywords=ttl+rs485

My question is, do you think this will be compatiple with your code, and can be wired just ignoring the use of the D1 pin?

PS: I would put a 5/3.3V level converter between the NodeMCU and the RS485 to TTL since it is 5V.

Thanks!

Br.
Niklas

@dkjonas
Copy link
Owner

dkjonas commented Oct 8, 2018

The communication with the AHC is half duplex, ie. my code sets the direction of the MAX3072E to drive the bus, sends a message, changes the direction to listen on the bus, and then receive a reply message from the AHC.
I'm not familiar with MAX13487, but from my understanding of the datasheet I think it will work out of the box just ignoring D1. The only thing I'm not quite sure about is what level the TX pin of the ESP is at, when it is not transmitting. The 13487 requires it to be high when listening on the bus. If it is not, then it will be a very small change to the code to make it high when the ESP is not transmitting.

@dkjonas dkjonas closed this as completed Oct 26, 2018
@niklascp
Copy link
Author

Thanks for the response! Finally got time to try it out, and it is working just fine ignoring D1 :)

@jascdk
Copy link

jascdk commented Nov 5, 2018

Thanks for the response! Finally got time to try it out, and it is working just fine ignoring D1 :)

Hi Niklas. How did you wire your interface?

@exetico
Copy link

exetico commented Feb 28, 2023

Now that RS485 is implemented on some cool boards like this, could you please prove a few more details, @niklascp . I know this is a old issue.

So... That brings us to:
Did you end up with this solution (long term), and does it still works as expected? :)

I've ordered the board I linked to, and hope that it will work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants