Arduino Main port
« on: October 24, 2016, 05:04:36 pm »
Hello
I have a problem.
I have a 250 quadrocopter with a CC3d unit.
I want to connect my Arduino due with the CC3d.
The Arduino controls a few Ultrasonic sensors.
I get some stats with this code: https://github.com/cdaller/Arduino-Openpilot-UAVTalk.
There you get stats from the CC3d but can you also send the CC3d commands(fly forward,left,right)?
Sorry for my bad english.
Thank you for your answers.

hwh

  • *
  • 1018
Re: Arduino Main port
« Reply #1 on: October 24, 2016, 05:19:47 pm »
You can replace your current receiver with control through the arduino.  Send GCSReceiver packets and set the input tab to GCS instead of whatever your current receiver uses.  If you do this the Arduino will have full control and you'll have to connect your receiver to the Arduino and send it's commands on to the cc3d to have it respond to your transmitter.

https://forum.librepilot.org/index.php?topic=1973.msg16012#msg16012

« Last Edit: October 24, 2016, 05:30:31 pm by hwh »

Re: Arduino Main port
« Reply #2 on: October 24, 2016, 07:39:36 pm »
Thank you for your fast answer.
I will try it.

Re: Arduino Main port
« Reply #3 on: November 07, 2016, 07:34:17 am »
I found out the hard way that the standard cheap HC-SR04 and similar sensors don't work when your motors are running.  You need the expensive maxbotix brand sensor.

Re: Arduino Main port
« Reply #4 on: November 12, 2016, 09:46:36 am »
You can replace your current receiver with control through the arduino.  Send GCSReceiver packets and set the input tab to GCS instead of whatever your current receiver uses.  If you do this the Arduino will have full control and you'll have to connect your receiver to the Arduino and send it's commands on to the cc3d to have it respond to your transmitter.

https://forum.librepilot.org/index.php?topic=1973.msg16012#msg16012


Can i connect the Arduino to the main port and set it to telemetry ?
Or does it only works if i connect the Arduino with the usb port of the cc3d?

hwh

  • *
  • 1018
Re: Arduino Main port
« Reply #5 on: November 12, 2016, 06:12:34 pm »
Can i connect the Arduino to the main port and set it to telemetry ?
Or does it only works if i connect the Arduino with the usb port of the cc3d?
You should be able to connect it to either the main or flexi ports and set that port to telemetry.  USB would actually be harder since the Arduino would need to have a host port on it to use USB.

@marc

  • *
  • 152
  • Ask me about LibrePilot2Go on Android.