XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Arduino Forum - Latest posts

Latest posts

Energy Management System : real & factor power, délesteur, ESP32

On a un programme avec un capteur de température DS18B20 pour mesurer la température extérieure sur un TTGO display qui envoie la température via le wifi local au programme thermostat dont voici le programme /* TTGO DS18B20 WIFI EMETTEUR temperature exterieure COM6 Lecture temperature et affichage TFT Transmission HTTP au thermostat IP EMETTEUR DS18B20 : 192.168.1.46 IP THERMOSTAT : 192.168.1.45 DS18B20 : GPIO25 Actualisation : 2 secondes */ #include <Arduino.h> #include <WiFi.h> #include…

MP3 or WAV in onboard memory

In FAT /* Blink Turns an LED on for one second, then off for one second, repeatedly. Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to the correct LED pin independent of which board is used. If you want to know what pin the on-board LED is connected to on your Arduino model, check the Technical Specs of your board at: https://docs.arduino.cc/hardware/ modified 8 May 2014 by Scott Fitzgerald…

MP3 or WAV in onboard memory

Tech Specs Board Name Arduino® Nano ESP32 SKU ABX00092 Microcontroller u-blox® NORA-W106 (ESP32-S3) USB connector USB-C® Pins Built-in LED Pin 13 Built-in RGB LED pins 14-16 Digital I/O Pins 14 Analog input pins 8 PWM pins 5 External interrupts All digital pins Connectivity Wi-Fi® u-blox® NORA-W106 (ESP32-S3) Bluetooth® u-blox® NORA-W106 (ESP32-S3) Communication UART 2x I2C 1x, A4 (SDA), A5 (SCL) SPI D11 (COPI), D12 (CIPO), D13 (SCK). Use any GPIO for Chip Select (CS) Power I/O Voltage 3.3 V…

MP3 or WAV in onboard memory

The Nano ESP is an Arduino board. Are you sure you picked the right board. I have no experience with that one. What configuration do you see on the Device info tab of ESPConnect. A Nano ESP could have 16MB of flash. See what you're getting on ESPConnect with the SPIFFS partition uploaded. The IDE should have more and clearer specified options for that board.

I need help with my studuino coding. I need my robot to follow a thick black line

Your topic has been moved to a more suitable location on the forum as it does not indicate a problem with the Arduino Command Line Tools. Please edit your post, select all code and apply code tags; see https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966#posting-code. Alternatively please post your code in a new reply using code tags. Please give a good description of the problem(s) that you are experiencing.

SD Card error opening file

polarmolar: be sure I get the formatting of the file correc A spreadsheet should work, but will happily put more than one value in a cell. I like to "search and replace" all "commas" with "comma + carriage return" so that every line has exactly one value and one comma, then right-justify. The "wrong" stuff will be easy to spot. You can write a sketch to do this, but making sure a value is a sum off its whole number, decimal point, and fraction makes it more than "counting commas versus values."

ESP32-XY Comment s'y retrouver ?

Le tableau me semble lister les puces (socs, chips) ESP32-XX, pas les nombreux modules qui intègrent ces diverses puces avec quelques composants annexes : Espressif Systems ESP Modules Explore our fully-certified wireless modules, driven by cutting-edge SoCs, streamlining your project needs.

Vertical counter, debounce and other pushbuttons

I always thought that they were more likely to be useful on "weird" architectures like PIC8 This remark is relevant, because indeed my code above is directly derived from the programming of the 8748 microcontrolers that I did in the last century; 1K of program memory, 64 bytes of RAM (the PIC8 is a Rolls-Royce, in comparison). With this, we did many, many things; if I remember correctly, my keyboards took 10 or 12 bytes of EPROM, and 4 or 5 bytes of RAM; and with reliable operation over time,…

Working with ESPWebserver and ESPAsyncWebserver

Don't know how you found that, but thank you for the link. That makes sense. I arrived at the same conclusion literally just a couple of minutes ago. I use server.on() to bind the function call to the URL, but then have to use server.serveStatic() rather than server.send(). Unless I am mistaken, that will work fine for sending static data such as .js or .css files, but not for html pages with arguments where the data needs to be dynamically updated. My original code literally built html pages…

Receiving ESPNow Serial data between two ESP32-C3e devices

Try this ...it did compile okay, I ran it through my IDE ..I didnt test it ... I just asked ai to fix your code for ya! transmitter ... #include "ESP32_NOW_Serial.h" #include "MacAddress.h" #include "WiFi.h" #include "esp_wifi.h" #define ESPNOW_WIFI_CHANNEL 1 #define SEND_PERIOD 2000 // Send every 2 seconds // REPLACE WITH YOUR RECEIVER'S MAC ADDRESS const MacAddress receiver_mac({ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF }); ESP_NOW_Serial_Class NowSerial(receiver_mac, ESPNOW_WIFI_CHANNEL,…

Working with ESPWebserver and ESPAsyncWebserver

BitSeeker: I can't find examples for how to use LittleFS with the standard non-async Webserver library. If you're talking about the <WebServer.h> built into the esp32 board platform, the initial WebServer example uses LittleFS File espressif/arduino-esp32 libraries/WebServer/examples/WebServer/WebServer.ino 3.3.12 // * use a LittleFS file system on the data partition for static files // * use http ETag Header for client side caching of static files // * use custom ETag calculation for static…

Working with ESPWebserver and ESPAsyncWebserver

This kind of reminds me of promises which are a nightmare to work with, but thank you for the example. If I recall, the values will print within the function where there serial.printf statement is commented out, but you can't access those values outside of the function. My guess is that if they were config values, they would need to be set inside the sreg function, likewise oif they were actions to turn on something, then that would also need to happen inside that function. Can I ask what…

Vertical counter, debounce and other pushbuttons

Vertical counters: Debouncing switches with vertical counters Essentially, they let you do debounce on several (M) switches by using N variables of M bits to implement M N-bit counters. I always thought that they were more likely to be useful on "weird" architectures like PIC8 that let you do (some) math directly on "memory", and I'm not sure that they'll be very helpful on RISC-y CPUs like an AVR...

Working with ESPWebserver and ESPAsyncWebserver

get request example struct __attribute__ ((packed))Vcmd { //packed format uint8_t cmd; uint16_t reg; uint8_t flags; uint32_t result; uint8_t crc; }; server.on("/sr", HTTP_GET, [](AsyncWebServerRequest * request) { sreg(request); }); void sreg(AsyncWebServerRequest * request) { JsonDocument root; Vcmd cmd; int len; cmd.flags = 0; cmd.result = 0; cmd.crc = 0x55; if (request->hasParam("cmd")) { AsyncWebParameter* p = request->getParam("cmd"); cmd.cmd = p->value().toInt(); } else cmd.cmd = 7; if…