Hi! I've been trying to assemble this WiFi radio project based on NodeMCU.
I have a problem with control panel connected to its ADC (A0) pin.
Sometimes the buttons work as intended, but sometimes they perform a wrong action or don't work at all. In a worst case the whole system freezes and stops responding after I press a "STOP" or "START" button.
What could be the reason?
I'm a new user (and Arduino newbie), so I'm not allowed to upload any attachments. Here's the control panel schematics on file sharing hosting: https://easyupload.io/kat2qn
Unfortunately the project's author recommended to flash NodeMCU using already compiled binaries from his Github, so I don't have its source code.
Can a switch bounce cause the NodeMCU to stop responding completely? I mean, it's not a big problem for me if sometimes it incorrectly recognises a command from the button push. It's when it competely hangs up and requires hard reset, that's what really troubles me.
switch bounce can produce unpredicitable problems
what is your power supply ?
wireless communication can use a lot of power dropping supply voltage
as you are using analogue input from control panel to read switch values this may cause problems
power supply problems can cause micros to crash or reset
My NodeMCU is powered by wire connecting its Vin to another module's (Arduino UNO) 5V pin, which in turn is powered by 9v black socket via 230v power adapter.
The same 5v line also supplies power to VS1053 audio module.
And there's also audio amplifier with a loud speaker powered by the same 9v line.