XR8 rx telemetary sensors

General Help and support for the Taranis Radio.
Post Reply
CertaCito
Posts: 44
Joined: Mon Sep 30, 2013 6:24 pm
Country: -

XR8 rx telemetary sensors

Post by CertaCito » Sat Oct 05, 2013 8:37 am

I don't have much room in my plane now I have eagletree guardian fitted, the last thing I'm really after is a telematry lipo power pack low voltage warning (3s).

Am I right in thinking that the frsky FBVS-01 will do what I'm after and it will plug into the xr8 and give the telemetry I'm after?

Barry

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Sat Oct 05, 2013 9:11 am

Unfortunately no. The X8R receiver does not have any analog inputs for the FBVS-01 to connect to.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

CertaCito
Posts: 44
Joined: Mon Sep 30, 2013 6:24 pm
Country: -

Re: XR8 rx telemetary sensors

Post by CertaCito » Sat Oct 05, 2013 9:18 am

Ahh right, so I would need the flvs-02 and either the hub or the FAS 40/100 sensors I guess? I'll have a look to see if I can squeeeeeeze them in!
Thanks anyway.....
Barry

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Sat Oct 05, 2013 12:02 pm

FrSky are being a bit slow here. The X8R Rx uses the SPort for telemetry data. At present, the only FrSky SPort sensor available is the Vario.
Fortunately, this does act as a bridge between the hub protocol and the SPort protocol, and you can connect the FAS40/100 sensors directly to it.
You cannot connect a hub directly to the X8R.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

tigar
Posts: 162
Joined: Wed Dec 28, 2011 5:31 am
Country: -

Re: XR8 rx telemetary sensors

Post by tigar » Sat Oct 05, 2013 8:05 pm

Any mod to the x8 Rx to get the A1 available for external voltage? ( disconnect from the Vin of the receiver)


User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Sat Oct 05, 2013 8:12 pm

Not really (yet). I did have a look, but haven't had enough time to progress it. Have a look at this thread:
http://openrcforums.com/forum/viewtopic ... +A1#p59640.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Wed Oct 09, 2013 7:37 pm

I've been doing some work on this problem. Basically, I've looked at the openXsensor and put together some code to run on an Arduino (Pro Mini/Mini lite).

I have a test version running, just sending a fixed value for A2, but it works, and I see the value on the transmitter. I'm actually sending the "application ID" for A2, that would normally only be generated by the XJT when used with a 'D' series receiver.

I'll sort the actual analog reading code and get it fully working before I publish it.

I think all that will be needed is a Pro Mini, a 68 ohm resistor (on the SPort signal) a servo cable with a socket for the SPort connection and a servo cable with a plug to look like the A2 connection of a 'D' series Rx. Clearly, the two cables could be obtained by cutting a servo extension cable into two.

I've also made sure the SPort serial is working properly, switching the pin round between Rx and Tx when needed.

I'm testing on a breadboard with a MEGA328, but I'll do a final test on the spare Mini lite I have.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Wed Oct 09, 2013 9:00 pm

Breadboard version now fully working. I've put a pot on the analog input and get a correct value from 0 to 255 on the Tx telemetry display for A2. Just need to put it on the Mini Lite and wire it up neatly.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
Kilrah
Posts: 9343
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: XR8 rx telemetary sensors

Post by Kilrah » Wed Oct 09, 2013 9:20 pm

Cool!

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Wed Oct 09, 2013 10:08 pm

Mini lite now working! The only problem is the supply voltage is used as the analog reference voltage. I'm correcting this using the internal bandgap, but noise on the supply, e.g. when a servo moves, is upsetting the reading. This is with taking the average of 4 readings. I had an input showing 4.4V, but with a single servo moving I got a minimum of 2.1V. I'm running the Rx from a 4 cell NiMh for testing.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 17446
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: XR8 rx telemetary sensors

Post by jhsa » Wed Oct 09, 2013 10:26 pm

Maybe using a BEC and powering the arduino directly from the battery? that's what I do with my oXs. No voltage fluctuations. The arduino has it's own regulator and it can handle 12V. At least the one I have can. Checked the datasheet.. but there are many different arduinos pro mini ;)
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Wed Oct 09, 2013 11:02 pm

Not needed thanks. I monitored the SPort data between the Rx and the Mini Lite, values were quite OK, even with servo movement. Then I monitored the SPort data out of the XJT, sometimes it sent a value of 0, but only when a servo was moving.
Turned everything off, did something else for a bit, came back to re-test and it is all working OK (I need to deal with the gremlins!).

I added some more averaging, does 16 reads every 48mS and averages them all.

I'll package it properly, them do some more testing (tomorrow).

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Sun Oct 20, 2013 9:08 pm

A version using an AtTiny13.
This is intended just as a single analog input device for the X8R.
Cd.png
Circuit Diagram
Cd.png (5.15 KiB) Viewed 8202 times
PcbCuts.jpg
Where to cut tracks
PcbCuts.jpg (6.16 KiB) Viewed 8202 times
PcbWires.jpg
Where to put wire links
PcbWires.jpg (4.87 KiB) Viewed 8202 times
PcbBuilt.jpg
Complete assembly
PcbBuilt.jpg (6.29 KiB) Viewed 8202 times
The connector on the right is colour coded. The SPort connection is the lower three pins:
Black - ground
Red - power
Green - signal
The upper two pins (wmpty space between):
Black - ground
Blue - analog input 0-3.3V
layout.png
How I did the layout!
layout.png (6.93 KiB) Viewed 8202 times
sportTinyAnalog.zip
Source and hex files
(8.73 KiB) Downloaded 304 times
If programming the chip on the board:
MISO - SPort signal
V+ - pin by CPU pin 8
SCK - Analog input
MOSI - pin by CPU pin 5
RESET - pin 1 of CPU (I missed placing a connection for this)
Ground - SPort ground or Analog input ground

Fuses - internal 9.6MHz clock, NO clock div 8 (I need to check any others!).

While running, pin 3 outputs a debug signal to show the timing during data receive.
The program attempts to monitor the input data, at startup, to set the CPU clock correctly.

Clearly, a PCB and surface mount devices would be MUCH smaller.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
ShowMaster
Posts: 4258
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

XR8 rx telemetary sensors

Post by ShowMaster » Sun Oct 20, 2013 11:02 pm

So with 3.3v being the max input we treat this just like A2 input on a D series receiver? We can use the same divider values or the Frsky divider?
What's the regulator number used please?

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Sun Oct 20, 2013 11:14 pm

LE33CZ is the one I used, it's a low dropout (0.2V) regulator. I had a tantalum bead for the 2.2uF cap around and a 0.1uF (100n) ceramic. I also had an ATTINY13, but the ATTINY13A should work as well.

Yes, it is intended to be a copy of the A2 input of the "D" series receiver.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

rdeanchurch
Posts: 555
Joined: Tue Dec 27, 2011 11:22 pm
Country: -
Location: Rio Vista. CA

Re: XR8 rx telemetary sensors

Post by rdeanchurch » Mon Oct 21, 2013 12:42 am

Would an attiny85 work just as well.
Just beginning on this, but I sure like the idea.
Dean
OldDmbThms: 1. Takeoff, 2. Crash, 3. Repair, GOTO 1

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Mon Oct 21, 2013 8:30 am

Probably, but it's internal oscillator is 8MHz where the 'tiny13 is 9.6MHz. This will mean the timer and the delays for the serial processing will be different.

I don't have a '85 (or a '45 or '25) to test with. I have a '44 so could try sorting the timings using that.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Mon Oct 21, 2013 3:23 pm

The attiny85 will also need some other changes as the pin that is INT0 is the same pin that is ADC1 I'm using for the analog input on the attiny13.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 17446
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: XR8 rx telemetary sensors

Post by jhsa » Mon Oct 21, 2013 3:36 pm

the problem is that it is more likely people have attiny45/85 at home more than any others.. I do :D
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
ShowMaster
Posts: 4258
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: XR8 rx telemetary sensors

Post by ShowMaster » Mon Oct 21, 2013 3:40 pm

Many eBay parts for the analog input and OpenXsensor projects heading my way.
They'll trickle in over the next few weeks.
I can't keep up with all the great accessories being created. I ordered extras for my parts kit.
Got a eBay source for the strip board? I night as well have the same product so I can duplicate the projects. Good projects to learn on.

rdeanchurch
Posts: 555
Joined: Tue Dec 27, 2011 11:22 pm
Country: -
Location: Rio Vista. CA

Re: XR8 rx telemetary sensors

Post by rdeanchurch » Mon Oct 21, 2013 4:10 pm

I'll get some attiny13...
Or maybe I could just send some of the attiny85 s. I ordered to Mike.
Interested Mike?

URL for strip boards, attiny13,... On ebay if anyone has them?
Dean
OldDmbThms: 1. Takeoff, 2. Crash, 3. Repair, GOTO 1

rdeanchurch
Posts: 555
Joined: Tue Dec 27, 2011 11:22 pm
Country: -
Location: Rio Vista. CA

Re: XR8 rx telemetary sensors

Post by rdeanchurch » Mon Oct 21, 2013 4:14 pm

Last edited by rdeanchurch on Mon Oct 21, 2013 5:12 pm, edited 1 time in total.
Dean
OldDmbThms: 1. Takeoff, 2. Crash, 3. Repair, GOTO 1

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Mon Oct 21, 2013 5:01 pm

The 2.2uF tants are fine. The 0.1uF caps look to have a 0.2" pitch pin spacing. The layout for stripboard is designed for 0.1" pitch lead spacing. The 78L33 is unlikely to be low dropout. This means it may not regulate properly from a 5V input. This is why I specified the LE33CZ, it is low dropout (0.2V dropout voltage).

The attiny85 should work. It may well be possible to use a pin change interrupt instead of INT0, or even use the analog comparator interrupt. I'll see if the pin change interrupt will work OK, it could then be the same code for both processors.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

rdeanchurch
Posts: 555
Joined: Tue Dec 27, 2011 11:22 pm
Country: -
Location: Rio Vista. CA

Re: XR8 rx telemetary sensors

Post by rdeanchurch » Mon Oct 21, 2013 5:10 pm

I thought that is what searched for...that is why I need parts vetted

So this looks closer to me
http://www.ebay.com/itm/300953019041

And to KISforS here
http://www.ebay.com/itm/300949713642 for Attiny13
Dean
OldDmbThms: 1. Takeoff, 2. Crash, 3. Repair, GOTO 1

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Mon Oct 21, 2013 5:30 pm

They both look fine. It looks like the tiny13 is available in lots of 5 as well as lots 10 if you don't want too many!

I've just worked out the changes needed to use the pin change interrupt, I'll try them later this evening.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
MikeB
9x Developer
Posts: 15211
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XR8 rx telemetary sensors

Post by MikeB » Mon Oct 21, 2013 7:16 pm

Using the pin-change instead of INT0 seems to work.
Here are the updated files:
sportTinyAnalogPC.zip
Source and hex file for pin-change version
(9.06 KiB) Downloaded 223 times
I've conditionally compiled the two versions.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
ShowMaster
Posts: 4258
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: XR8 rx telemetary sensors

Post by ShowMaster » Mon Oct 21, 2013 9:00 pm

I ordered 5 of each a few days ago from the same source, a good guess in my part.
If this works out maybe I need to order the SMD equivalent?
I'm not good at circuit board designs unfortunately.

rdeanchurch
Posts: 555
Joined: Tue Dec 27, 2011 11:22 pm
Country: -
Location: Rio Vista. CA

Re: XR8 rx telemetary sensors

Post by rdeanchurch » Mon Oct 21, 2013 11:06 pm

Yeah, my order for what I hope I need is in now too.
I only need two, at the moment, but figure if I get 2 out of 5 tries, i'll be improving my most optomistic estimates. :oops: :mrgreen:

So just to be sure, Mike...The download you put on today is For the AtTiny85 and the one in post OF 20Oct was for the AtTiny13.
I'm going to end up with both AtTINIES.
Dean
OldDmbThms: 1. Takeoff, 2. Crash, 3. Repair, GOTO 1

aadamson
Posts: 123
Joined: Fri Oct 18, 2013 6:47 pm
Country: -

Re: XR8 rx telemetary sensors

Post by aadamson » Tue Oct 22, 2013 2:11 am

I'm whipping up a quick board for this all SMT - 0603 parts and soic8 on the attiny13

I need to fix a couple of cap sizes and the board will shink down another 10% or there abouts... Also need to add the NRST breakout.

Image

Alan

aadamson
Posts: 123
Joined: Fri Oct 18, 2013 6:47 pm
Country: -

Re: XR8 rx telemetary sensors

Post by aadamson » Tue Oct 22, 2013 3:52 am

Ok, here's the files, the final design (at least until I stare at it some more)...

https://github.com/akadamson/X8R-Analog-Sensor

2 - 10uf 0603 6.3v tants
1 - .1uf 0603 ceramic
1 - 330ohm 0603 resistor
1 - 0603 led for power reference
1 - mcp1703 3v3 LDO
1 - Atmel ATTiny13
2 - standard .1 spaced headers, build it and shrink wrap the hole thing.

Dimensions are in mm's

NOTE: I can bring out the pin 3 debugging signal to a test pad if that helps or a small via?

Can I assume this with the right voltage divider external to this board, if connected on the lipo side would sense lipo power and provide it via telemetry?

I know there was another thread on that topic, and this seems to have morphed into that thread?

Alan
Image

Post Reply

Return to “General help (FrSky Taranis radio)”