Maker Nano RP2040

Discussion on how to get started with various type of IoT projects

Maker Nano RP2040

Postby Crewze » Wed May 17, 2023 8:39 pm

Can someone post sample code for connection to Wifi using the Arduino IDE. I get errors using examples I have found online.
Crewze
Fledgling
 
Posts: 1
Joined: Wed May 17, 2023 8:36 pm

Re: Maker Nano RP2040

Postby hussien786 » Tue May 23, 2023 1:24 pm

May I know what type of wifi Module are you using to interface with Maker Nano RP2040?
If you are using the Grove WiFi 8266 - IoT for micro:bit and beyond https://my.cytron.io/p-grove-wifi-8266-iot-for-microbit-and-beyond. You may refer to this tutorial
https://my.cytron.io/tutorial/getting-started-with-maker-nano-rp2040-and-blynk-iot-lesson-1-getting-connected.

And the code is as shown below

CODE: SELECT_ALL_CODE
    https://my.cytron.io/maker-nano-rp2040-simplifying-projects-with-raspberry-pi-rp2040
  - Grove WiFi 8266
    https://my.cytron.io/p-grove-wifi-8266-iot-for-microbit-and-beyond
 
  Connections
  - Grove WiFi to Maker port [0, 1]
 
  External libraries:
  - Blynk by Volodymyr Shymanskyy 1.1.0 (Library Manager)
  - BlynkESP8266 (https://github.com/vshymanskyy/BlynkESP8266)
*/

#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID   "YourTemplateID"

#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

char auth[] = "YourAuthToken";
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

#define EspSerial Serial1
#define ESP8266_BAUD 115200

ESP8266 wifi(&EspSerial);

void setup()
{
  Serial.begin(115200);
  delay(10);

  EspSerial.begin(ESP8266_BAUD);
  EspSerial.println("AT+RST");
  delay(5000);

  Blynk.begin(auth, wifi, ssid, pass);
}

void loop()
{
  Blynk.run();
}
hussien786
Fledgling
 
Posts: 1
Joined: Tue May 23, 2023 1:06 pm


Return to Getting Started - IoT

Who is online

Users browsing this forum: No registered users and 2 guests

cron