Spare analogue inputs on Orange Cube for external sensors?

Are there any spare analogue inputs on the Orange Cube which I can use to connect to external sensors ?

If so:

  • How many analogue inputs are available ?
  • What is the sample rate ?
  • How do I configure the Orange cube to read the input and have the data written in the log file on the SD card ?

Cube only has 1 ADC pin normally, but you could also use one of the BATT2 voltage or current pins if they were unused.
Normally you assign the analog pin to some function such as RSSI, RPM or sprayer liquid level.

https://ardupilot.org/copter/docs/common-analog-pins.html

1 Like

Thanks, there is no information on the sample rate though ?

In this case I need the analogue input to connect to a load cell.

Do I have to compile or build code ?

You could just use any of the available functions and know that it is really weight, possibly using existing scale variables. Or whip up something in a LUA script, log everything and send messages as you please.

Before considering any of this work, I need to know if the sample rate and resolution is suitable.

How can I find out what the sample rate and resolution (e.g. is the ADC 8-bit, 10-bit etc ) ?

If the sample rate is too slow or the resolution is too low, then there is no point in proceeding.

I tested the battery voltage input with a signal generator, using a sine wave with a voltage of 3.3Vpp and an offset of 1.65V.

I tested this with a Pixhawk 6C mini as I dont have an Orange Cube to hand. I set the voltage divider to 1 as shown in this screenshot…

The sample rate from the data is 0.1s (10Hz), however, there appears to be a 1Hz low pass filter.

Below are the results…

10Hz sinewave

5Hz sinewave

1Hz sinewave

0.5Hz sinewave