logo elektroda
logo elektroda
X
logo elektroda

ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver

maystero 1257 25
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18933914
    maystero
    Level 24  
    Hello

    Colleagues! I made such a controller (controls 4x LED strings on 230V). Controller with option: WiFi + IR - so for convenience.
    Some time ago a prototype was created on a universal board. And once I got to grips with the software, I decided to design the PCB. I ordered the boards from jlcpcb.com.
    When the boards arrived I assembled 1x copy and flopped. A whole Sunday wasted looking for a bug. Unfortunately I failed.

    Well, the problem is very strange. Assembled circuit:
    ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver .

    It does not want to start when resistors R3 and R4 are soldered in
    here is the schematic:
    ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver .

    At first I thought it was some error in the PCB design: a short circuit, missing ground, or a faulty component. So I checked the PCB for possible short circuits, replaced the thyristors, MOC3041 optotriacs and no improvement.
    I figured I would connect the Arduino serial monitor and eavesdrop on the transmission. Unfortunately no connection could be made.
    ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver .
    When I pull the ESP8266 out of the cradle, the module itself starts up and then draws 78mA (which is about the same as the working prototype) and works fine (connects to WiFi).
    But when I put the ESP8266 module back in the cradle and apply power, the chip draws about 46mA
    I conclude that it crashes on startup.
    I don't know what is!
    I have checked the power supply.
    The problem goes away when I unsolder R3(D3) and R4 (D4)

    The difference between the prototype is that in the prototype there were 4x Leds in place of the optotriacs and the power was taken from the USB of the computer. I also noticed that in the prototype the Leds at the output of D3 and D4 always flash briefly on start-up
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • Helpful post
    #2 18934104
    Anonymous
    Level 1  
  • #3 18934111
    mpier
    Level 29  
    A mistake in the projection, as you have already pointed out. Check what the manual says about pulling down to ground these two pins during startup.
  • #5 18937521
    maystero
    Level 24  
    Thank you all for your valuable comments.
    I actually changed the program and connections in the circuit and the whole thing started working properly.

    Unfortunately I used all GPIO outputs
    And I need to have WiFi RESET functionality. For this purpose I was using 1x PIN and when HIGH state appeared on it, the program was performing the function of resetting the settings from WiFi.
    Can I use PIN A0 in this situation?
    ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver .
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #9 18937554
    Anonymous
    Level 1  
  • #10 18937566
    khoam
    Level 42  
    Jarzabek666 wrote:
    Rather not wemos on A0 have voltage dividers. 1:3, unless you correct the factory and discard this divider or include it..
    .
    This extra R9/R10 divider is not needed at all. All you need is the A0 pin on the Wemos to have a pull-down to ground, and a 3V3 supply voltage is applied to the button.

    Added after 6 [minutes]:

    Wemos D1 mini schematic below. The ADC is a direct input to the ESP8266.

    ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver .
  • #11 18937610
    Anonymous
    Level 1  
  • #12 18937623
    khoam
    Level 42  
    Jarzabek666 wrote:
    As this is on the right R1 R2 ?? there would be conflicting info because wemos have a 3.3V ADC input and as you know bare ESP has up to 1V.
    .
    It is as you wrote earlier - the voltage from A0 is divided by about 3 before it is fed to the ADC in the ESP8266. This doesn't interfere in any way with what I wrote in post #10. Well, except maybe that you don't need an extra pull-down to ground, you just need to apply 3V3 voltage to A0 with the switch, which will give a reading of 1024 ;) .
  • #13 18937948
    tos18
    Level 42  
    maystero wrote:
    Unfortunately I have used all GPIO outputs
    And I need to have the WiFi RESET functionality.

    You can reset the wifi with a command from the IR remote control
  • #14 18959178
    maystero
    Level 24  
    tos18 wrote:
    maystero wrote:
    Unfortunately I used all GPIO outputs
    And it needs to have WiFi RESET functionality.

    You can reset wifi with a command from the IR remote control


    A silky idea! :D

    The only thing is, if you think about it carefully, someone will accidentally press the "button" and you will need to pair the chip with WiFi all over again.

    I also have a small question...

    I'm struggling with data conversion.
    I have a PWM controller on the ESP8266 and the PWM range is from 0 to 1023.
    And I want to convert this to percentages. I found on electrod
    Code: C / C++
    Log in, to see the code
    .

    But during the complication I get the message that:
    Code: C / C++
    Log in, to see the code
    .
    Increasing the type of the variables does nothing....
    what am I doing wrong?
  • #15 18959229
    khoam
    Level 42  
    maystero wrote:
    But during the complication I get a message that:

    What type are the variables percentage and sliderValue ?

    maystero wrote:
    Just when you think about it, someone accidentally pushes the "button" and you need to pair the chip with WiFi all over again.
    .
    It depends on what this "Reset" is supposed to do. Information about the last logged network (before the reset was performed) can be automatically stored in flash.
  • Helpful post
    #17 18959271
    khoam
    Level 42  
    Macro map () only works on long int types, so before specifying the value of sliderValue you must convert this variable to an int type using the function toInt (), e.g.:
    Code: C / C++
    Log in, to see the code
    .
    https://www.arduino.cc/reference/en/language/variables/data-types/string/functions/toint/
    https://www.arduino.cc/reference/en/language/variables/data-types/stringobject/
  • #18 18959294
    tos18
    Level 42  
    maystero wrote:
    Only if you think about it carefully, someone will accidentally press the "button" and you will need to pair the chip with WiFi all over again.


    And who said it couldn't be a sequence of three buttons ?

    maystero wrote:
    On the ESP8266 I have a PWM controller and the PWM range is from 0 to 1023.
    .

    maybe just maybe:
    Code: C / C++
    Log in, to see the code
    .
  • #19 19046824
    maystero
    Level 24  
    Gentlemen again please help. I cannot get to grips with the code.

    I am rewriting,the code from the website:
    https://randomnerdtutorials.com/esp8266-nodemcu-web-server-slider-pwm/

    Nothing complicated, yet. The code after compiling and uploading to the ESP works immediately. Typing in the ESP8266 IP takes you to an interface with a slider where you can set yourself the PWM value. The result is displayed from: 0 to 1023
    ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver .

    I am trying to figure out how to make it display the result in %.
    e.g. 10% or 100%

    I got help on the forum and added a line like this
    Code: C / C++
    Log in, to see the code
    .


    Unfortunately this does not work with my assumption. I wanted between
    Code: C / C++
    Log in, to see the code
    .
    display the result of the variable "porcent"
    and it does not display

    in the serial port monitor shows correctly:

    Code: C / C++
    Log in, to see the code
    .

    What am I doing wrong?
    How do I bite it?

    oh this is my code:
    Code: C / C++
    Log in, to see the code
    .
  • #20 19046981
    khoam
    Level 42  
    maystero wrote:
    Combs how to make it display the result in %
    .
    Code: C / C++
    Log in, to see the code
  • #21 19046999
    maystero
    Level 24  
    I think I have poorly explained what the problem is....
    The problem is that EST is not displaying me the PWM value in %.

    Instead of displaying the wattage of the variable percentage it displays the text
    "percent"
    ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver .

    I don't know how to modify the part that is responsible for displaying this information.
  • ADVERTISEMENT
  • Helpful post
    #22 19047787
    khoam
    Level 42  
    maystero wrote:
    I don't know how to modify the part that is responsible for displaying this information.

    For:
    Code: HTML, XML
    Log in, to see the code
    I propose:
    Code: C / C++
    Log in, to see the code
    .
  • #23 19048790
    maystero
    Level 24  
    ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver .
    Continues not to display string percentage
    constantly shows 0

    Added after 2 [hours] 4 [minutes]: .

    After testing the code some more and it looks like it works!

    ESP8266 - no start-up after soldering resistors R3 and R4 in the LED driver

    The current percentage is shown when I refresh the page (F5)

    i.e. I think something still needs to be improved....
  • #24 19051578
    khoam
    Level 42  
    You still need to modify the updateSliderPWM(element) function in the HTML so that it also takes into account the "percentage" variable, in addition to "sliderValue". If you can't manage it, I won't be able to deal with it until tomorrow evening unless there is another willing party before then ;) .
  • #25 19053401
    maystero
    Level 24  
    khoam wrote:
    You still need to modify the updateSliderPWM(element) function in the HTML so that it also includes the "percentage" variable, in addition to "sliderValue". If you can't manage it, I won't be able to deal with it until tomorrow evening unless there is another willing party before then ;)
    .

    Is it about this part?

    Code: C / C++
    Log in, to see the code
  • #26 19072534
    maystero
    Level 24  
    I would like to bump up the topic as I can't seem to figure it out. I am very much asking my colleagues for help.

Topic summary

The discussion revolves around troubleshooting an ESP8266-based LED controller that fails to start after soldering resistors R3 and R4 in the LED driver circuit. The user initially suspects a design error or faulty components but finds that the issue is related to the GPIO0 and GPIO2 pins, which must be pulled up to Vcc (3.3V) during startup for proper operation. After making adjustments to the circuit and program, the user successfully resolves the startup issue. The conversation then shifts to utilizing the A0 pin for WiFi reset functionality and converting PWM values from 0-1023 to percentages. Various coding issues are addressed, including type conversion and displaying results in a web interface.
Summary generated by the language model.
ADVERTISEMENT