본문 바로가기

RaspberryPi/RaspberryPi PicoW

(14)
Raspberry Pi PicoW - Simple WebServer Test Raspberry Pi PicoW 는 WiFi 기능을 제공한다. WiFi 모듈을 이용해서 간단한 웹서버 테스트를 진행해 보자. ESP32의 경우 편리한 WebServer 라이브러리를 제공하는데 Pi PicoW도 거의 유사한 라이브러리를 제공한다. ESP32 Simple WebServer 테스트 코드를 이용해서 웹서버 구동 코드를 작성하자. #include #include #include #include #ifndef STASSID #define STASSID "****" #define STAPSK "****" #endif const char* ssid = STASSID; const char* password = STAPSK; WebServer server(80); const int Led1Pin = 9;..
Raspberry Pi Pico W - RP2040 C++ SDK 환경에서 iperf 를 이용한 WiFi Throughput 테스트 Arduino IDE 개발환경에서 WiFi전송률 테스트 결과 10Mbps 정도가 측정이 되는데 좀더 속도를 높이기 위해 RP2040 C/C++ SDK 개발환경을 이용하여 iperf 를 이용한 WiFi Throughput 테스트를 진행 해 보자 #include "pico/cyw43_arch.h" #include "pico/stdlib.h" #include "lwip/netif.h" #include "lwip/ip4_addr.h" #include "lwip/apps/lwiperf.h" #ifndef USE_LED #define USE_LED 1 #endif #if CLIENT_TEST && !defined(IPERF_SERVER_IP) #error IPERF_SERVER_IP not defined #endi..
RaspberryPi Pico W - ThingSpeak 연동 테스트 RaspberryPi Pico W 를 이용해서 Cloud에 연동해서 데이터 전송 테스트를 해 보자. Cloud 는 다양한 서비스 업체가 있지만 간단하게 사용할 수 있는 ThingSpeak를 사용 하였다. https://thingspeak.com/ IoT Analytics - ThingSpeak Internet of Things Weather Station This project shows how to build an Arduino-based weather station that sends data to ThingSpeak. Once the data is collected, MATLAB is used to view trends of the data, plot histograms of the data, ca..
Raspberry Pi Pico W - Arduino IDE에서 Iperf로 WiFi Throughput 측정 테스트 Raspberry Pi Pico W의 WiFi 전송율을 테스트 해 보자. ESP32의 WiFi 전송율 테스트에 사용한 코드를 수정하여 테스트 하였다. #include const char* ssid = STASSID; const char* password = STAPSK; int port = 5001; WiFiServer server(port); void setup() { Serial.begin(115200); WiFi.mode(WIFI_STA); WiFi.setHostname("PicoW2"); Serial.printf("Connecting to '%s' with '%s'\n", ssid, password); WiFi.begin(ssid, password); while (WiFi.status() != W..
RaspberryPi Pico W 개발환경 설정 - Arduino IDE 사용 Raspberry Pi Pico W 보드는 기존에 제작 했던 Raspberry Pi Pico 확장 테스트 보드를 이용하여 테스트 하였다. Arduino 는 최신 버전을 다운 받는것이 좋다. Arduino IDE 2.0 RC 를 설치 하였다. https://www.arduino.cc/en/software Software Open-source electronic prototyping platform enabling users to create interactive electronic objects. www.arduino.cc Preferences 에서 RP2040 Arduino Board Manager URL을 설정 한다. https://github.com/earlephilhower/arduino-pico/..
RaspberryPi Pico W 개발환경 설정 - PICO SDK 설치 RaspberryPi Pico W에서 PICO SDK를 사용하기 위해서는 기존의 Raspberry Pi Pico(RP2040) C/C++ SDK 개발환경 설정 에서 환경설정을 변경해서 컴파일 해야 한다.

반응형