Raspberry pi pico uart Esp8266

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
berke
Posts: 17
Joined: Wed Sep 01, 2021 7:45 am

Raspberry pi pico uart Esp8266

Post by berke » Wed Sep 15, 2021 2:29 pm

Hi all, I am using raspberry pi pico with esp8266.My rp2 and esp8266 connection is like this https://content.instructables.com/ORIG/ ... f467a3801a .My esp code is here https://gist.github.com/Hermann-SW/e945 ... c679f48b03
and my raspberry pi pico code is

Code: Select all

from machine import UART,Pin
import time
uart = UART(0, rx=Pin(1), tx=Pin(0), baudrate=115200,rxbuf=512)
while True:
time.sleep(1)
uart.write("https://example.example.com"+"\n")
print(uart.read())
First i saw http response like 2 hours then i turn off power.When i power back on esp8266 is just sending none i mean i saw none on shell. Blue led is not blinking (when http response come blue led blink).I really don't know why is this happen this make no sense. Can anyone know what is the problem ? I tried Esp8266 with arduino , it is working without any problem (I used same metho uart 115200 ).What is the problem with raspberry pi pico. Thank you.

berke
Posts: 17
Joined: Wed Sep 01, 2021 7:45 am

Re: Raspberry pi pico uart Esp8266

Post by berke » Thu Sep 16, 2021 8:28 am

I found something.When i measure voltages arduino 3.3 volt gives 3.25 and raspberry pi pico 3.3v gives 3.25 that's same but arduino rx pin gives 5.11 volt , raspberry pi pico's rx pin gives again 3.25 that is the problem. When i connect esp8266's 3.3v and en pin to raspberry pi pico's 5V it's working good but i'm afraid to fry it. Any advice for resistor's or connection :D

Post Reply