- Posts: 291
Extra inputs for Devo Tx's
- Epitaph
- Offline
The pots are on channels 6 and 7
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
I'll be opening it up today and changing the sketch to another one with that change in code you suggested, and I'll see what that does and let you know
EDIT
One thing I thought I'd try out was the entrance voltage on the pot... the thing is I use NiMH in my 7E (the Turnigy 2400mAh LSD batteries), and we are assuming that the pot is going from GND to +5V, but how can it supply +5V if the battery at that moment for the whole system is at 4.89V... so I tried with a 2 cell LiPo with the pot in centre... before, with the NiMH pack the centre of the pot marked 50 on the channel monitor, and just changing the battery over to a 2S LiPo the centre changed to 89, and just a touch put it to 100!! So in fact it made the issue even worse!!
I have the 5V for the pots and the Arduino coming from the 5V regulated switched point on the board you indicated a few pages back. I might try changing the GND and +5V points from there to the ones directly used by the gimbals and see how that does, but really I don't tant to start having to change to a LiPo as I can't find a decent one to fit in the battery bay, and I hate having a battery strapped to the back of a transmitter.
Please Log in or Create an account to join the conversation.
- TheSFReader
- Offline
- Posts: 64
Are you sure the 5v is good ? could you measure it ? Depending on the board/Mini you have, you perhaps should input the +5v line you use to the HREF pin and set AnalogReference to EXTERNAL (After having made sure NOT to be over 5V !!!)
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
Please Log in or Create an account to join the conversation.
- TheSFReader
- Offline
- Posts: 64
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
First of all, the switched point on the main board does not give regulated 5V, it gives the full battery voltage. Supposedly, one gives full voltage, and the other regulated and switched, when really, they both give full voltage, only one is switched. Using 4xNiMH shouldn't be a problem with that as the voltage I am getting is within the margin for that, but on a LiPo it means that over 8V is going directly into the Arduino and the pots.
The other issue is that the pots on the gimbals are only being fed 3.24V, not 5V... now, I have found that the higher the voltage I input, the worse the problem gets, so I'm going to try with changing the GND and the Vin to the ones used by the gimbals, see what that does, and just feed the Arduino from the 5V switched from the board.
As for sketches, I've tried a few, and none of them work at all... the only one that does work is the one I posted, albeit I haven't tried adapting it yet how Deal57 said, so I'll try that later.
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
I'll just change the pot which is giving problems, it could be physical the issue as the board you solder to is wobbly even... let's see what happens...
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
The result is everything working absolutely perfect, and this is with the original sketch I posted on here, which is just for 2 pots. If I ever feel the need for more switches then I can just add it onto the sketch and upload it, with the changes in the wiring needed and that's it.
But a couple of words of warning people, just so you know...:
First, it didn't give the proper range until I wired them un with the original gimbal pots which have a lower voltage than 5V, so this was changing the range on the pot itself. With the change, it is now centring perfectly on 0, and the -100 to 100 range is on the full throw of each pot, just as they are supposed to work, with a tiny deadband of about 2ยบ on either side which is good to make sure you have it at minimum and maximum. The change in value on the monitor is steady and smooth, and I've tried it out now also with a servo to see that it translates properly, which it does, giving a perfect usable pot for anything you would want it for.
The other thing I need to point out is that the regulated, switched point on the board that was photographed a few pages back is NOT regulated, only switched. It gives the full voltage of the battery that you have plugged in, so if you use a 2S battery, then you are feeding the full 8.4V into the arduino via this, and it is only being switched so it turns off when you turn the transmitter off, and the pad next to it is constant, full voltage, not switched. If you are using 4 AA NiMH batteries like I am, then this isn't a problem, but if not, make sure the Arduino you are using can take the voltage on the connection you are using!!
Now all I need is for the knob that is missing to finally arrive, and I can be happy with this transmitter as is, because I think putting more on it now for me is just overkill. I wanted a good way to control flaps with variable angle, as well as be able to adjust things like butterfly and such in flight, and maybe also for things like gimbals, and I now have it!!
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
Also measure the voltage on the PPM output (D13 unless you changed it) PPM is, by standard, 5V, infact STM32 /devo is a 3v3 system but ppm is 5V so devo must accept it. Glad you got it working and if it's back together I'd just use it as it's working now but if you want to dig in, it's strange [to me] you're getting full range with 3.3v to the pot.
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
I'm afraid I can't measure the voltage now as It's all closed up, and also the Arduino itself is encased in the last of the heatshrink I have of that size...
one sec, hold that thought, I have an idea...
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
Epitaph wrote: OK, what I did was plug the jack into the DSC port and measure the voltage between the jack tip which is the PPM out from the Arduino (D5 on mine), and the negative of the multimeter to the black wire of the battery JST plug, and I got a tension of 3.62V coming through there.
That's very strange as ppm is a 5V signal. Im wondering if all your problems stem from that? The signal is so weak the timers can't count the rises / falls...
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
Also, I tried with a number of other sketches from on here just changing the pin values to what I had wired up, and none of them worked, only the simple, 2 pot sketch. And it's with the old code, not the new change that Deal57 posted, I didn't need that... and with the values on the original code I posted.
Don't ask me why it works, it might not even work on someone else's transmitter the same, but it works on mine and goes great!! Who am I to complain??
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
Could there be a problem on my transmitter that the solder point everyone is using for 5V on mine isn't working isn't working as it should and is just feeding the full battery voltage unregulated? I mean, it doesn't bother me if I have it working with the setup I'm using, as the battery I'm using is regulating the voltage, but if it's the case, it might explain something.
I guess the issue is with the input voltage into the Arduino, if it's being fed from the NiMH batteries, it gives a lower PPM out than if it's fed off a 2S battery, and this in turn changes the voltage needed on the pots. Seeing as I had planned to keep it on NiMH as they fit better and the ones I have are pretty good (and I'm not bothered if it takes a while to charge) then I might as well just keep it like that. The only thing I want to keep an eye on is that the Arduino continues to work ok when the battery drops low (not that I let it drop low anyway)...
I'm going to fully charge up my NiMH batteries to see if that gives any difference.
Please Log in or Create an account to join the conversation.
- TheSFReader
- Offline
- Posts: 64
Please Log in or Create an account to join the conversation.
- Epitaph
- Offline
- Posts: 291
And besides, fix what? It's working great now!!
The regulator might be a solution should I change to a LiPo, but I honestle can't see that happening; I just hate having a huge LiPo strapped to the back... what's the point on a small transmitter? It's like a battleship anchor on a rowboat!!
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
If this stuff was easy, anyone could do it!
I've never been tempted to use 2S batteries in my Devo7e. If you put it behind a 5v regulator, maybe. I'm happy with my NIMH rechargables. The PPM voltage I've measured on the Devo7e was about 3.6v, and it seems to work with all the Arduino or PC tools I've used. IIUC the PPM signal is differential, so as long as the receiver can differentiate between high and low, it should be able to decode the signals, so voltage isn't critical -- however I'd never put more than 5v onto something connected to my TX.
So what have we learned?
- The Arduino sketch works great
- The Devo7e is a pretty awesome platform when the Arduino is doing it's job
- The Devo7e 5v power is elusive, need to determine an "ideal" Vcc point; what worked for some may not work for others
- (Corollary) We need to identify the best way to power the Arduino at the right voltage
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.
- Home
- Forum
- Development
- Development
- Extra inputs for Devo Tx's