Search found 43 matches

by bobtidey
Mon Feb 19, 2024 9:25 am
Forum: ESP8266
Topic: Esp8266 2-pin button not working correctly
Replies: 1
Views: 2514

Re: Esp8266 2-pin button not working correctly

GPIO16 is different from the other GPIO pins. It doesn't have a pullup. Instead it has an optional pull down.

Either use a different pin or use pulldown and wire the switch between 3.3V and GPIO16.
by bobtidey
Mon Jan 22, 2024 5:49 pm
Forum: ESP8266
Topic: esp8266 restarting
Replies: 1
Views: 19232

Re: esp8266 restarting

There is nothing in that code that would cause restarts. If code is going to cause a restart then it is normally down to long delays in the loop() which then causes the watchdog to trigger. If you monitor the serial port then you would get the restart code which will say why a restart occurred. A mo...
by bobtidey
Tue Sep 19, 2023 6:01 pm
Forum: ESP8266
Topic: ESP8266 reboot report
Replies: 2
Views: 21984

Re: ESP8266 reboot report

ESP.getResetReason().c_str() will return a string with reason for last reset rst_info *resetInfo; resetInfo = ESP.getResetInfoPtr(); will give you access to the rst_info structure which has more detail Check out https://www.esp8266.com/viewtopic.php?p=26862 From either of those you could store the d...
by bobtidey
Tue Aug 08, 2023 1:18 pm
Forum: ESP8266
Topic: is esp8266 support ftp at commands
Replies: 1
Views: 8411

Re: is esp8266 support ftp at commands

For an ftp client running on the esp8266 you will need to load code on the esp8266 rather than try to use the AT commands.

A library and examples used in arduino environment can be found at https://github.com/dplasa/FTPClientServer/tree/master
by bobtidey
Fri Jul 07, 2023 8:24 am
Forum: ESP8266
Topic: Need to improve battery life of my ESP8266 temp hum sensor
Replies: 1
Views: 24625

Need to improve battery life of my ESP8266 temp hum sensor

Continuation of thread previously on esp8266.com I don't use EspHome myself but looking at documentation it would look like the run_duration in the config means that it will re-enter deep sleep 30 seconds after waking up. As you are waking up to measure and report every 10 minutes this means the esp...
by bobtidey
Wed Jul 22, 2020 9:23 pm
Forum: ESP32 Arduino
Topic: Many ESP32 modules on single wifi access point?
Replies: 3
Views: 6734

Re: Many ESP32 modules on single wifi access point?

I don't think it is specifically to do with esp32, rather a question of the size of the packets and the rate at which they are being sent. If the interval between each mqtt packet is a decent amount then there should not be a problem in supporting a large number of devices. I have about 35 esp8266 s...
by bobtidey
Wed Jul 22, 2020 9:11 pm
Forum: Hardware
Topic: Pick up WiFi noise
Replies: 3
Views: 5742

Re: Pick up WiFi noise

White noise at 80 MHz is a meaningless requirement. White noise is a random signal having equal intensity at different frequencies, giving it a constant power spectral density. (Wikipedia) So if it was white then the power density would be the same at 1MHz,10MHz,100MHz etc. If you give some backgrou...
by bobtidey
Tue Jul 07, 2020 8:08 pm
Forum: ESP32 Arduino
Topic: How does ESP32 drives OLED 1106
Replies: 5
Views: 8470

Re: How does ESP32 drives OLED 1106

These display modules can either be SPI or I2C. It sounds like yours defaults to I2C. I2C connects to the SCK & SDA pins. They should normally have the required I@C pull ups on the display board. DC in I2C is used as an I2C address selector. If it is pulled low then the address should normally be 0x...
by bobtidey
Sat Jun 06, 2020 11:44 am
Forum: Hardware
Topic: ESP32 powering a solenoid
Replies: 12
Views: 15390

Re: ESP32 powering a solenoid

I think that even for the 2n2222A version it is hard to come up with a worst case design that provides sufficient Ib to saturate and yet doesn't potentially try to draw more than 40mA from a GPIO. 2n2222A max Vbe Sat @ 500mA Ic 2V might be a bit less at 300mA but not actually specified Assume GPIO V...
by bobtidey
Fri Jun 05, 2020 8:43 pm
Forum: Hardware
Topic: ESP32 powering a solenoid
Replies: 12
Views: 15390

Re: ESP32 powering a solenoid

Just to amplify further why I think trying to exploit potential 40mA capability of a GPIO would be a bad idea. 1 Vbe sat of a 2n2222A could be 2.0V 2 Vo of a GPIO at 40mA could drop to 2.6V 3 So to guarantee 30mA Ib what base resistor would you use? 4. Then under typical conditions where GPIO might ...