Jump to content

Build your own telemetry sensors.


Recommended Posts

You have the Cells voltage showing the total of all cells.

To see individual ones you need to add calculated sensors.

So

Add a new sensor

Type: Calculated

Formula: Cell

 

Then chose which cell or just lowest, highest or delta.

 

Note: Cells will only show up when a battery balance connector is connected.

Edited By Chris Bott - Moderator on 26/05/2019 11:31:09

Link to comment
Share on other sites

I may be able to help here.

If you go to the Telemetry screen on your Taranis transmitter and copy "Cels" (in this case) three times, then edit the first line as per the second photo. Then edit the second line as per the third photo, you will have the individual cell votages, and obviously the third line the same but inserting 3 . This will work for any number of cells in a pack (only four with Chris's telemetry module), just keep copying for the number of cells line.

You next need to edit the display page on your Taranis. Then when you long press page on your Taranis transmitter you can display your telemetry data as per the fourth photo, as you can see this is an old pack where the cells are slightly out of balance even though I use a balance charge every time.

Hope this is of help.

Andy

Photo 1

img_2275_01.jpg

Photo 2

img_2273_01.jpg

Photo 3

img_2274_01.jpg

img_2279_01.jpg

Link to comment
Share on other sites

Thank you all for the help ,especially Andy in this instance. I can now see all the cells and the total. My current sensor arrived yesterday so I will add it. I think for the air speed sensor it may be as cheap to buy the Frsky modulle,even if that seems like cheating!

Link to comment
Share on other sites

  • 2 weeks later...

Quick update. We're now up to 78 PCBs that have been requested. That number has astonished me, so many thanks for all the interest.

Hopefully the reduction in questions here means that those that have built some sensors are doing OK?

I think that demand for the boards is possibly over but a new batch has turned up today. These incorporate all the changes that have been suggested (along with a correction to the resistor numbering on the last batch - compare the pic below with the previous one - doh!)

These have come to me in 4s just to save me taping them together for postage. They snap apart easily so I can still send any required number.

I'll build one up over the next day or two just to make sure everything is OK.

Chris

img_20190605_105652.jpg

Link to comment
Share on other sites

Here is my latest sensor with a MPXV7002 airspeed sensor using A0 and A1 with a voltage divider on the ADS1115. The ADS1115 connects to the same pins (A4, A5, VCC and GND) as the GY-63. I also have a Hobbywing RPM sensor which measures the pulses from any two of the output wires from the brushless ESC. The RPM sensor connects to PIN8 on the Arduino and takes it’s VCC and GND from the second SPORT connector. I am also using PPM via the SPORT protocol to reset the Airspeed and to change between different vertical speeds calculations using compensation from the Air Speed sensor controlled via LUA scripts.

Next I think I will try and create a 6S version with additional 100nf capacitors to ground try and stabilise the cell voltages. I will also use the ADS1115 to do the Current Sensing using an external HGLRC XT60 connector. But I need to get to grips more with Eagle PCB design software first.

Chris did you use Eagle to design your PCBs?

wp_20190614_00_32_51_pro.jpg

Link to comment
Share on other sites

Wow Paul you've really picked the ball up and run with it there.

Nice job. H

have you gone about calibrating RPM? I.e what sort of numbers have you put where? (OpenXSensor and the Tx).

How do you fancy picking up temperature sensing? That's something I'd be keen to follow.

I'll PM about PCB design as that's a whole new subject.

Cheers

Chris.

Link to comment
Share on other sites

Hi Chris, I haven’t calibrated the RPM sensor yet I have just connected it to a test rig and checked the numbers go up and down as the motor speeds up, I will be mounting the senor to a model very soon and then using my handheld optical RPM sensor to find the correct scaling factor as it depends on the number of poles in the motor.

In the config_basic I just have “#define CALCULATE_RPM YES” As you need this for it to send the telemetry from what I understand the rest is setup by using a calculated sensor in OpenTX but I will let you know.

I thought a about temperature but it seems to only support the analogue pins on the Arduino and not on the ADS1115 so I have no pins free however I guess that if I don’t have a Baro or ADS1115 I could use pins 4 and 5 or have two oXs sensors.

Link to comment
Share on other sites

  • 4 weeks later...

Hello Chris.

I have been following this series with interest since the article in the magazine.

Its still a bit of a mystery to me, but I would like to purchase a few of your project boards and have a go.

I understand that you can supply them for £2 + £1 p&p and paypal is accepted.

I would wish to bye three please.

Mike Hadaway

Link to comment
Share on other sites

  • 3 weeks later...

Hi Chris

When compiling the sketch I get an error regarding <Arduino.h>. The error report is.

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (3.3V, 8 MHz)"

In file included from C:\Users\oxfor\AppData\Local\Temp\arduino_modified_sketch_368203\sketch_may30a.ino:369:0:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:153:16: error: conflicting declaration of 'void setup()' with 'C' linkage

void setup(void);

^

C:\Users\oxfor\AppData\Local\Temp\arduino_modified_sketch_368203\sketch_may30a.ino:1:6: note: previous declaration with 'C++' linkage

void setup() {

^

In file included from C:\Users\oxfor\AppData\Local\Temp\arduino_modified_sketch_368203\sketch_may30a.ino:369:0:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:154:15: error: conflicting declaration of 'void loop()' with 'C' linkage

void loop(void);

^

C:\Users\oxfor\AppData\Local\Temp\arduino_modified_sketch_368203\sketch_may30a.ino:133:6: note: previous declaration with 'C++' linkage

void loop() {

^

exit status 1
Error compiling for board Arduino Pro or Pro Mini.

Link to comment
Share on other sites

Hi Michael

Wow there's a question.
As reported, I'm no expert at all, this has been my own voyage of discovery.

Hopefully someone with some real knowledge might come along.

In the meantime my guess would be that the sketch has somehow become corrupted.
What happens if you try to compile the original sketch as downloaded, before you try any changes?

Chris

Link to comment
Share on other sites

Hello

Mike Blandfird may have a good point. I have downloaded the IDE ( Arduino 1.8.9 ) from Windows store 1.2.21.0.

Is this OK?

I note, Chris, that you say to compile the original sketch. I have been unable to find the sketch to download.

From your post 14/4/19 were the link "here" is given, I left click on openxsensor and find a lot of files.

I downloaded oXs_config_basic_h and oXs_ config_advanced_h as advised in the magazine article.

Then pasted into a new sketch file. Even before changes unable to compile.

Hopefully it will be clear to you were I am going wrong. Incidentally the sketch for the servo tester compiles OK

and the unit works as expected.

Mike Hadaway

Link to comment
Share on other sites

Hi Mike

I think we can fix this fairly easily. Im at work just now so can't spend much time.

I downloaded the IDE from Arduino website here it's currently showing version 1.8.9. If you have used the servo tester sucessfully then your IDE is probably OK.

The openxsensor sketch comprises many files. it sounds like you don't have them all.

We'll have to work out the best way to point you to them. Or I might be able to email the whole thing in a zip file later.

Chris

Link to comment
Share on other sites

Thank you so much Chris. The zip file downloaded perfectly and compiles without errors.

I do get a warning that the global variables use 92% of dynamic memory and stability problems may occur.

However I presume that once I have edited the sketch for the sensors I am using, ie just current and voltage at first,

that the memory issue will be resolved.

Thanks again for you help and I hope that my experience may help others who may be having problems.

Cheers

Mike

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 weeks later...

Just a little bit of feedback. Between everyone that's contacted me, I've now sent out 102 PCBs. I've had a daft lingering hope that we'd crack the 100 barrier and now we have.

So - many many thanks for all the support and interest, it makes it feel very worthwhile.

Are there any more success stories?
Or have most people had a go and given up?

Chris

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...