'board_android-IoT/ESP32'에 해당되는 글 13건

  1. 2025.03.26 :: ESP32 응용 제품
  2. 2024.11.28 :: ESP32-S3-A7670E-4G , Developement environment
  3. 2024.10.29 :: Compile on both ESP32 and ESP8266
  4. 2024.09.10 :: ESP32 UDP SEND_RECV example
  5. 2024.09.06 :: ESP32 UDP SEND_RECV example
  6. 2024.07.29 :: ESP8266 , DB18B20 connection
board_android-IoT/ESP32 2025. 3. 26. 14:19

 

 

 

- https://forum.arduino.cc/t/advice-on-using-all-pins-of-an-esp32-s3-devkit/1294310

 

Advice on using all pins of an ESP32-S3 DevKit

I'm currently working on a project that requires connecting a lot of components to an ESP32-S3 and I'm wondering if anyone would be willing to give me some advice on which component could safely be operated on which GPIO pins. I've already created a 3D mod

forum.arduino.cc

 

 

 

관련 검색:

https://www.google.com/search?gsessionid=_XePQD3vVKXVHExUJ-b4u9tLPj5sBp3AvfQUOgg6BjmS6vyHtN9hsQ&lsessionid=cUgSJduusCxvvi9vIhKNgnxIA50S4RL2WqZwvhgi1R1NgIqG6aRHDw&vsdim=1000,879&source=lns.web.gsbubb&lns_surface=26&biw=1715&bih=842&hl=ko&sei=443jZ4iHDpGenesP3qCD2AU&vsrid=COaNwen5jJKSUBAEGAEiJERBOURGN0Y2LUFGMzAtNEE3My1BMDZGLUQ3QzUwNkU1MzM0QQ&udm=26&q&vsint=CAQqCgoCCAcSAggHIAE6IwoWDYfEHT8VAAAAPx3zdkQ_JQAAgD8wARDoBxjvBiUAAIA_&lns_mode=un&qsubts=1742966252266&stq=1&cs=0&lei=443jZ7_EJ_yNseMPu-q1mAo#vhid=iteFeHKDcLMMnM&vssid=mosaic

 

Google

 

www.google.com

 

 

'board_android-IoT > ESP32' 카테고리의 다른 글

ESP32-S3-A7670E-4G , Developement environment  (0) 2024.11.28
Compile on both ESP32 and ESP8266  (0) 2024.10.29
ESP32 UDP SEND_RECV example  (0) 2024.09.10
ESP32 UDP SEND_RECV example  (0) 2024.09.06
ESP8266 , DB18B20 connection  (0) 2024.07.29
posted by cskimair
:
board_android-IoT/ESP32 2024. 11. 28. 10:40

 

ESP32-S3-A7670E-4G

https://www.waveshare.com/wiki/ESP32-S3-A7670E-4G

 

 

 

 

 

 

 

 

 

 

'board_android-IoT > ESP32' 카테고리의 다른 글

ESP32 응용 제품  (0) 2025.03.26
Compile on both ESP32 and ESP8266  (0) 2024.10.29
ESP32 UDP SEND_RECV example  (0) 2024.09.10
ESP32 UDP SEND_RECV example  (0) 2024.09.06
ESP8266 , DB18B20 connection  (0) 2024.07.29
posted by cskimair
:
board_android-IoT/ESP32 2024. 10. 29. 23:21

 

-

#if defined(ESP8266)
#pragma message "ESP8266 stuff happening!"
#elif defined(ESP32)
#pragma message "ESP32 stuff happening!"
#else
#error "This ain't a ESP8266 or ESP32, dumbo!"
#endif

 

https://community.platformio.org/t/compile-on-both-esp32-and-esp8266/14356

 

Compile on both ESP32 and ESP8266

what is the best way to #ifdef ESP32 and #ifdef ESP8266 is there some variable I can use to ifdef some part of the code in case using esp8266 and some part in case I use esp32? thanks

community.platformio.org

 

 

'board_android-IoT > ESP32' 카테고리의 다른 글

ESP32 응용 제품  (0) 2025.03.26
ESP32-S3-A7670E-4G , Developement environment  (0) 2024.11.28
ESP32 UDP SEND_RECV example  (0) 2024.09.10
ESP32 UDP SEND_RECV example  (0) 2024.09.06
ESP8266 , DB18B20 connection  (0) 2024.07.29
posted by cskimair
:
board_android-IoT/ESP32 2024. 9. 10. 00:24

 

- ESP32 - Arduino source

/*
 *  This sketch sends random data over UDP on a ESP32 device
 *
 */
#include <WiFi.h>
#include <NetworkUdp.h>
/*
8:28:24.965 -> entry 0x403c98ac
18:28:25.120 -> Connecting to WiFi network: Csk6457
18:28:25.214 -> Waiting for WIFI connection...
18:28:25.297 -> WiFi connected! IP address: 192.168.43.217
18:28:27.178 -> UDP recv=0
18:28:29.218 -> UDP recv=217
*/
// WiFi network name and password:
const char *networkName = "Csk6457";
const char *networkPswd = "1q2w3e4r@";

//IP address to send UDP data to:
// either use the ip address of the server or
// a network broadcast address
const char *udpAddress = "192.168.43.1";  //"192.168.0.255";
const int udpPort = 56680;
const int localPort = udpPort ; 


//Are we currently connected?
boolean connected = false;

//The udp library class
NetworkUDP udp;
char packetBuffer[255];

void setup() {
  // Initialize hardware serial:
  Serial.begin(115200);

  //Connect to the WiFi network
  connectToWiFi(networkName, networkPswd);
}
int packetSize ; 
unsigned long testIDPrev  ; 
unsigned long interval = 2000 ; //2000= 2 seconds

void loop() {
  //only send data when connected
  if (connected) {
    unsigned long testID = millis();

    if( testID - testIDPrev >= interval ){
      testIDPrev = testID ;
      //Send a packet
      udp.beginPacket(udpAddress, udpPort);
      udp.printf("Since boot: %lu(ms)\n", millis() ); // millis() / 1000);
      udp.endPacket();

      // receive packets 
      packetSize = udp_readPackets() ; 
      
    }

  }
  //Wait for 2 second
  //delay(2000);
}
int packetSizePrev ; 
int udp_readPackets()
{
  int packetSize   ; 

  packetSize = udp.parsePacket();
  if (packetSize> 0 ) {
    Serial.print(" Received packet from : ");
    Serial.println(udp.remoteIP());
    Serial.print(" Size : ");
    Serial.println(packetSize);

    int len = udp.read(packetBuffer, 255);
    if (len > 0) packetBuffer[len - 1] = 0;
    Serial.printf("[client<-server]Recv Data: %s\n", packetBuffer);
  }

  if( packetSize != packetSizePrev ) {
    packetSizePrev = packetSize ; 
    Serial.printf("UDP recv=%d\n", packetSize) ; 
  }


  return  packetSize  ; 
}

void connectToWiFi(const char *ssid, const char *pwd) {
  Serial.println("Connecting to WiFi network: " + String(ssid));

  // delete old config
  WiFi.disconnect(true);
  //register event handler
  WiFi.onEvent(WiFiEvent);  // Will call WiFiEvent() from another thread.

  //Initiate connection
  WiFi.begin(ssid, pwd);

  Serial.println("Waiting for WIFI connection...");
}

// WARNING: WiFiEvent is called from a separate FreeRTOS task (thread)!
void WiFiEvent(WiFiEvent_t event) {
  switch (event) {
    case ARDUINO_EVENT_WIFI_STA_GOT_IP:
      //When connected set
      Serial.print("WiFi connected! IP address: ");
      Serial.println(WiFi.localIP());
      //initializes the UDP state
      //This initializes the transfer buffer
      udp.begin(WiFi.localIP(), udpPort);
      connected = true;

      udp.begin(localPort); //20240906-1 
      break;
    case ARDUINO_EVENT_WIFI_STA_DISCONNECTED:
      Serial.println("WiFi lost connection");
      connected = false;
      break;
    default: break;
  }
}

 

 

- 스마트폰에서 ESP32 로 UDP통신을 하는 화면

 

 

'board_android-IoT > ESP32' 카테고리의 다른 글

ESP32-S3-A7670E-4G , Developement environment  (0) 2024.11.28
Compile on both ESP32 and ESP8266  (0) 2024.10.29
ESP32 UDP SEND_RECV example  (0) 2024.09.06
ESP8266 , DB18B20 connection  (0) 2024.07.29
ESP32 Dev Board DTR/RTS  (0) 2024.06.07
posted by cskimair
:
board_android-IoT/ESP32 2024. 9. 6. 18:47

 

- ESP32 - Arduino source

/*
 *  This sketch sends random data over UDP on a ESP32 device
 *
 */
#include <WiFi.h>
#include <NetworkUdp.h>
/*
8:28:24.965 -> entry 0x403c98ac
18:28:25.120 -> Connecting to WiFi network: Csk6457
18:28:25.214 -> Waiting for WIFI connection...
18:28:25.297 -> WiFi connected! IP address: 192.168.43.217
18:28:27.178 -> UDP recv=0
18:28:29.218 -> UDP recv=217
*/
// WiFi network name and password:
const char *networkName = "Csk6457";
const char *networkPswd = "1q2w3e4r@";

//IP address to send UDP data to:
// either use the ip address of the server or
// a network broadcast address
const char *udpAddress = "192.168.43.1";  //"192.168.0.255";
const int udpPort = 56680;
const int localPort = udpPort ; 


//Are we currently connected?
boolean connected = false;

//The udp library class
NetworkUDP udp;
char packetBuffer[255];

void setup() {
  // Initialize hardware serial:
  Serial.begin(115200);

  //Connect to the WiFi network
  connectToWiFi(networkName, networkPswd);
}
int packetSize ; 
unsigned long testIDPrev  ; 
unsigned long interval = 2000 ; //2000= 2 seconds

void loop() {
  //only send data when connected
  if (connected) {
    unsigned long testID = millis();

    if( testID - testIDPrev >= interval ){
      testIDPrev = testID ;
      //Send a packet
      udp.beginPacket(udpAddress, udpPort);
      udp.printf("Since boot: %lu(ms)\n", millis() ); // millis() / 1000);
      udp.endPacket();

      // receive packets 
      packetSize = udp_readPackets() ; 
      
    }

  }
  //Wait for 2 second
  //delay(2000);
}
int packetSizePrev ; 
int udp_readPackets()
{
  int packetSize   ; 

  packetSize = udp.parsePacket();
  if (packetSize> 0 ) {
    Serial.print(" Received packet from : ");
    Serial.println(udp.remoteIP());
    Serial.print(" Size : ");
    Serial.println(packetSize);

    int len = udp.read(packetBuffer, 255);
    if (len > 0) packetBuffer[len - 1] = 0;
    Serial.printf("[client<-server]Recv Data: %s\n", packetBuffer);
  }

  if( packetSize != packetSizePrev ) {
    packetSizePrev = packetSize ; 
    Serial.printf("UDP recv=%d\n", packetSize) ; 
  }


  return  packetSize  ; 
}

void connectToWiFi(const char *ssid, const char *pwd) {
  Serial.println("Connecting to WiFi network: " + String(ssid));

  // delete old config
  WiFi.disconnect(true);
  //register event handler
  WiFi.onEvent(WiFiEvent);  // Will call WiFiEvent() from another thread.

  //Initiate connection
  WiFi.begin(ssid, pwd);

  Serial.println("Waiting for WIFI connection...");
}

// WARNING: WiFiEvent is called from a separate FreeRTOS task (thread)!
void WiFiEvent(WiFiEvent_t event) {
  switch (event) {
    case ARDUINO_EVENT_WIFI_STA_GOT_IP:
      //When connected set
      Serial.print("WiFi connected! IP address: ");
      Serial.println(WiFi.localIP());
      //initializes the UDP state
      //This initializes the transfer buffer
      udp.begin(WiFi.localIP(), udpPort);
      connected = true;

      udp.begin(localPort); //20240906-1 
      break;
    case ARDUINO_EVENT_WIFI_STA_DISCONNECTED:
      Serial.println("WiFi lost connection");
      connected = false;
      break;
    default: break;
  }
}

 

 

- 스마트폰에서 ESP32 로 UDP통신을 하는 화면

 

 

'board_android-IoT > ESP32' 카테고리의 다른 글

Compile on both ESP32 and ESP8266  (0) 2024.10.29
ESP32 UDP SEND_RECV example  (0) 2024.09.10
ESP8266 , DB18B20 connection  (0) 2024.07.29
ESP32 Dev Board DTR/RTS  (0) 2024.06.07
ESP8266 web server  (0) 2024.06.02
posted by cskimair
:
board_android-IoT/ESP32 2024. 7. 29. 00:03

 

- Temperature measuring with DB18B20 and ESP8266 (ESP-01s)

/*********
  Rui Santos
  Complete project details at https://RandomNerdTutorials.com  
*********/
//  esp_01s_DS18B20_temp_sensor_240728-1.ino
#include <OneWire.h>
#include <DallasTemperature.h>

// GPIO where the DS18B20 is connected to
const int oneWireBus = 2  ;// 4;    

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(oneWireBus);

// Pass our oneWire reference to Dallas Temperature sensor
DallasTemperature sensors(&oneWire);

void setup() {
  // Start the Serial Monitor
  Serial.begin(115200);
  // Start the DS18B20 sensor
  sensors.begin();
}

void loop() {
  sensors.requestTemperatures();
  float temperatureC = sensors.getTempCByIndex(0);
  float temperatureF = sensors.getTempFByIndex(0);
  Serial.print(temperatureC);
  Serial.println("ºC");
  Serial.print(temperatureF);
  Serial.println("ºF");
  delay(5000);
}

-

 

'board_android-IoT > ESP32' 카테고리의 다른 글

ESP32 UDP SEND_RECV example  (0) 2024.09.10
ESP32 UDP SEND_RECV example  (0) 2024.09.06
ESP32 Dev Board DTR/RTS  (0) 2024.06.07
ESP8266 web server  (0) 2024.06.02
ESP8266 , CH340 comport, upload error  (0) 2024.06.01
posted by cskimair
: