CoDrone Pro No Remote Control Sync, No Communication with Mac



  • @johnnycurry Yes, I talked to him about it. He's running summer camps now and had only an hour and a half break for lunch in between, so I've asked @robolink_whoseop to help take a look today.



  • @johnnycurry Sorry for catching up with this late. Looks like there's an error in the code.
    Try this code first, then open the serial monitor to grab your address. It will print out the drone address

    #include <CoDrone.h>
    
    void setup() {
      CoDrone.begin(115200);
      CoDrone.PrintDroneAddress();
    }
    
    

    Then you can run pair() with the drone address:

    #include<CoDrone.h>
    
    void setup(){
      CoDrone.begin(115200);
    
      byte droneAddress[6] = {0xEC, 0x3F, 0xE5, 0xC2, 0xB5, 0xD0};
      //This will be replaced with your CoDrone's unique address
      CoDrone.pair(droneAddress);
    }
    
    void loop() {
    }
    

    This will have your remote connect to a specific CoDrone's address. Give it a try, and let me know if it helps.



  • Attempted the first part of your message and received this error message:
    Arduino: 1.8.5 (Mac OS X), Board: "Rokit-SmartInventor-mega32_v2"

    Archiving built core (caching) in: /var/folders/7f/lyldq5pj3q39vrtlxmgt_sdm0000gp/T/arduino_cache_707864/core/core_rokit_avr_SmartInventor-mega32_v2_8372d02330c307e08216049b70f86e76.a
    core/core.a(main.cpp.o): In function main': /Users/Johnny/Library/Arduino15/packages/rokit/hardware/avr/1.0.3/cores/atmega32/main.cpp:14: undefined reference toloop'
    collect2: error: ld returned 1 exit status
    exit status 1
    Error compiling for board Rokit-SmartInventor-mega32_v2.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    0_1529678007380_Screen Shot 2018-06-22 at 8.31.37 AM.png



  • @johnnycurry

    #include <CoDrone.h>
    void setup() {
      CoDrone.begin(115200);
      CoDrone.pair(Nearest);
      CoDrone.PrintDroneAddress();
    }
    void loop(){
    }
    

    try this code



  • Making progress but not quite there. Error message after applying and attempting to upload your last code:
    Arduino: 1.8.5 (Mac OS X), Board: "Rokit-SmartInventor-mega32_v2"

    Sketch uses 10542 bytes (32%) of program storage space. Maximum is 32336 bytes.
    Global variables use 1141 bytes of dynamic memory.
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
    Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.



  • This may also be of some use - When attempting to update firmware I receive the following after trying both WiFi and USB connections:
    0_1529693381197_Screen Shot 2018-06-22 at 12.48.24 PM.png 0_1529693375410_Screen Shot 2018-06-22 at 12.48.15 PM.png



  • @johnnycurry
    It looks like you didn't make inventor board to upload mode.
    also If you didn't download usb driver before you need to download to use board

    -download USB driver
    https://basecamp.robolink.com/cwists/preview/576x

    -how to upload program
    https://basecamp.robolink.com/cwists/preview/625x

    this two link can help you also

    if you need more live support we can set up video call to help you
    when is your best time to do video call?
    whoseop@robolink.com is my email



  • @johnnycurry Just spoke to you during the support call, and glad we were able to resolve your issue. I e-mailed this to you, but I also wanted to share these here so other customers would be able to use the resources as well:

    https://basecamp.robolink.com/
    This is where our lessons are located for every product.

    CoDrone Arduino lessons
    Programming the CoDrone using Arduino text-based coding

    CoDrone Snap lessons
    Programming the CoDrone using Snap, which is a great way to expose children to block coding

    Calibrating the CoDrone
    This is how you can re-calibrate the CoDrone, which we recommend doing any time the drone seems to be drifting a lot. It helps to set the drone's trim back to 0, and generally helps to make it hover with more stability.

    Educator Guide
    This goes over safety, maintenance, storage, classroom management, etc. This guide is geared specifically for classroom settings.

    Lesson Plans
    Here are a bunch of full lesson plans following the 5E format, which programming the CoDrone with block coding.

    Forum
    You can post here for technical support, sharing ideas, and connecting with other users and educators.

    Documentation
    This is for more advanced users, who want to dig into the function definitions of the CoDrone library. We're still updating our tutorials to use these newer advanced functions, but you can certainly experiment with these.

    Storage Cases that we use
    We use HDX Home Depot tool boxes. You can also use other tool boxes and tackle boxes from fishing.



  • Thank you Whoseop and Wes! I appreciate your time and patience. I'm certain the students in our GenCyber kids camp will love the drones. Thanks again.


  • administrators

    @johnnycurry Hello it appears that the remote may not have been in upload mode. Please check out this video it goes over how to upload a program to the remote. There are some key steps that need to be followed exactly in order for the remote to be in upload mode.

    • The timeout error usually indicates the remote is not in upload mode. (Blinking blue led on the right side & BLE module not flashing red)

    • The other possible error is selecting the computers internal Bluetooth port and not the /dev/cu..SLAB_USBtoUART

    Please let me know if you have any other questions.


Log in to reply
 

Looks like your connection to Robolink community was lost, please wait while we try to reconnect.