Registration Notice

Due to increased spam, forum registration must be manually approved by a moderator! Please see this post for instructions.

*

Offline rockchuck

  • 27
    • View Profile
  • australia
How to setup six position switch
« on: August 15, 2024, 11:30:40 PM »
Hello
I am in the process of modifying my Turnigy 9X AFHDS 2A radio for adding 3 position switches and would like to add a 6 position switch. The 3 pos switch I have worked out however I'm not sure about the 6 pos switch. My understanding is that I replace one of the pots with the 6 pos switch.

 My question is how is this identified in OP Config. My thinking is that I would have to use resistors on each position to mark the signal into 6 steps ie from pwm pulse -100% to +100%. Then set this channel in OP Config as a digital chan with 6 positions.

I have Er9x firmware in the radio and I know you can setup different curves on a analog pot chan to generate a signal at the selected steps on the pot as it is turned. I think these are then described as Logical switches in the firmware ??? so not sure if this is a simple method with no mods to the radio but how would these logical switches be detected in OP Config.

Anyhow if the hardware hack is the only option then that's ok just means getting the right switch etc and doing the mod.

Thanks in advance.
cheers
rockchuck

*

Offline LukeZ

  • 1288
    • View Profile
  • France
Re: How to setup six position switch
« Reply #1 on: August 16, 2024, 09:38:48 AM »
My understanding is that I replace one of the pots with the 6 pos switch.

 My question is how is this identified in OP Config. My thinking is that I would have to use resistors on each position to mark the signal into 6 steps ie from pwm pulse -100% to +100%. Then set this channel in OP Config as a digital chan with 6 positions.
Hi Rock, this method that you described will work with any transmitter and OP Config will be able to read it just fine (as a 6 position digital channel) assuming the resistor values were correctly chosen. As you say, you replace a pot with a 6 position switch and resistors, it basically ends up still being a pot, but instead of an infinite number of positions from min to max, it only has 6. This doesn't require any special transmitter programing, and as far as the transmitter knows it's still a pot. But the transmitter will output 6 evenly spaced PWM values, and OP Config will read those as a 6 position switch if you tell it to.

I have Er9x firmware in the radio and I know you can setup different curves on a analog pot chan to generate a signal at the selected steps on the pot as it is turned. I think these are then described as Logical switches in the firmware ??? so not sure if this is a simple method with no mods to the radio but how would these logical switches be detected in OP Config.
This I am not so familiar with. I think what I recall hearing is that Er9x had some functionality to let you adjust the curve if for example your resistors didn't give you exactly the outputs you were looking for. But I could be mis-remembering. Maybe as you say there is some way to program it so that an analog pot would only output 6 positions. Of course then you wouldn't have the tactile feel of 6 positions, but maybe that's ok with you.

I should say that you can accomplish the same effect already without any mods at all and no transmitter programming. Just assign your analog pot in OP Config to a digital channel with 6 positions (yes, we are telling OP Config a lie, but that's ok).

As you move the pot from one end to the other, OP Config will translate all the infinite values into one of 6 positions, by choosing whatever position is closest to the current PWM reading.  So again, no tactile feel on your transmitter, but you do get 6 positions (or however many you want).

If I misunderstood your second question you can enlighten me further, but at any rate, the first approach using a hardware mod will work.
NO SUPPORT THROUGH PM - Read why
Need a forum account? Read here
Open Panzer FAQs

*

Offline rockchuck

  • 27
    • View Profile
  • australia
Re: How to setup six position switch
« Reply #2 on: August 18, 2024, 09:31:57 PM »
Thanks Luke for your reply.
I have ordered some 6 position switches from a UK supplier that already have the resistors (smd) fitted so all I will have to do is attach the 3 wires from the pot to it and all should be good.
cheers
rockchuck

*

Offline LukeZ

  • 1288
    • View Profile
  • France
Re: How to setup six position switch
« Reply #3 on: August 19, 2024, 10:46:03 AM »
Please let us know the result when you have completed the mod, as others may be interested in doing the same thing. Would you be able to share the link to the product you are using?
NO SUPPORT THROUGH PM - Read why
Need a forum account? Read here
Open Panzer FAQs