Welcome to ASKY.
3 like 0 dislike
85 views
in Hi-Tech by Member (160 points)

I bought a RP2040 Raspberry Pi Pico W Board from AliExpress, I want to connect it to the Internet, but it does not work.

2 Answers

2 like 0 dislike
by Cool Person (390 points)
You need to spend quite a lot to find appropriate datasheet (found one on RP forum) ! Keep in mind it is not original Pico W board ! ! USB-C Power works only with TYPE-A Cable ! It is RP2040 with ESP8285 chip. * They have the only connection in between (UART0 - Serial interface GPIO0-GPIO1) * If you want to upload firmware to ESP - first, you need to upload passthrough firmware to RP2040 chip * ESP8285 DOES NOT HAVE EEPROM, a lot of projects may not be available for you without modification * ESP8285 Has only 1MB flash! * ESP8285 Is quite old chip itself! * LED is simple green on GPIO25 * If you want this device to be a host you need to supply 5V to VBUS pin
by Member (110 points)
0 0
My RP2040 Raspberry Pi Pico W shows this problem:

Device is busy or does not respond. Your options:

  - wait until it completes current work;
  - use Ctrl+C to interrupt current work;
  - reset the device and try again;
  - check connection properties;
  - make sure the device has suitable MicroPython / CircuitPython / firmware;
  - make sure the device is not in bootloader mode.

Can you help me?
by Questions Master (9.3k points)
0 0
0 like 0 dislike
by True Commenter (3.5k points)
Try this code main.py:

from machine import UART, Pin
import time

# Set up UART (adjust the TX and RX pins to match your hardware)
uart = UART(0, baudrate=115200, tx=Pin(0), rx=Pin(1))

# Function to send an AT command and wait for the response
def send_at_command(command, timeout=5000):
    uart.write(command + "\r\n")
    time.sleep(0.1)
    start = time.ticks_ms()
    response = b""
    
    while time.ticks_diff(time.ticks_ms(), start) < timeout:
        if uart.any():
            data = uart.read()
            if data is not None:
                response += data
    
    if not response:
        print("No response received for command:", command)
    return response

# Disable AP mode and set to STA mode
response = send_at_command("AT+CWMODE=1", timeout=2000)
print("Set to STA mode:", response.decode())

# Scan for available Wi-Fi networks
response = send_at_command("AT+CWLAP", timeout=10000)
print("Available Networks:", response.decode())

# Send AT command to connect to the Wi-Fi
ssid = "YOUR SSID"
password = "YOUR PASSWORD"
response = send_at_command('AT+CWJAP="{}", "{}"'.format(ssid, password), timeout=20000)
print("Connection attempt response:", response.decode())

# Check IP address if successfully connected
response = send_at_command("AT+CIFSR", timeout=5000)
print("IP Address:", response.decode())
by Member (160 points)
0 0
This is the result:

Connection attempt response: AT+CWJAP="MY_SSID", "MY_PASS"

ERROR

IP Address: AT+CIFSR
+CIFSR:STAIP,"0.0.0.0"
+CIFSR:STAMAC,"xx:xx:xx:xx:xx:xx"

216 questions

261 answers

112 comments

101 users

Welcome to ASKY, where you can ask questions and receive answers from other members of the community.

Categories

×

Like us on Facebook

Show your Support. Become a FAN!

...