running SR04 on an UNO. After 40-45mins, gets stuck...
first off, complete n00b arduino. making little sensor detect when in front of it. have briefly flashing set first limit , second limit. uno runs , should, after half our, it'll stuck in kinda weird mood won't react more , led pin flashing. i've tried different sr04's different uno boards. new soldering job, everything. i've constructed 5-6 of these , crash/freeze/stuck @ same time(about).
really appreciate on this. please understand n00b, , coding dumb can get.
thank everybody! forum has been full of information! love it!
really appreciate on this. please understand n00b, , coding dumb can get.
thank everybody! forum has been full of information! love it!
you calling loop() inside itself. although not problematic itself, have take care recursion ends. in code there circumstances doesn't happen. if reach such status, arduino recurses loop() tree until stack overflows. resets in best case or freezes in worst case.
as far can see there absolutely no need call loop() recursively, remove loop() calls inside loop() routine.
as far can see there absolutely no need call loop() recursively, remove loop() calls inside loop() routine.
Arduino Forum > Using Arduino > Sensors > running SR04 on an UNO. After 40-45mins, gets stuck...
arduino
Comments
Post a Comment