I am working on a project that involves reading data from a pressure transducer and uploading that data to a server. My code successfully uploads to the nodemcu, and the serial monitor outputs as it should when not connected to the board. Once I put the nodemcu into the board and power it, the nodemcu’s light blinks once and then does not blink anymore. When running the serial monitor without the nodemcu connected to the circuit board, it blinks multiple times. It seems to me the code on the nodemcu is not running and I do not know why.
This thing has been shown to properly run before, albeit with a different nodemcu board. The old nodemcu kept giving me upload errors, so I bought a new one that is identical to the old chip and was able to successfully upload code to it.
Every once in a blue moon, the code DOES run on it seemingly without any cause. I cannot replicate this with any consistency.
I verified that there are no loose connections in the circuit board and to the pins of the nodemcu. I feel like I am missing something simple that is causing the code not to run, like power cycling or flashing or something? I am fairly new to this, so any ideas would be greatly appreciated.
Attached is my code and schematics for the circuit board.
pcb_board_nodemcu_final_v2.pdf (29 KB)
original.ino (20.3 KB)