Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Hot answers tagged

4

An example how to use NTPClient is available at the projects github #include <NTPClient.h> // change next line to use with another board/shield #include <ESP8266WiFi.h> //#include <WiFi.h> // for WiFi shield //#include <WiFi101.h> // for WiFi 101 shield or MKR1000 #include <WiFiUdp.h> const char *ssid = "<SSID>"; ...


3

No. There is no way you can use it (or not without a lot of messing around...). According to the ESP8266 GPIO Reference Guide: GPIO6 to GPIO11 are usually connected to the flash chip in ESP8266 boards. So, these pins are not recommended to use. If you mess with those pins you won't be able to access the flash chip - and that means that you can't run ...


2

The section void loop() { } Is missing in the code, add it and recompile and.....


2

Well if it doesn't work then it doesn't work so a safe bet is that chip is damaged. I found this document. It states: VBUS pad and jumber can be used to provide 5V to VBUS. By default VBUS is connected to 3.3V; certain USB devices may have issue with this. So I deduce that this is connected directly to 3.3V rail of the chip. Providing 5V without ...


1

Once a message has passed through an MQTT broker there is not a way to retrieve it from the broker. Consider instead deciding upon the action at the time the message is received by the subscriber. If this decision needs to be made at a later time consider storing the state in the of the payload of the message on the subscriber. Also consider running Node-...


1

No you can't. Refer to this: https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html However as that article states there is a dedicated SPI set of pins on the esp8266 so you should be able to use that? From your circuit diagram I see this might not be an option for you as you seem to have most of the pins allocated to a different function. ...


1

As Michel Keijzers points out, qsort is the standard sorting function from the libc. Now, since your numbers can start with either two or three digits, you can not sort them lexicographically, because if you did so 111 would sort before 82. Instead I suggest to: parse the start of the strings as integers compare the integers if the integers are equal, then ...


1

The following may not solve of your problems, but just in case it helps... I was using the ESP8266 both in Station mode and AP. Both worked. In AP mode, it worked but the ESP8266 ignored my instructions to set name and password for the AP , until I realised the following . The password must at least be 8 characters long, otherwise the instruction is ignored ....


1

Voltage is only part of what a relay uses. Check the current requirements for the relay coil/input as well. For example the common result for "3V relay arduino" will produce results for relay MODULEs that contain something akin to a SRD-03VDC-SL-C relay (labeled on the relay itself). Spec for the RELAY (separate search by relay part no) yields a data ...


1

The ESP typically runs on 3.3 Volt, not 3.0 Volt. Secondly, it looks like the board has a voltage regulator, all power goes through the voltage regulator. If that's the case the voltage you need to supply must be lower that the drop-out voltage of the regulator (which is typically around a volt).


1

The SDA line of of ADS1115 will use 3.3 V if you power it with 3.3 V, but then the maximum analog input voltage would be 3.6 V (VDD + 0.3 V). The ACS712 has the middle value at 2,5 V so to read it you need the 5 V range and must power the ADS1115 from 5 V. Then the SDA line of esp8266 will be connected to 5 V logic level, but the esp8266 pins can handle 5 ...


1

The syntax of six SendHTML you use with true and false is actually wrong. By defining a function like this String SendHTML(uint8_t LED1status,uint8_t BUZZ1status,uint8_t ABA1status), you mean that first, second and third input to this function are Status of LED1, Status of BUZZ1 and Status of ABA1. So try replacing all six SendHTML with true and false ...


1

The esp8266 is without AT firmware. Even with SoftwareSerial at 115200 baud you should see "ready" from AT firmware and get some response to AT commands. This esp8266 module adapter is simple to flash. It makes the 5 V to 3.3 V conversion for power and RX pin and has a program switch (io 0) and a reset button to put the esp8266 into flashing mode. Use an ...


1

Use the 5v regulator to power both the ESP and the Nano. Those onboard regulators have minimal heat dissipation and if they burn out you lose the whole Nano. Check how hot your external regulator gets and mount it on a heat sink if it gets too hot to touch. NB Connect the regulator output to the Nano 5v pin directly


1

There seems to be multiple questions in what you are asking. Here I try to answer specifically this one: if I shift a uint16_t (or any non-trivial datatype) right by 8 bits, and mask out the bottom 8 with &0xFF, do I always get the second-least-significant (in this particular case, high) byte, or can the compiler produce alternate outputs based ...


1

No, you have not bricked your ESP8266 by turning on GPIO7's pullup. All that will do is provide a weak pullup on the MISO line of the flash chip, which itself will have no effect - the flash chip's SPI Data Out pin will be able to easily override that weak pullup. You can remove the flash chip and replace it with a completely blank brand new flash chip ...


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