Adding switches to devo 6s
- mwm
- Offline
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.
- RoGuE_StreaK
- Offline
- Posts: 486
Please Log in or Create an account to join the conversation.
- mwm
- Offline
More info at deviationtx.com/forum/3-feedback-questio...-of-latest-nightlies
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.
- RoGuE_StreaK
- Offline
- Posts: 486
I might try to hard-solder temporarily when I get to it (possibly tonight, but not likely), using the non-momentary switches. What exactly is the behaviour I need to look for? If nothing edited the "L" button doesn't work, and if "extra-buttons=trim-right-up" is added the "L" button will work but the "trim-right-up" won't actually respond? If all new trims are added what's the postulated behaviour?
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
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.
- mwm
- Offline
Basically, the idea is to test various combinations of enabled buttons and see which ones work and which don't. I suspect that you'll need to enable pairs of buttons to get one to work - one to enable the UI features to let you use the button, and a second - incorrect - one to not ignore that input so it actually goes on. I don't think this affects the extra switches, as that code mostly came from the 7E version, but testing that would be good as well.
If you follow the link to the other thread, there's a proposed fix (one line of code) if you can build your own firmware. I'm still not able to sit at my desktop to do 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.
- mwm
- Offline
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.
- RoGuE_StreaK
- Offline
- Posts: 486
One thing I noticed that I think we need to discuss and agree on is which button/switch name phyisically connects up to which pad. From my brief test, the resulting names don't seem to make much sense compared to their physical pad locations. I had Deal57's build pics to go on, so knew that SwitchA and SwitchB are kinda reverse of what I would have expected, with the "B" pad on the left when observed from the front and the "A" pad on the right, but no biggie; I wired them up as that and they work as expected, "A" is on my left, "B" on my right. But the trims are more troublesome, it turns out that "Left" is on the right side of the PCB (from the front) and "Right" is on the left side! Also Deal57's pics indicated that the "+" pads should be the two central pads, whereas when hooked up the "Right" trim is the opposite; I know that there's been nothing agreed on, so just trying to get a standard established from the start before either I rewire to suit the current layout, or the coding is changed to suit whichever standard is agreed on.
On a side note, I think the comments in hardware.ini could probably be expanded on; I couldn't find anything in the manual, and it's not "obvious" what, for example, the terms "3x2, 3x1, 2x2" mean. Perhaps a simple parenthesis after each, eg. "(two 3-way switches)", "(one three-way switch)", "(two two-way switches)"?
Anyway, thanks again for your tireless and awesome work!
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
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.
- RoGuE_StreaK
- Offline
- Posts: 486
P19 doesn't bother me as long as we document which pad is associated with which switch; it's three pads close together, so doesn't matter which switch wire goes left and which goes right.
However, it makes sense to me that, if possible, wires coming from the left-hand side of the PCB (when looking from the front) shouldn't have to criss-cross over to the right-hand side of the body in order to correlate with the naming convention.
Again, with the "+" and "-" pads of the trims it doesn't really bother me which is which but we have to agree on a standard and document it. My intended setup was to have the "+" happen when pulling forward, "-" happen when pushing back; in my case, the red and blue wires were intended to correlate to the "+", yellow and green to the "-", but Trim_R (left pads, aka "Hov-T") didn't work out this way.
On a side note; Mike, is there any issues with keeping one of the trims held closed? My trim toggles are currently latching rather than momentary (incorrectly supplied), which isn't my intention, but theoretically they could be turned into 3-way switches from a virtual channel if there are no adverse effects?
When I get around to it I'll post exact details of my setup; drill sizes and locations, detachment plug details, hardware meshing conflicts, etc...
Oh yeah, the "inner" flat-bladed switches are SwitchA and SwitchB, the shoulder-mounts are the trim buttons
"Final" product
PCB; P19 soldered from underneath, Hov-P and Hov-T from above, hot-melt glue added later for insulation
Front and back shell, detachable cable. VERY precise meshing between the front and back switches
With it's unmodified little brother
Please Log in or Create an account to join the conversation.
- mwm
- Offline
But I'd like to get the extra switches tested before I push that change. If you've got all the inputs installed, then testing should be a matter of trying each configuration option and verifying that it
properly enables the correct input and only the correct input.
Shouldn't be an issue with keeping a button on. That's what the 7e extra switches do, as those are actually on button inputs.
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.
- RoGuE_StreaK
- Offline
- Posts: 486
Tested (blank line denotes new test):
none
extra-switches=2x2
extra-buttons=trim-all
extra-buttons=trim-all
extra-buttons=trim-left-both
extra-buttons=trim-left-up
extra-buttons=trim-left-down
extra-buttons=trim-right-both
extra-buttons=trim-right-up
extra-buttons=trim-right-down
extra-buttons=trim-left-up
extra-buttons=trim-right-down
extra-buttons=trim-left-down
extra-buttons=trim-right-up
extra-buttons=trim-left-both
extra-buttons=trim-right-up
extra-switches=2x1 (no result)
extra-buttons=trim-left-both
extra-buttons=trim-right-both
extra-switches=3x1
extra-buttons=trim-all
I have two two-ways installed, but I believe I tested this correctly; A off and B on = SWA0, A on and B on (should never happen?) gives SWA1, A off and B off is giving nothing, shouldn't THIS give SWA1? Then A on and B off gives SWA2
RE: trim names, here's my suggestion, to suit the physical layout if you take the central pads to both be "+"
trim_r+ should be trim_l-
trim_r- should be trim_l+
trim_l+ should be trim_r+
trim_l- should be trim_r-
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
The wiring I am using is giving me the results I need: SWA is located on the Left shoulder, position 0 toward the back of the tx. Likewise, SWB is located on the right shoulder, position 0 is toward the back of the tx. So the labeling in this version deviation-devo6-v4.0.1-667678f is exactly as expected.
I tested all of the switch settings and they didn't fail even one time. I tested almost all of the button settings and for some reason, it rebooted occasionally after dismounting the updated USB drive. I didn't lose any data or require a reformat because I saved the file first, then dismounted the USB, then rebooted each time. Where there are no comments the test performed as expected.
=====
extra-switches=3x1
extra-buttons=trim-all
I have two two-ways installed, and got what I think is the desired result. Please correct me if I'm wrong, but as I understand it, when the switch is closed it shorts to ground, so CPU sees a LOW value which is INTERPRETED as ON.
A off and B on = SWA0 - makes sense because A is the desired 0 position
A on and B on gives SWA1 - makes sense now because neither line is grounded, and a 3-way switch would be centered (not connected to either lead)
A off and B off is giving me both SWA0 and SWA2. - well, not exactly what we want but perfectly logical, and this won't happen with a real 3-way switch
A on and B off gives SWA2 - makes sense because B is the desired 0 position.
=====
extra-switches=3x2
extra-buttons=trim-all
no indication of any SWA or SWB
=====
Reset to extra-switches=2x2
Tested the variations of the extra-buttons options. I tested nearly all of them and occasionally experienced a reset when I pressed 'Ent' to turn off the USB support (after fully writing and un-mounting on the PC of course).
++++++
extra-buttons-trim-left-all
started the USB from the menu, edited the hardware.ini to extra-buttons=trim-left-all, saved and closed hardware.ini to the drive, unmounted USB, pressed 'Ent' and devo rebooted.
It sees both left trims.
extra-buttons-trim-right-all
started the USB from the menu, edited the hardware.ini to extra-buttons=trim-right-all, saved and closed hardware.ini to the drive, unmounted USB, pressed 'Ent' and devo stayed on, still sees left trims. Rebooted.
Now It sees both right trims.
++++++
extra-buttons-trim-left-up
started the USB from the menu, edited the hardware.ini to extra-buttons=trim-left-up, saved and closed hardware.ini to the drive, unmounted USB, pressed 'Ent' and devo stayed on, reboot..
Now It sees both left up trim.
extra-buttons-trim-right-up
started the USB from the menu, edited the hardware.ini to extra-buttons=trim-right-up, saved and closed hardware.ini to the drive, unmounted USB, pressed 'Ent' and devo stayed on, reboot..
Now It sees both right up trim.
extra-buttons-trim-left-up
extra-buttons-trim-right-down
started the USB from the menu, edited the hardware.ini to extra-buttons=trim-left-up and extra-buttons-trim-right-down, saved and closed hardware.ini to the drive, unmounted USB, pressed 'Ent' and devo rebooted.
It sees both left up trim and right down trim.
repeated above and it didn't reboot automatically.
++++++
extra-buttons-trim-left-down
extra-buttons-trim-right-up
started the USB from the menu, edited the hardware.ini to extra-buttons=trim-left-down and extra-buttons-trim-right-up, saved and closed hardware.ini to the drive, unmounted USB, pressed 'Ent' and devo didn't reboot. Rebooted.
It sees both left up trim and right down trim.
++++++
So it looks good to me, too. I'll disassemble my tx and get those wires looked at next.
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.
- mwm
- Offline
On the A and B both off, what exactly do wer want? Since it's not possible with a 3-way switch, is there some standard for ⁴-way switches that would make sense here? Probably not going into this change, but if I ever do the configurable switches thing, it would fit well in that.
Is everyone satisfied with RS's trim switch name changes?
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.
- RoGuE_StreaK
- Offline
- Posts: 486
Mike, were there any changes made to the nightly RE this from the 7/2 buid to the 9/2 build? I'm running 7/2, Deal's running 9/2, so just checking we are seeing the same thing.
RE: 3-way, it's my understanding and testing that in the centre position nothing is connected electrically, and that in the "0" and "2" positions it connects to either the SWA pad or the SWB pad. So to my way of thinking, if tested with 2x 2-ways, the "1" (central) should correlate to neither switch being closed; in their 2-way guise this would be SWA0 and SWB0.
Here's how I see the 2x 2-way positions vs how a 3-way should react:
SWA1 + SWB0 = SWA0
SWA0 + SWB0 = SWA1
SWA0 + SWB1 = SWA2
but I seemed to get
SWA0 + SWB0 = SWA0+SWA2
SWA1 + SWB1 = SWA1 (physically impossible for a 3-way)
Searching ebay etc for 3-way switches you'll see them listed as "on-off-on", meaning the two side positions close contacts but the central position doesn't close anything. This is how I've found TX hardware to be. Note however that you can get "on-on-on" 3-ways, where the central position closes both contacts; these are used for example in electric guitars, where you can choose neck and/or bridge pickups
Please Log in or Create an account to join the conversation.
- RoGuE_StreaK
- Offline
- Posts: 486
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
The P19 pad is correct: SWB (in my cable its the black wire) is the right-side 2-way switch, and SWA (the red wire) is the left side 2-way switch.
I'm pretty sure that this matches my button and switch test results. It's darn confusing...
Since I've got this apart, I'll hook up a 3-way on/off/on switch and see what I get.
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.
- RoGuE_StreaK
- Offline
- Posts: 486
So SWB on the left pad and SWA on the right pad makes sense, as the left corresponds to the right side of the TX when facing it normally.
I forgot about this when doing my coloured wires, eg. had red/black/yellow on hov-t, which should end up on the right-hand shoulder, but put the switch with that colour wiring onto the left-hand shoulder, the same side as the pads when facing the PCB.
So, naming is sorted, let's lock it in, Eddie.
Deal57, have you updated your rcgroups pic so we have everything aligning everywhere? If so, I can easily rotate my trim to suit the +/- change, we just need to make sure everyone's on the same page from the beginning and it's documented. I should also try to change my PCB pic so the black marker is either swapped or not obvious
I blame it all on sleep deprivation
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
Thanks, I forgot to finish the RCGroups.com blog update but that's done now. I really like the way you built a single connector for your switches and buttons. Between the connector and higher gauge wiring, that's a lot of savings in space. I think I'll draw that out and use it.
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.
- RoGuE_StreaK
- Offline
- Posts: 486
RE: connectors, yeah, another case of best laid plans... I used right-angle double headers as that's the only doubles I had, made it twice as hard for myself by trying to solder closer to the plastic, no idea why I didn't trim the pins back first (nail clippers work well)... anyway, had the female hot-melted to the battery holder, turns out all that extra bulk of the right-angles doesn't allow the case to close, it hits the RF module! So I ripped it off and now it's just floating, but usable. I reckon if I were to redo it with cropped pins it may well fit, but don't know when/if I'll ever get around to it. Maybe if my next supply of trim toggles arrives as momentary like they are supposed to be, rather than latching like what arrived (basically a 3-way).
Please Log in or Create an account to join the conversation.
- Home
- Forum
- General
- General Discussions
- Adding switches to devo 6s