본문 바로가기

전체 글

(1955)
Raspberry Pi PicoW - Ajax 를 이용한 실시간 웹 전압 디스플레이 ESP32-S2 웹서버 테스트 - Ajax 를 이용한 실시간 데이터 수신 테스트 코드를 이용하여 실시간 웹 디스플레이 테스트를 해보자. 코드는 거의 동일하게 구동된다. Pi Pico 확장 테스트 보드에는 ADC를 테스트 할 수 있는 가변저항(VR8)이 RP2040의 A0(GP26)에 할당되어 있다. 가변저항을 돌리면 전압변화가 생기고 이 전압을 웹페이지에 출력하는 코드를 작성해 보자. #include #include #include #ifndef STASSID #define STASSID "****" #define STAPSK "****" #endif const char* ssid = STASSID; const char* password = STAPSK; WebServer server(80); // HT..
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 개발환경 설정 에서 환경설정을 변경해서 컴파일 해야 한다.
STM32-176 EV - iperf를 이용한 STM32F777 LwIP TCP 전송률 테스트(Iperf Throughput) 최신 버전의 STM32CubeIDE를 이용하여 [STM32-176 EV] 보드(STM32F7관 핀투핀 호환)의 내장 이더넷 전송률 테스틀 해보았다. 우선 STM32CubeIDE를 최신으로 업데이트 하고 프로젝트를 생성한다. ETH를 RMII 모드로 설정하고 나머지 필요한 페리를 추가 해 준다. 인터럽트 설정 LwIP 소프트웨어 스택 설정 이더넷 PHY 설정 LAN8742, DP83848 두가지 PHY가 지원된다. 기존에 없었는데 추가된것 같다. 마지막으로 클럭 설정을 218Mhz로 해 주면 된다. 코드 생성후 디버깅을 위해 UART에서 printf가 동작 할수 있도록 코드 추가 하고 IP정보를 출력할수 있는 함수를 만들면 된다. #define hUART huart1 extern struct netif g..

반응형