logic-analyzer icon indicating copy to clipboard operation
logic-analyzer copied to clipboard

Arduino not sending data ?

Open ghost opened this issue 6 years ago • 6 comments

Hi !

I've been trying to run the project on W7 with an arduino UNO (r3) without success.

I've setup LA_port to COM3 (port used by arduino IDE), baudrate is the same in the .pde and .ino. The ino file was pushed to the arduino UNO without error (except a warning about F_CPU being redefined). I then opened the pde sketch from processing with no errors. The L led on the arduino went off, flashed and then went back on. As no data were printed (not even a timestamp or a horizontal line), I cliked on 'start' but nothing happened except the 'new data coming' line being printed and the RX led of the arduino flashing once. The TX led on the arduino is always off.

So processing is able to send commands to the arduino but the arduino doesn't seems to send any data. So far I've tried rebooting, pushing again the ino file, with various baudrate (also changed in processing), on two usb ports. I've also tested the arduino itself and had no problem to print the reading from a pin on serial port COM3 in the serial monitor.

Any ideas ? Thanks for your help !

ghost avatar Jan 11 '19 14:01 ghost

Hi!

Mmm strange, i guess you know that the data are sent only when the buffer is full. You can try to reduce the size on the arduino sketch

Also if this line https://github.com/aster94/logic-analyzer/blob/master/Computer_Interface/processing.pde#L348 doesn t output nothing it means that Processing doesn t receive nothing

aster94 avatar Jan 11 '19 14:01 aster94

Same issue here. Arduino sends no data.

rqhub avatar Feb 03 '19 07:02 rqhub

@rqhub have you reduce the sample size to, for example, 5? Then try to use a jumper from ground to manually change the state of the sensing pins a few times

aster94 avatar Feb 03 '19 09:02 aster94

Hi, i have the same issue...

event: 0
initial: 0
samples: 0
null
null
event: 0
initial: 0
samples: 0
null
null
new data coming
new data coming
new data coming
new data coming

This is what i get in the processing console - I don't see anything in the window though. Tested with Arduino Mega and Uno.

Did anyone get it to work?

FelixWeichselgartner avatar Nov 23 '20 14:11 FelixWeichselgartner

@rqhub @linac314 if you need a quick&dirty solution you can try this: https://github.com/FelixWeichselgartner/Arduino_Logic_Analyzer though its obviously not that comfortable

FelixWeichselgartner avatar Nov 23 '20 18:11 FelixWeichselgartner

I can confirm that the arduino does not send anything at all over the com port from the ino provided

unmanagedtn avatar Jul 30 '22 18:07 unmanagedtn