[SOLVED] Incomprehensible serial monitor outputs after running this code.
hello! professor , doing research requires make inexpensive multi-channel analyzer. component of mca arduino uno, want turn adc. uno, however, slow turned instructable sketch that's supposed increase frequency @ uno reads analog signals. however, when we
try run code (with minor changes) serial monitor outputs data makes no
sense. original code can found http://www.instructables.com/id/girino-fast-arduino-oscilloscope/, , titled girino.7z. here changes made;
* when download girino code , turn on debugging (by setting debug=1 in girino.h), expected output:
* if add single print statement in setup() function, print statement repeatedly executed (strange) , output garbled.
........
here our output;
so can see setup printed repeatedly should happen once.
any appreciated.
here system & software specs:
macbook pro, 12-inch, 2011
processor 2.3 ghz intel core i5
memory 4 gb 1333 mhz ddr3
graphics intel hd graphics 3000 384 mb
we using arduino uno smd edition, software version 1.0.5
software os x 10.9.3 (13d65)
thanks!
try run code (with minor changes) serial monitor outputs data makes no
sense. original code can found http://www.instructables.com/id/girino-fast-arduino-oscilloscope/, , titled girino.7z. here changes made;
* when download girino code , turn on debugging (by setting debug=1 in girino.h), expected output:
code: [select]
# setup()
girino ready
# adccounter: 0
# stopindex: 65535
# wait: 0
# freeze: 0
101111
0
# adccounter: 0
# stopindex: 65535
# wait: 0
# freeze: 0
101111
0
// repeats
* if add single print statement in setup() function, print statement repeatedly executed (strange) , output garbled.
code: [select]
void setup ()
{
.....
serial.println("girino ready");
serial.println(" x1 we're outside loop!! xd"); //this line added.
//printstatus();
}
........
here our output;
code: [select]
girino ready
x# setup()
girino# setup()
girino : etup(# setup()
girino read# setup()
girino# setup()
...
girino #######....//pounds forever.
so can see setup printed repeatedly should happen once.
any appreciated.
here system & software specs:
macbook pro, 12-inch, 2011
processor 2.3 ghz intel core i5
memory 4 gb 1333 mhz ddr3
graphics intel hd graphics 3000 384 mb
we using arduino uno smd edition, software version 1.0.5
software os x 10.9.3 (13d65)
thanks!
what baud rate in code , serial monitor?
Arduino Forum > Using Arduino > Programming Questions > [SOLVED] Incomprehensible serial monitor outputs after running this code.
arduino
Comments
Post a Comment