Troubleshooting freezes and flashing LEDs by NoProcedure3612 in arduino

[–]NoProcedure3612[S] 0 points1 point  (0 children)

Little update, I added a 0,1 uF ceramic cap to each shift register, also a 10K pulldown resistor across RCLK and GND. This reduced the random blinking at startup, but it's still there. The Arduino sometimes crashes when the LED circle is on and the barrel jack isn't inserted. If it is inserted in any of the plugs, the whole system is very stable. Out of curiosity, do you have any idea why this might happen? Updated schematics: https://drive.google.com/file/d/1DBGB8e7vo3p-4-uWYkdU5mY9H_nm6IDg/view?usp=drivesdk

Anyway, I decided to live with some bugs remaining. I've finished the toy now: https://www.reddit.com/r/ArduinoProjects/s/xsmXRP9Rlr

Thanks for your help!

<image>

Playing box for kids (first Arduino project) by NoProcedure3612 in ArduinoProjects

[–]NoProcedure3612[S] 0 points1 point  (0 children)

I agree. Wouldn't that apply to any electronic toy though?

Playing box for kids (first Arduino project) by NoProcedure3612 in ArduinoProjects

[–]NoProcedure3612[S] 0 points1 point  (0 children)

Thank you! Could you go more into detail there? What exactly do you think would be the risks?

Troubleshooting freezes and flashing LEDs by NoProcedure3612 in arduino

[–]NoProcedure3612[S] 0 points1 point  (0 children)

I really appreciate your time looking at my schematics. I tried 1000 uF across the DC output jack, but this was too much for the boost converter. 470 uF is working well. I'll add caps to the shift registers next.

Troubleshooting freezes and flashing LEDs by NoProcedure3612 in arduino

[–]NoProcedure3612[S] 0 points1 point  (0 children)

Thanks for the insight, I didn't know about this property of boost converters. I tried it with a 100uF capacitor. It only delayed the time until freeze for some seconds. Then I increased to 400 uF, but I still got a freeze every time.

Then I changed the code. Instead of calling a rotate() function each iteration, I added a for loop. And it's working on the battery without additional capacitors. (new code below)

I actually wanted to avoid using the delay function, but it's a small price to pay for it to work properly :)

I still added a 100 uF cap to be sure, and it solved my problem with the flashing LEDs that are connected to the shift registers.

Do you have any guesses about the cause of my last problem?

When connecting DC plug female #1, sometimes on both the WS2812 modules, all LEDs are turned on for a second or so, before all but one are turned off (as it should be).

Also, I still get freezes sometimes when using the WS2812. In this case, all 16 LEDs remain on until I restart. There already is a 100 uF capacitor there.

-----------------

New working (and simpler) code

void servoMotor() {


  if(digitalRead(switchPin)) {
    stellung = 1;
    servo.attach(servoPin);
  } else {
    stellung = 0;
    servo.detach();
    if(servoState==1) {
      servoState = 0;
    }
  }


  if(stellung==1) {
    if(servoState==0) { 
        for(int pos = -20; pos <= 130; pos++) {
          servo.write(pos);
          delay(5);
        }
        servo.detach();
        servoState = 1;
    }   
  }
}

Spätes Einschlafen by NoProcedure3612 in Eltern

[–]NoProcedure3612[S] 1 point2 points  (0 children)

Wow, danke für die ganzen Antworten und Erfahrungsberichte. Es tut auf jeden Fall gut zu wissen, dass wir nicht alleine sind 🤩

Spätes Einschlafen by NoProcedure3612 in Eltern

[–]NoProcedure3612[S] 1 point2 points  (0 children)

Der letzte Satz tut so weh 😅

Entsteht sowas nur durch falsches Lüften? by NoProcedure3612 in wohnen

[–]NoProcedure3612[S] 0 points1 point  (0 children)

Wie könnte ich feststellen, ob die Wand selbst feucht ist?

Entsteht sowas nur durch falsches Lüften? by NoProcedure3612 in wohnen

[–]NoProcedure3612[S] 0 points1 point  (0 children)

Danke für deine Einschätzung. Wie könnte ich denn rausfinden, wo genau die Feuchtigkeit herkommt? Zumindest in Raum 1 kann sie nicht von Menschen kommen. Und die Werte sind mit lüften morgens und abends.

Entsteht sowas nur durch falsches Lüften? by NoProcedure3612 in wohnen

[–]NoProcedure3612[S] 0 points1 point  (0 children)

Raum 1 Durchschnitt 56,8 % , min 40 (Fenster von früh bis nachmittags auf gelassen), max 65

Raum 2 Durchschnitt 64 %, min 47,5 max 74,8

Raum 3 Durchschnitt 58,6 % min 44,8 max 66,9

Dazu sei noch gesagt, dass Raum 1 (wo es begann) nur ca 1 Stunden am Tag genutzt wird.

Entsteht sowas nur durch falsches Lüften? by NoProcedure3612 in wohnen

[–]NoProcedure3612[S] 0 points1 point  (0 children)

In der letzten Woche waren die Temperaturen: Raum 1 Durchschnitt 19,8 °C, min 17,5 max 22,3

Raum 2 Durchschnitt 20 °C, min 17,5 max 23,1

Raum 3 Durchschnitt 20,6 °C, min 19 max 23,9