Hey! Thank you for your time. Im trying to establish serial communication between an arduino and a node mcu (esp8266). I wrote a simple a sketch to send and recieve data. Everything works fine when i connect the tx and the rx together, bur i read that this can harm the esp due to the diferent serial voltages. I built a simple divider with resistors but when i use it the devices cant communicate. What im i doing wrong? atached a picture of the schematic.
You forgot to connect the grounds.
Oh. They are connected. i just forgot to draw them sorry!
Everything works fine when i connect the tx and the rx together, bur i read that this can harm the esp due to the diferent serial voltages.
You may have already damaged the ESP8826.
Please post a proper, hand drawn wiring diagram, with pins labeled clearly and with component values. Fritzing is for illiterate idiots.
The circuit you drew is correct, so the problem is elsewhere.
You WILL eventually damage or destroy the Arduino and/or the ESP8826 if you connect TX and RX directly.