Swapping switches for analog inputs?

More
30 Oct 2015 17:36 #39376 by mwm
Anyone interested in being able to replace switches with analog inputs on your transmitter (this won't work for the extra switches on the 7e, but would fir the stock ones, assuming the code fits)? For instance, take out the switch and replace it with a knob, or add a slider or some other form of control. It would require wiring running an extra wire from the input side of one of the existing pots to the input side of the new one.

You'd then change hardware.ini to (speculating here) have something like:
[input-mapping]
aux1=eledr
aux2=aildr

and then your elevator and aileron dual rate switches would vanish, and you'd have two analog inputs - aux1 and 2 - would appear. I'm probably going to do something like this in lieu of simple extra switches for the 6, assuming it works. But if there's interest in making this more general, I can go that way instead.

Any interest in that?

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

More
30 Oct 2015 21:24 #39385 by FDR
Replied by FDR on topic Swapping switches for analog inputs?
Absolutely.
I don't know if I would sacrify one of my switches on my DEVO 8, but it is an interesting idea.
If it is configurable, then why not?

The only disadvantage I can think of is that it won't help the model file sharing... :)

Please Log in or Create an account to join the conversation.

More
31 Oct 2015 04:45 #39396 by RoGuE_StreaK
Replied by RoGuE_StreaK on topic Swapping switches for analog inputs?
Would this only require a 2-position switch spot? ie., for the new-found 6s P19 could you have one analogue and one 2-way (eg. DR)?
If it's relatively trivial to implement in software, then I say hell yeah, give the choice and let people decide whether they want to sacrifice a switch.

Personally I can't actually think of anything I'd currently use a pot for, but I'm sure I could come up with something.
As a side thought, for the 7E perhaps one of the stock 2-pos could be used for analogue, and just use the extra trim-switches for DR replacements?

Please Log in or Create an account to join the conversation.

More
31 Oct 2015 12:38 #39408 by Deal57
Replied by Deal57 on topic Swapping switches for analog inputs?
It is an intriguing concept. I would really like having that extra functionality as well. Would we need to include the analog potentiometer in the calibration process? The switches are simply on or off, but with a pot you need to know where the center and end points reside.

In the PPM add-on switch systems, we can tweak the Arduino and PPM phasing to deliver a consistent center/end calibration, but it's not precise. We need to deliver a consistent and predictable position result.

Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!

Please Log in or Create an account to join the conversation.

More
31 Oct 2015 16:25 #39424 by mwm
Replied by mwm on topic Swapping switches for analog inputs?
Yes, it just needs a 2-way switch, so the p19 spot could be used for a pot and a 2-way switch. That was actually what got me thinking about this. I'd rather have a shoulder slider or similar than another switch on my 6s.

Yes, it would be in the calibration process.

The affect on file sharing would be interesting. I'd call them AUX#, so you could get the same extra inputs as the 10 and 12 have. But everybody having different switches would make things worse.

I'm pretty sure this won't for on the 7e, but I'll have to think about it. I was figuring if handle it like extra inputs, and just have all the options and ignore the unused ones. Maybe if I can use one input both ways, it would fit.

The six will certainly get this for the P19 inputs - of it works. Not sure about anything else.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

More
31 Oct 2015 18:25 - 31 Oct 2015 18:27 #39435 by Cereal_Killer
Replied by Cereal_Killer on topic Swapping switches for analog inputs?
Hi Mike and everyone else, here's a quoted question I asked and your reply from when I first got the PPM added on POT'S running in that original thread. I thought it fit well here just to give one more example of why you might want to swap out your two OE 2-way's for POT'S on a 7E to gain that possibility with out the PPM add-on hardware method.

Post original from the first additional inputs on a 7E thread:

mwm wrote:

Cereal_Killer wrote: Ok here's a question for MWM or someone else really versed at setting up MUX's...

Can you use the PPM data from a pot / slider you are using this method to add and use it to change trim and or rates of a stick? That would really be awesome!


Yes. Well, sort of. This works on the 10 & 12 with the AUX inputs.

What you want is a mixer in a complex mix that uses one of your extra inputs as a source. For a trim, set the MUX to add, and the scale to something like 10. This will let you adjust the output by +/- 10 based on that input. There's an issue open to add a "center beep" for AUX inputs. That's probably my first-after-PB-does-a-release project, and we ought to be able to make it work on PPM inputs as well.

For a rate, set the MUX to mult, and then adjust the scale and offset to get the range you want. For instance, going from 20 to 100 would let you get rates from 20 to 100%, which seem popular with the toy quads.

Could you wire up a multi-position dial for use as a "rate" switch? Or better yet, a flight mode switch :cheer: ?


Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7

What I do in real life: rivergoequestrian.com/
Last edit: 31 Oct 2015 18:27 by Cereal_Killer.

Please Log in or Create an account to join the conversation.

More
31 Oct 2015 20:34 #39439 by Fernandez
Replied by Fernandez on topic Swapping switches for analog inputs?
www.deviationtx.com/forum/6-general-disc...evo7e?start=40#34661


Why not use the two unused open pins on the CPU, as described in link above?

Please Log in or Create an account to join the conversation.

More
31 Oct 2015 22:11 #39442 by mwm
Replied by mwm on topic Swapping switches for analog inputs?

Fernandez wrote: www.deviationtx.com/forum/6-general-disc...evo7e?start=40#34661
Why not use the two unused open pins on the CPU, as described in link above?


Well, I'm not willing risk either of my mcus to my smd soldering skills. And on my 6s, there are connections on the board that go to unused pins, so I don't have to.

But all of these require software changes to support. I've already added code to support those two 6s pins as switches (either 2x2 of 3x1), but I want an analog input. I could just hack it in and use it. But fixing the 6s to allow one of two of them to be analog inputs would be more useful. I asked the question to see if it was worth doing a more general mod so other txs can do these kind of change.

FWIW, I've posted a test build that can do the center beep. Has to be set up on each channel in the mixer, but it's pretty flexible. But without more feedback and testing, it won't go into a pull request.
www.deviationtx.com/forum/builds/4953-channel-beep-facility

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

More
01 Nov 2015 13:49 #39456 by Deal57
Replied by Deal57 on topic Swapping switches for analog inputs?
What is the R value for the Aux port pots on the 10? I know it doesn't make a lot of difference, but I'd like to have a couple on hand with a baseline spec so I can help test this out.

Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!

Please Log in or Create an account to join the conversation.

More
18 Nov 2015 18:37 #40187 by Wene001
Replied by Wene001 on topic Swapping switches for analog inputs?
i like the idea ....on my 6s

Please Log in or Create an account to join the conversation.

More
25 Nov 2015 02:31 #40363 by mwm
Replied by mwm on topic Swapping switches for analog inputs?
For the record, this is going to require a lot more work than I expected. What each thing is used for is hard-wired into the transmitter code, so this needs to be made configurable. So lots of work on the config system, which is already being revised by PB. So - not really likely as things stand.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum