Ganglion EMG to Arduino UNO

steelbuns342steelbuns342 United States
Hello! 

For a project I am attempting to collect EMG data through the ganglion, send it to my laptop using the bluetooth dongle (I have a Dell), then to send that data out through the use of the networking widget to my ardunio UNO to perform a task, in this case, to control a motor. The problem is, the arduino is not picking up the serial data I am sending out through the networking widget. The widget says it is sending the data through COM 4 (the only available on my computer) and when I connect my Ardunio through USB, it states that it is connect through COM 4 as well. Is there something wrong with my workflow, or is there an intermediate step that I am missing between the sending of the data and the recieving of it through the arduino. I posted a picture of the code I am testing with, which should tell me what bytes it is receiving in the monitor, however, when I run the ganglion and GUI and the UNO and its code at the same time, I get no data being input from the ganglion. I know the code works because when I type directly into the monitor, it outputs the bytes for whatever I typed. image

Thank you!!

Comments

  • wjcroftwjcroft Mount Shasta, CA
    Steel, hi.

    Are you sure the baud rates are matching? One way to check would be to use ANOTHER usb serial port cable, with a 'null' modem in between (connects TX to RX and vice versa.) This 2nd port could then be monitored with a terminal emulator. This could be done on the same computer or use a 2nd computer.

    Also try sending different data types or network streams with the Networking Widget and see if that works. It's possible there could be a glitch with the "send EMG data" output from the Networking widget.

    William

  • steelbuns342steelbuns342 United States
    Hello, 

    Thank you for the response! I have checked on both ends and the baud rate is set to 57600 on both the GUI and the IDE, however, I have not tried the terminal emulator method. I have also tested all the different data types and still nothing shows up on the serial monitor. Are there any other possible reasons why it is not working? 
  • wjcroftwjcroft Mount Shasta, CA
    Another possibility is that the serial output was somehow broken in the transition to newer GUI releases. You might go back on the releases tab and experiment.

    I still suggest using the Networking widget to stream out in say LSL or other stream format, and see if that works.
  • steelbuns342steelbuns342 United States
    I will try both of these and post again if I have any more problems, thank you!
Sign In or Register to comment.