New answers tagged

1

In fact it works well using a wire between D2 and RESET pins. But sending the program to the board, you must first disconnect these pin (the arduino IDE will send a hard reset during process, so this D2 reset must not be in place). When the program is uploaded to the ESP and start running, you connect D2 and RESET and it works well, ESP will go to deep sleep ...


0

One is a server and the other is a client. The server do not need to know IP of the client, but the client need to know IP address of the server. See more in communication between two Arduino


-1

Why not use a PCF8574 I2C expansion board, they work great on 3V3. If you need more inputs or outputs use the PCF8575. There are a lot of I2C expansion boards you can select from. They will also be faster and less convoluted then your existing solution.


3

I have a domain. Congratulations. It is hosted by GoDaddy. You have my deepest sympathies. I need to connect that server and receive some data by executing PHP files. I am not sure about the components. Tutorials on internet describes how to control esp8266 from web server which is i do not want. "Controlling" an ESP8266 from a web server is ...


2

Writing Junk From Memory Serial.write(analogRead(A0) + "\r\n"); This is advancing a pointer to "\r\n" by whatever number is being returned by analogRead. In other words, you are not sending the measurement but junk from memory after (or sometimes at) "\r\n"'s memory location. Serial.println(analogRead(A0)); appears to be what ...


1

These random values could be nothing but noise as your receiver may be sensing other source of ultra sound. In your case, the circuit is especially sensitive as the output powers a relay and any noise in the input side will cause the relay to "chatter". There are many approaches to filtering and smoothing out the signal. One method would be to ...


1

dandavis helped me find the answer! Turns out it was a memory leak, due to some poor math on my end. All I had to do was fix that up and it worked fine.


3

That instruction is for setting up an interrupt handler for the timer. It is very much specific to the AVR. There's a lot more to do that just adjust that one statememt - you have to completely rewrite the whole of the timer code that you're using to operate with the ESP8266 SDK calls. Without knowing what your code intends to achieve it's impossible to help ...


5

Code using the Arduino Wire library is generally portable between processors, but there are pitfalls to watch for. One that I'm aware of is a difference in the Wire libraries for the ESP32 and ESP8266. The TwoWire::begin() method for the ESP32 has prototype: bool TwoWire::begin(int sdaPin, int sclPin, uint32_t frequency); whereas for the ESP8266 it is: ...


1

I'm unclear on the distinction being drawn here: the hostname and not mDNS mDNS, like DNS, and hostname lists are all things a "resolver" would use to map a "hostname" to an IP address. If you mean "how do I use DNS instead of mDNS?", you'd need to have your ESP8266 running a DNS server. And for clients to be aware of it you'...


5

I take this to mean that you do not want to have to ask the user of the code to configure a boolean flag. The ESP8266 Arduino package provides -DARDUINO_ARCH_ESP8266 -DESP8266 command-line options these while calling g++. These effectively #define feature test macros as though they were at the beginning of the source code. For ESP32 it does likewise with -...


1

At least one problem is this: <h3>Singleshot: %d% ms </h3>\ If you want a literal percent sign, you would need to double it, a form of escaping: <h3>Singleshot: %d%% ms </h3>\ It's not entirely clear how this implementation of snprintf handles %<space>, but experiments here show that it isn't being ...


0

A local solution would be to use EERAM. This is an EEPROM and an SRAM coupled together with some intelligent power management circuitry - writes get stored in SRAM until the power goes (or an instruction to save is sent) when the contents of SRAM get copied into EEPROM using the power stored in a large capacitor. A good choice is the 47C16 (5V) or 47L16 (3....


5

If you put: #define DO_NOTHING(s) (s) DO_NOTHING(R"xyz(Hello World)xyz") you can see g++ choke on preprocessing the raw string literal in the macro invocation with the latest esp8266 board package as of writing (version 2.7.4). This comes with g++ 4.8.2 for xtensa. ~/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-...


0

If you worry about the maximum number of write cycles, you could write the data to an SD card or some FRAM connected to the ESP8266, or you could send the data to a (web) server (if you have access to one) using WiFi. The server can then store the data. If you really care about the data, you could do both. Having a backup is the only protection against ...


1

I don't know if this is the actual fix for the problem ,but instead of FirebaseArduino library i used FirebaseESP8266 library and the random exceptions did not come up (yet) FirebaseESP8266 https://github.com/mobizt/Firebase-ESP8266/ P.S. sorry for not reverting back quicker !!


Top 50 recent answers are included