Resistors and ESP32 ADC #19
Replies: 18 comments 59 replies
-
Greetings! 1.07 ohm resistors don't work for me either. See #9. |
Beta Was this translation helpful? Give feedback.
-
It might depend on the esp32.
The S2 version reads from 0 volt, not only from 0,1...
Holen Sie sich Outlook für Android<https://aka.ms/AAb9ysg>
…________________________________
From: Niklas Stadigs ***@***.***>
Sent: Monday, September 19, 2022 8:34:09 AM
To: nliaudat/esp32_8ch_motor_shield ***@***.***>
Cc: Christian Winkler ***@***.***>; Author ***@***.***>
Subject: Re: [nliaudat/esp32_8ch_motor_shield] Resistors and ESP32 ADC (Discussion #19)
Greetings!
1.07 ohm resistors don't work for me either. See #9<#9>.
12 ohm resistors works well for me. I don't know why @nliaudat<https://github.com/nliaudat> settled for 1.07 after that discussion, but since 1.07 seems to work for others, I have a working solution myself and the fact that I don't understand half of these things I just dropped it. 🤷♂️
—
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFRV6WWDHCZTNJM2TCC3N6DV7ACODANCNFSM6AAAAAAQPR6L6Y>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, You can add a resistor in open headers between gnd and bemf to fit your needs. I do not remember if it setup serial or parallel. |
Beta Was this translation helpful? Give feedback.
-
I now hat time to post my findings. My HmIP-VdMot motors are rated on the Label with 120mA max. and 3V3 supply voltage. During running the draw 20mA while opening and 30mA while closing. When they run to block while opening they draw roughly 40mA before the click click noise (gear teeth slipping) is coming. When closing they draw 120mA before the drive pops up from the valve. So i switched to dual ads1115 as adc for all channels and used analog_threshold at 40mA for opening and 80mA for closing and they work like a charm. |
Beta Was this translation helpful? Give feedback.
-
ads1115 smt chip costs 5.42$ at JLCPCB ==> +11$ price increase for the board. |
Beta Was this translation helpful? Give feedback.
-
For now I run two units with ads1115 without flaws. It's just a bit ugly |
Beta Was this translation helpful? Give feedback.
-
For information, the 1R resistor for BEMF works great with ESP32-C3. |
Beta Was this translation helpful? Give feedback.
-
For information, esphome support now the 8 channels adc128s102. |
Beta Was this translation helpful? Give feedback.
-
@Tecnologic Do you mind adding a LM358 opamp chip could fix the ADC reading ? |
Beta Was this translation helpful? Give feedback.
-
A Quad Op-Amp LM324 cost less then 10cent at JLCPCB some Resitors and capacitors to add, would be a cheap solution to fix the ADC-Readings. |
Beta Was this translation helpful? Give feedback.
-
@Tecnologic @Lonestar78 @Karl-opec : Can you validate the schematic for LM324 opamp ? calculation done at http://mustcalculate.com/electronics/noninvertingopamp.php?vin=0.01&r1=10k&r2=50k |
Beta Was this translation helpful? Give feedback.
-
I have one from azdelivery and the problem with the 0.08v BEMF to. The c und S2 version working without problems? Can someone recommend a shop where you are sure not to get a buggy esp. |
Beta Was this translation helpful? Give feedback.
-
New version v57 rev 1.47 :
|
Beta Was this translation helpful? Give feedback.
-
The opamp do not work in latest version. |
Beta Was this translation helpful? Give feedback.
-
Thank you for you offer, yes it would be nice. your previous BEMF trigger can be reached. look at the Motor Current chart. While Blocking the motor can gain higher currents and this is leading to high BEMF Trigger Values. But remember you want to measure the Motor Current. and more than 30-35 mA are not needed to trigger. because of different blocking currents for openning and closing i have split the trigger levels for open and close. the use of the filter is not realy of any use. as the trigger level is the switch pont. |
Beta Was this translation helpful? Give feedback.
-
Everybody who's want to contribute must say. The main goal is to make an open source heating controller for everybody. The only contributors are in that discussion and you are welcome to improve or get more involved. Regards and many thanks for your improvements |
Beta Was this translation helpful? Give feedback.
-
Here is the easyeda link to view the project : https://oshwlab.com/project/join/b2642362910a768d05dcb075a611a4d2 |
Beta Was this translation helpful? Give feedback.
-
Dear @nliaudat,
quick one....i use v54, rev 1.34....there i find 1,07 Ohm resistors between BEMF and Ground (R3).
Measuring BEMF on the open header gives me ~10mv if a valve opens/closes without load, ~30mV on endstop (open and klack klack klack...).
Given that the ESP32 adc reads 0 for 0-0,1v how do you get ADC readings?
i always get 0....damn, can it be, that the 1,06 Ohm Resistor is to small? Why did you change it from 12 Ohm?
Attenuation is set to 2.5db and 12bit resolution.
Any hint is welcome.
May it be, that i have to re-solder bigger (= higher ohm) to R3?
also could use 10kOhm there and another 10kOhm between header for BEMF and VCC.
What do you think?
Thanks!
Christian
Beta Was this translation helpful? Give feedback.
All reactions