-
Notifications
You must be signed in to change notification settings - Fork 6
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
Split RS232 and ESP code #3
Comments
Thanks for suggestion. I wanted to avoid coupling any other external device (orangepi, raspberrypi). I guess we have a lot of other options to communicate over modbus from linux machine. |
Thank you for the fast reply. My idea was to put at least one filtering capacitor between inverter and computer, but the devices cannot be fully decoupled. An ESP8266 can be sacrificed in case something goes wrong as it's very cheap, a high-end server on the other hand... I think I'll design a PCB on EasyEDA. |
I completed both schematic and PCB, here's a preview of the latter: Components
The power supply is definitely overkill for our needs, but more stuff can be connected to the board by simply soldering wires to it. I will make the order on JLCPCB, test the hardware and then publish the resources under an open-source license. |
Alright, the hardware is working as it should! It took me a while to test as I had to fix a few things. I will publish schematics and PCB soon.
You were absolutely right: when powered by the RS232 port, simply connecting the ground from the ESP32's UART header to a CH340 interface causes the computer's USB port to reset continuously... any ideas on how to fix that? |
I have a server that is running right next to the inverter, it would be really nice to be able to connect the serial port directly to it using something like https://gitlab.com/Teuniz/RS-232.
Splitting the code into separate classes would definitely help to implement that, among other advantages.
The text was updated successfully, but these errors were encountered: