Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arduino Due not showing
#1
Hi,
I recently got the bpod system and I am trying to work with Arduino Due using the Arduino shield.
I have the Bpod v2.
I uploaded the BlinkModule code to the Arduino Due, but I don't see it as a module in the Bpod GUI.
Also when I try to Run the protocol with the code from the GUI it tells me that the spelling for the module is wrong.
I am using the native USB port in the Due to upload the code because for some reason when I upload it through the programming port it tells me that there is no device connected to the COM.
Would appriciate the help,
Ben
Reply
#2
Hi Ben,

After you upload the firmware, you need to click the 'refresh' button (circular arrows under 'config') on the Bpod console GUI to see any new modules that have been added. Which protocol are you trying to run, and what is the exact error message you're seeing?
It's fine to use the native port for firmware upload. The programming port should work too - but you'll need to select it separately in the 'boards' AND 'ports' menus in the Arduino IDE.

-Josh
Reply
#3
(09-08-2020, 03:28 PM)Josh Wrote: Hi Ben,

After you upload the firmware, you need to click the 'refresh' button (circular arrows under 'config') on the Bpod console GUI to see any new modules that have been added. Which protocol are you trying to run, and what is the exact error message you're seeing?
It's fine to use the native port for firmware upload. The programming port should work too - but you'll need to select it separately in the 'boards' AND 'ports' menus in the Arduino IDE.

-Josh



Hi Josh,
I am having the same issue. I am also using the Blink Module code for testing. I was able to successfully upload the sketch (Firmware -> Bpod Shield -> Blink Module) to an Arduino DUE, but the BlinkModule does not show up on the Bpod GUI. Thus, when I run the example protocol here, Matlab prints out an error as the following. If I change the 'BlinkModule1', there is no error but also no response/blink on the Arduino side. 

Quote:Error using AddState (line 253)
Check spelling of your output actions for state: TriggerBlink.

Error in Scissor_Arm (line 16)
sma = AddState(sma, 'Name', 'TriggerBlink',...

Error in run (line 91)
evalin('caller', strcat(script, ';'));

Error in NewLaunchManager>LaunchProtocol (line 707)
run(ProtocolPath);
 
Error while evaluating DestroyedObject Callback.

I have tried refreshing the GUI after uploading, but the Module connected to the Bpod Shield still shows up as Serial N.

I am wondering if I missed some critical steps between uploading the sketch and running the protocol. 

Also tried to setup the Configure Module USB port on the Bpod GUI. It does not make a difference. 

Do you know what might have gone wrong with the process? Please let me know if more information would help.Thanks! 

Best,
Miao
Reply
#4
(09-09-2020, 02:39 AM)Meowater Wrote:
(09-08-2020, 03:28 PM)Hi Josh,I am having the same issue. I am also using the Blink Module code for testing. I was able to successfully upload the sketch (Firmware -> Bpod Shield -> Blink Module) to an Arduino DUE, but the BlinkModule does not show up on the Bpod GUI. Thus, when I run the example protocol here, Matlab prints out an error as the following. If I change the \BlinkModule1 Wrote:
Quote:Error using AddState (line 253)
Check spelling of your output actions for state: TriggerBlink.

Error in Scissor_Arm (line 16)
sma = AddState(sma, 'Name', 'TriggerBlink',...

Error in run (line 91)
evalin('caller', strcat(script, ';'));

Error in NewLaunchManager>LaunchProtocol (line 707)
run(ProtocolPath);
 
Error while evaluating DestroyedObject Callback.

I have tried refreshing the GUI after uploading, but the Module connected to the Bpod Shield still shows up as Serial N.

I am wondering if I missed some critical steps between uploading the sketch and running the protocol. 

Also tried to setup the Configure Module USB port on the Bpod GUI. It does not make a difference. 

Do you know what might have gone wrong with the process? Please let me know if more information would help.Thanks! 

Best,
Miao 




Hi Ben,

After you upload the firmware, you need to click the 'refresh' button (circular arrows under 'config') on the Bpod console GUI to see any new modules that have been added. Which protocol are you trying to run, and what is the exact error message you're seeing?
It's fine to use the native port for firmware upload. The programming port should work too - but you'll need to select it separately in the 'boards' AND 'ports' menus in the Arduino IDE.

-Josh
Reply
#5
Hi,
I uploaded the blink Module to the Arduino (2 different Arduino Due), Restarted the computer, restarted the Bpod, Refreshed the Bpod.
I used a cat5 wire that worked for me with other modules. 
I tried running the Blink module protocol and got an error that the spelling for the module is wrong.
Thanks,
Ben
Reply
#6
Hi Ben and Miao,

Sorry I didn't catch this earlier - 
With Arduino Due, the Serial1 interface is on pins 18+19. For Leonardo, M0 and Zero, Serial1 is on pins 0+1.
The Bpod Arduino Shield translates the serial interface on pins 0 and 1. For Arduino Due, this is Serial (not Serial1).
To adapt the BlinkModule sketch for the Due, make the following changes to switch Serial1 to Serial:

Line 9: ArCOM Serial1COM(Serial);

Line 16: Serial.begin(1312500);
Please let me know if this works for you!
-Josh
Reply
#7
(09-10-2020, 02:21 AM)Josh Wrote: Hi Ben and Miao,

Sorry I didn't catch this earlier - 
With Arduino Due, the Serial1 interface is on pins 18+19. For Leonardo, M0 and Zero, Serial1 is on pins 0+1.
The Bpod Arduino Shield translates the serial interface on pins 0 and 1. For Arduino Due, this is Serial (not Serial1).
To adapt the BlinkModule sketch for the Due, make the following changes to switch Serial1 to Serial:

Line 9: ArCOM Serial1COM(Serial);

Line 16: Serial.begin(1312500);
Please let me know if this works for you!
-Josh

Hi Josh,

Thanks a lot for the prompt response. That solved the problem for me! 


Best,
Miao
Reply
#8
Thanks for the replay,
I still can't see the Blink Module on the Bpod GUI or run the Blink module protocol
Ben
Reply
#9
Hi Ben,

Could you please send your Arduino sketch and protocol file to support@sanworks.io?
I'll try to replicate the issue here.

Thanks!
-Josh
Reply


Forum Jump: