Search found 69 matches

by becorey
Mon Jan 25, 2021 6:48 am
Forum: Hardware
Topic: Connected to multiple relays but only work one at a time
Replies: 3
Views: 111

Re: Connected to multiple relays but only work one at a time

The esp32 high level source current rating is 40 mA (typ). The Songle relay SRD-03VDC-SL-C says the typical coil current is 120 mA. The board you're using with the relay mounted on has one 3 terminal component that is possibly a transistor or mosfet to help you with power. Also an optoisolator. Try ...
by becorey
Mon Jan 25, 2021 6:29 am
Forum: Hardware
Topic: Resetting esp32
Replies: 9
Views: 420

Re: Resetting esp32

Yes, put the bulk cap on the input to the motor driver. Electrolytic caps have polarity and also tons of capacitance in small space. Think of the motor driver as just redirecting the input DC voltage to the positive or negative motor terminal to control direction (and also pwm to control speed). So ...
by becorey
Sat Jan 23, 2021 2:51 am
Forum: Hardware
Topic: Resetting esp32
Replies: 9
Views: 420

Re: Resetting esp32

You need a bulk cap for the motor V+ supply, try that first. If you look at the L298N datasheet pg 8, it shows a 470uF cap. And in this article, the module he's using has a 220uF cap for each motor. https://lastminuteengineers.com/l298n-dc-stepper-driver-arduino-tutorial/ A larger motor controller w...
by becorey
Fri Jan 22, 2021 7:58 am
Forum: Hardware
Topic: Resetting esp32
Replies: 9
Views: 420

Re: Resetting esp32

The motor and esp each have their own battery, but GND is connected. The motor is inductive, from a changing load or speed it can dip or spike it's power supply. Perhaps it is dumping energy into GND which raises it's potential, decreases the gap between GND and vdd giving you temporary low voltage....
by becorey
Tue Jan 19, 2021 3:27 pm
Forum: Hardware
Topic: ESP-WROOM-32 not programming
Replies: 4
Views: 156

Re: ESP-WROOM-32 not programming

There's an internal pull-up on IO0 and pulldown on IO2, no need for external resistors.
https://www.esp32.com/viewtopic.php?t=5970
by becorey
Sat Jan 16, 2021 7:36 am
Forum: Hardware
Topic: Peripheral Timer eventually returning unexpected count
Replies: 2
Views: 313

Re: Peripheral Timer eventually returning unexpected count

Can you share more of your code? Are you using an interrupt function triggered by the counter pulse?

What does ".counter_en = false " do?.

It's 1kHz, 40 divider, why do you expect 2000 counts? Is it run for 80 seconds?
by becorey
Sat Jan 16, 2021 7:30 am
Forum: Hardware
Topic: LOLIN D32 Pro V2.0.0 power/battery red LED keeps flashing quickly
Replies: 2
Views: 406

Re: LOLIN D32 Pro V2.0.0 power/battery red LED keeps flashing quickly

The led is connected to TP4054 CHRG pin. With no battery connected, maybe it is doing the "charge complete / AC present" indicator of 20uA pull down. Are you seeing a bright flash or very dim? https://i.imgur.com/mwLLfeQ.png https://i.imgur.com/yWuAvCs.png Maybe your usb port is doing something like...
by becorey
Fri Jan 15, 2021 6:38 am
Forum: Hardware
Topic: Voltage monitor of battery
Replies: 8
Views: 551

Re: Voltage monitor of battery

Read this post, it was published by espressif, you need to manually measure vref and then input it in your code as a calibration: https://www.esp32.com/viewtopic.php?f=19&t=2881&start=20#p16166 The analog_read function is not applying calibration or anything. So if you use analog_read, you must conv...
by becorey
Fri Jan 15, 2021 1:42 am
Forum: Hardware
Topic: Pin behaviour in case of chip defect
Replies: 6
Views: 629

Re: Pin behaviour in case of chip defect

Yes as chegewara said the watchdog chip is simpler and less likely to fail and the esp32. So you have shifted the problem from the ESP 32 over to the watchdog chip, you shifted the problem from a more likely failure to a less likely failure and that is a success. You also can have a watchdog chip th...
by becorey
Fri Jan 15, 2021 12:55 am
Forum: Hardware
Topic: Voltage monitor of battery
Replies: 8
Views: 551

Re: Voltage monitor of battery

Two point calibration will correct the offset and slope, thus you'll be more correct at both the low end and high end. Efuse vref can be single point or two point, obviously two point is a little better. Two Point values represent each of the ADCs’ readings at 150 mV and 850 mV. To obtain more accur...

Go to advanced search