Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

New answers tagged

0

You should not use a "naked" L7805CV. That voltage regulator requires a couple of capacitors in order to build a functioning voltage regulator out of it. You should be able to find instructions online for how to build one. Search on "L7805CV circuit" and you should find quite a few sample circuits. That said, 9V is a good unregulated voltage to provide to ...


0

This is likely a case where the original code needs to be inspected to understand the purpose of the infinite loop. In the original code we see this: if (!MDNS.begin("esp8266")) { Serial.println("Error setting up MDNS responder!"); while (1) { delay(1000); } } Serial.println("mDNS responder started"); Here, it can be inferred the ...


0

The "Arduino" part of your schematic looks OK. 9 VDC to VIN on the Uno is OK. Connecting the MOSFET directly to the Arduino is OK. Personally, I would connect a 1000 ohm resistor in series between the Arduino pin and the gate of the MOSFET. If you like to live dangerously like I do, and change wiring connections with power supplied to your Arduino, then a ...


0

In general your circuit is fine, but the parts are pretty overpowered. If there is a reasonable voltage drop at the IRF540N you better choose a mosfet with a lower gate-source threshold voltage, if it works I'd say it's fine.


1

In the first case, the first time, that the outer if statement becomes true, the code will go into the while(1) loop and will be stuck there forever. The second code is different, since the while loop will check at each start of it's iteration, if the condition is still met. If not, it will exit, so not necessarily an infinite loop. Going into an infinite ...


0

The fully working sketch const byte button=2; const byte LED=10; bool blinking =false; unsigned long blinkInterval=250; unsigned long currentMillis; unsigned long previousMillis; void setup() { pinMode(button,INPUT); pinMode(LED,OUTPUT); } void ...


Top 50 recent answers are included