Hot answers tagged

4

The RESET of the UNO puts the ATMega328P (the MCU of the UNO) into an electrically inert state when it is connected to GND. It is not supposed to be running your sketch when it is being held in reset. It is, roughly speaking, electrically disconnected from everything else on the board. This allows you to use the UNO as though it were a USB to TTL serial ...


3

The best way to handle this exception is to identify what's using so much space on the stack and rewrite your code to avoid it. The three most common ways you'd use too much stack space are: large local variables - for instance, declaring a large array as a local variable inside a function, like: #define VERY_LARGE_STRING_LENGTH 8000 void loop() { char ...


2

Yes, it will work, but only just. It's borderline. The ESP32 gives out at most 3.3V as a HIGH signal. The Arduino accepts "above 0.6Vcc" as a HIGH signal. That means that it needs to see a voltage that is at least 60% of the voltage on the Vcc pin (5V pin) of the Arduino. If the Arduino has exactly 5V then 60% of that is 3V. Since 3.3V is higher ...


2

You connected the V- and V+ probes of the INA module direct to the V- and V+ of the solar panel. That means you connect V+ with V- from solar panel over a 0.1 Ohm resistor. That is like a short. The Solar panel gets overloaded and the voltage breaks down. Lucky you, the solar panel can not provide more current. If it could, then the shunt resistor would be ...


2

The purpose of the PSTR() macro is to configure the string to be used directly from flash memory. The string is then not loaded to dynamic memory at runtime as it would be without PROGMEM specifier set by the macro. The purpose of the FPSTR() macro is to cast a string to 'dummy' FlashStringHelper type to help compiler choose the right overloaded function if ...


2

There is an example of client certificates here. https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino I believe the answer by @StarCat should be expanded to use the ca cert and client certs. With MQTT, we don't want clients being faked either.


1

SOLVED My module is esp8266-01S, i need to set the SPI MODE to DOUT, BAUDRATES=115200, SPI SPEED 40MHz and the software is NODEMCU FLASHER. The important keyword is "DOUT". I have been flash many times but with not DOUT SPI METHOD. I thought change it will not fix that. I was using QIO SPI MODE but it doesn't work.


1

So, I got it working with this information on this blog Few things, my serial.begin(115200) where as in blog its 9600 Thanks @timemage for moving me in right direction [1]: https://medium.com/@cgrant/using-the-esp8266-wifi-module-with-arduino-uno-publishing-to-thingspeak-99fc77122e82


1

The problem is the ESP8266-01 as diagrammed is shorting the pins of the header. Remember that the breadboard you are using connects all pins on each side, on a row by row basis. The WiFi module has 8 pins with the pinout shared in other posts. You must "float" the module and wire it to the breadboard with point to point wiring (hope that is ...


1

You need the CP210x drivers from here.


1

The following code is not very "clean" but easy to understand. Use a variable to hold the day, you have already printed and check in which interval you are. If you change the 2 day interval print a message and set the actDay variable to the number of the day you have already printed; to avoid repprinting it again. int daytwo = 25920; int dayfour = ...


1

The ESP-01 ... and all ESP8622 ... have two modes for operation. Flash mode / Boot load mode - on bootup (at the time an electrical current is first applied, or after the reset pin is grounded), if the GPIO0 (GPIO Zero) pin {On the ESP-01 this is the 7th pin} is connected to ground, the chip goes into non-run, receive program mode. This is where you load ...


1

After testing the server on the host machine using an additional computer, I was able to produce the desired output. I would suspect it is an issue within the library or mis-use/understanding. I found a post that suggested the library was the problem and ended up using this library instead. Using the example implementation , I was able to achieve the desired ...


1

You can use "objcopy" to produce an object file from the file's contents, if you declare it as binary. objcopy -I binary echarts.min.js -O <your-bfd-format> echarts.min.js.o To find out which BFD format you need, run objdump -t <any object file> and look at its output. The resulting object file contains an object named after the input ...


1

You could write a simple program that escapes all the offending characters and use the output of that in your const char libData[]; see here for a list of escape sequences; You could serve the library directly from a (pseudo) file system on the ESP8266, without having to copy it "manually" into a variable; you just copy the file to the filesystem; ...


1

I found the solution on another forum. You need to add the ICACHE_RAM_ATTR attribute to the interrupt so it stays in cache. void ICACHE_RAM_ATTR CLK_ISR() { ClkCount++; } Now: Freq is: 332596 - connected for 680s, operating at 160MHz That's all I tested to, but 330kHz is a bit better than crashing at 7kHz, lol! edit: I've discovered that it now crashes ...


1

Yes, you can @Imanuel. You just need to establish a Simple TCP connection and then send the HTTP headers for upgrading the normal HTTP connection to WebSockets.


Only top voted, non community-wiki answers of a minimum length are eligible