My school purchased 30 CoDrone Pro drones in 2018. They've worked perfectly in the past. Recently however, the drone motors won't spin, even when connected to the remote (as indicated by the multi-colored flashing light). At first, I thought it was a battery issue. So we purchased a new set of the recommended Robolink batteries and made sure they were all fully charged, yet the same problem persisted. Motors are free of all debris and obstructions and propellers spin freely when spun. Also it is not just one or a few drones. This is occurring with all of them. Any guidance would be very helpful. Thank you.
gregoryconely
@gregoryconely
Posts made by gregoryconely
-
Drone Connected to Remote but showing solid red light
-
RE: Updated Arduino Code to connect and pair drones?
@robolink_leila Thanks! I'll give it a try!
-
Updated Arduino Code to connect and pair drones?
Hello. Last year I used CoDrone Pro in my classroom, but I'm having trouble uploading the Arduino code, as I haven't tried it since then. I've updated my software, as needed. Can someone drop off the new program. Here are the two I used last year:
/*****************************************************************
Control - Analog Joystick Control
This is a basic remote control program for the drone in flight mode
*******************************************************************/
#include <CoDrone.h> // The codrone library that holds all the background files for thisvoid setup()
{
CoDrone.begin(115200); // sets up the connection to the drone using the bluetooth module at 115200bps (bits per second)CoDrone.AutoConnect(NearbyDrone); // finds and connects to a drone that is nearby
CoDrone.DroneModeChange(Flight); // Changes the drone so that it is now in flight mode
}void loop()
{
byte bt1 = digitalRead(11); // reads the far left button and saves it to btn1
byte bt4 = digitalRead(14); // reads the middle button and saves it to btn4
byte bt8 = digitalRead(18); // reads the far right button and saves it to btn8// Stop when the left butotn is pressed, but none of the others are
if (bt1 && !bt4 && !bt8)
{
CoDrone.FlightEvent(Stop); // This command stops the drone (it turns off the motors)
}// try to land when the right button is pressed and no others are
if (!bt1 && !bt4 && bt8)
{
CoDrone.FlightEvent(Landing); // Tells the drone to land (slowly lowers until it hits the ground and then turns off)
}// PAIRING is set to true in AutoConnect if they connect together
if (PAIRING == true) // Check to see that we are paired before trying to fly
{
// reads the joystick (analogRead(A#)) and then converts it into a value that the drone can use (AnalogScaleChange())
// if any of the joysticks move backwards compared to the drone (up is down or left is right), add -1 * at the start
// it will change the direction the drone moves when you move the joystick
YAW = -1 * CoDrone.AnalogScaleChange(analogRead(A3)); // YAW (turn left or right), port A3, reversed
THROTTLE = CoDrone.AnalogScaleChange(analogRead(A4)); // THROTTLE (height), port A4, not reversed
ROLL = -1 * CoDrone.AnalogScaleChange(analogRead(A5)); // ROLL (tilt left or right), port A5, reversed
PITCH = CoDrone.AnalogScaleChange(analogRead(A6)); // PITCH (tilt front or back), port A6, not reversedCoDrone.Control(SEND_INTERVAL); // sends the values to the codrone, it will make sure that SEND_INTERVAL (~50ms) time has passed before it sends again
}
}...AND THIS ONE, AS WELL...
/*****************************************************************
Control - Analog Joystick Control
This is a basic remote control program for the drone in flight mode
*******************************************************************/
#include <CoDrone.h> // The codrone library that holds all the background files for thisvoid setup()
{
CoDrone.begin(115200); // sets up the connection to the drone using the bluetooth module at 115200bps (bits per second)CoDrone.AutoConnect(ConnectedDrone); // pairs with a drone it has established a connection with previously
CoDrone.DroneModeChange(Flight); // Changes the drone so that it is now in flight mode
}void loop()
{
byte bt1 = digitalRead(11); // reads the far left button and saves it to btn1
byte bt4 = digitalRead(14); // reads the middle button and saves it to btn4
byte bt8 = digitalRead(18); // reads the far right button and saves it to btn8// Stop when the left butotn is pressed, but none of the others are
if (bt1 && !bt4 && !bt8)
{
CoDrone.FlightEvent(Stop); // This command stops the drone (it turns off the motors)
}// try to land when the right button is pressed and no others are
if (!bt1 && !bt4 && bt8)
{
CoDrone.FlightEvent(Landing); // Tells the drone to land (slowly lowers until it hits the ground and then turns off)
}// PAIRING is set to true in AutoConnect if they connect together
if (PAIRING == true) // Check to see that we are paired before trying to fly
{
// reads the joystick (analogRead(A#)) and then converts it into a value that the drone can use (AnalogScaleChange())
// if any of the joysticks move backwards compared to the drone (up is down or left is right), add -1 * at the start
// it will change the direction the drone moves when you move the joystick
YAW = -1 * CoDrone.AnalogScaleChange(analogRead(A3)); // YAW (turn left or right), port A3, reversed
THROTTLE = CoDrone.AnalogScaleChange(analogRead(A4)); // THROTTLE (height), port A4, not reversed
ROLL = -1 * CoDrone.AnalogScaleChange(analogRead(A5)); // ROLL (tilt left or right), port A5, reversed
PITCH = CoDrone.AnalogScaleChange(analogRead(A6)); // PITCH (tilt front or back), port A6, not reversedCoDrone.Control(SEND_INTERVAL); // sends the values to the codrone, it will make sure that SEND_INTERVAL (~50ms) time has passed before it sends again
}
}...Any guidance would be great. Thanks!
-
Rokit Smart Electric Motor Malfunction
Hello. My academy purchased 10 of the Rokit Smart Packages, and one of them seems to have an electric motor that spins(moves) internally, yet doesn't have enough power to turn the gear to operate the robot and the other motor from that same package doesn't appear to move (work) at all. Curious to know if this is a malfunction.
-
Investigations in Class
Hello,
I'm wanting to have my students perform investigations with CoDrones in class where they need to continuously adjust, upload, and run code in class. The goal will be for students to have the drones fly autonomously - they will have the drone take off, fly to a certain area, and land. This requires a constant adjustment of the programs' Throttle, Yaw, Pitch, and Roll. As I've tried this before with a class of about 25, the trouble occurs when uploading code because remotes and drones seem to have problems reconnecting when there are SO MANY students trying to adjust the code by uploading and running programs AT THE SAME TIME. Is there a way students can adjust, upload, and run autonomous flight programs ALL AT THE SAME TIME with little to no connection issues? Thanks.
-
Uploading Arduino Sketches to a Remote in a Class of 25
Hello. My questions are about pairing drones once I have their unique address. We've gone through each drone of a class set and used the "Find Address" and "Pairing with a Unique Address" sketches to pair every drone individually with a certain remote - whew!!!
Problem is, I have 3 class periods of 25 students each. And they have to remove their remote batteries for the next class, disconnect the USB cables, and a new connection has to be reestablished with the student (laptop) computers in the period after. In either case, it seems the drones and remotes don't stay paired. So, I'm wondering:
(1) Is there any way possible to keep each drone paired with a certain remote after disconnecting the USB cable, changing the batteries, or connecting the remote to another computer (laptop) that still has all the necessary Arduino Software Installations?
(2) My students are also having trouble connecting to different COM's (i.e, COM3, COM4, etc...) when trying to upload code, which appears to be preventing their sketches from uploading successfully. We did successfully pair each drone with a certain remote individually, beforehand, per the recommendation of others. But, again, we had to eventually disrupt the USB connection from our (teacher) computers and have students establish a different USB connection with the remote on their computers.
The only way different COM's became available was to have each student, individually, upload a code for pairing, while all other students had their sketches closed, remote power off, and drone battery disengaged. At best, however, this process took about 2 min. per person; and I only have an hour long period with 25 students.
Please don't get me wrong. I'm not complaining so much as trying to create an environment where all of my students can write, create, and upload code at the same time...And for the life of me, I haven't figured out how to do this yet!
You all are always very helpful , though, and provide me with insight and info that I haven't yet considered. So, I'd appreciate some more of it! Thank you, again, for your time and patience.
-
RE: Switching to Manual Remote
Brilliant link!!! Answered all my questions in an easy-to-understand, quick, and informative tutorial. Thank you!!!
-
RE: Pairing CoDrone Pro remote and drone
Much appreciated! I was thinking that the Bluetooth module had to be blinking red in order for it to be in upload mode properly. So I'd take out the battery (of the drone) and disrupt the connection - I know, silly!!!! But now I realize that once the remote has established a connection with a certain drone, the blinking yellow light on the bluetooth module appears to mean that an upload is taking place while it is still connected to that particular drone. Thanks, again!
-
Switching to Manual Remote
Hi,
I've uploaded code successfully from my computer to the remote, and the drone performed the task exactly the way I wanted it to go. I'm now trying to operate the drone manually again, but the drone is not responding, even though it still seems to be paired to the remote. Is there an additional task I need to perform that will allow me to operate the drone manually with the remote once again? (i.e., resetting something?)
-
Pairing CoDrone Pro remote and drone
Hello,
I'm a teacher and my class has a full set of CoDrone Pro drones for each of my 25 students. I'd like them to all be able to fly their drones at the same time for some scientific investigations we want to perform in class. Trouble is, when we try to pair each individual remote (that they've already built) with a specific drone; either they connect with a drone that's not theirs or once they are paired to the correct drone, it seems I have to unpair that connection to successfully upload code. My goal is to pair each remote with only one drone, and I've tried to do this by uploading code that includes the drone address. Perhaps, my Arduino Sketch is written incorrectly. Any guidance would be phenomenal! Thank you.