Esc power safety switch?
Re: Esc power safety switch?
I still think the attiny can do all that, with only one push button for arming/disarming , and with a smaller part count.
João
João
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
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
Re: Esc power safety switch?
Yep one push button does arming and disarming. Led for status, and it can detect a low throttle pulse before allowing it to arm. Also detects pulse loss, and disables itself. Now I just need to test it. Should have something in a couple of days.
-Gohst
Sent from my LG-D801 using Tapatalk
-Gohst
Sent from my LG-D801 using Tapatalk
Re: Esc power safety switch?
Yes just like the fun I had at Heathrow airport when my car decided not to recognise my ignition key about two minutes after I last used it, yea that's the kind of fun I like!!!That would spoil the fun of doing this.
If the user can't see where the lever on the toggle is maybe just maybe they shouldn't actually be flying just a thought....Sadly the toggle switch if it is a single pole one will not give you any indication (in the form of a LED) as to if the system is armed. This can be sorted of course.
A 4027 - Dual JK-Flipflop could do it with no programming!I still think the attiny can do all that, with only one push button for arming/disarming , and with a smaller part count.
Come to think of it a set of 4011 nand gates could probably do the whole thing.
Oops I meant 4001 Nor gates....
Bah humbug!
Last edited by Bill on Tue Apr 29, 2014 1:11 pm, edited 1 time in total.
“A good politician is quite as unthinkable as an honest banker”
They used to say "if you don’t want to work at McDonald’s, go to college." Now they say "if you want to work at McDonald’s, go to college.”
They used to say "if you don’t want to work at McDonald’s, go to college." Now they say "if you want to work at McDonald’s, go to college.”
Re: Esc power safety switch?
Not with the other features gohst just mentioned above
João
Sent from my GT-I9195 using Tapatalk
João
Sent from my GT-I9195 using Tapatalk
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
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
Re: Esc power safety switch?
Well, it could be possible given enough gates.
Sent from my LG-D801 using Tapatalk
Sent from my LG-D801 using Tapatalk
Re: Esc power safety switch?
Two gates for the flip flop and the other two on the package to pass the signal, give me a minute and I'll work it out.
And yes it was on the back of an envelope..and there's meant to be a resistor to ground on the lower arm too
I don't know why I'm contributing to this nonsense a toggle switch I say....!!!!
Sorry not a very good picture but you see the solution.And yes it was on the back of an envelope..and there's meant to be a resistor to ground on the lower arm too
I don't know why I'm contributing to this nonsense a toggle switch I say....!!!!
Last edited by Bill on Tue Apr 29, 2014 1:49 pm, edited 5 times in total.
“A good politician is quite as unthinkable as an honest banker”
They used to say "if you don’t want to work at McDonald’s, go to college." Now they say "if you want to work at McDonald’s, go to college.”
They used to say "if you don’t want to work at McDonald’s, go to college." Now they say "if you want to work at McDonald’s, go to college.”
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Esc power safety switch?
Back when I built my own (brushed) ESCs I had an arming procedure where I needed to go to full throttle and back to idle TWICE before the ESC would drive the motor. It also calibrated itself to the throttle at that time.
I had all sorts of things on them like you set the required motor voltage for full throttle, and it adjusted the output through the flight as the battery voltage dropped, so full power was always the same. It had low voltage cutoff, but if you pulled the throttle back to idle, it would then give you 15 seconds of power on time to land safely. You could use that 15 seconds in separate bursts if necessary. If the battery voltage dropped very fast, it cut the output, assuming the motor was stalled so a very high current was pulling the voltage down, a bit like an electronic fuse really.
It also had built in exponential response so at low throttle you got a faster voltage increase than at high throttle. This gave a more linear power response.
All this in a PIC16F84 with only 1K flash and not much RAM!
Mike.
I had all sorts of things on them like you set the required motor voltage for full throttle, and it adjusted the output through the flight as the battery voltage dropped, so full power was always the same. It had low voltage cutoff, but if you pulled the throttle back to idle, it would then give you 15 seconds of power on time to land safely. You could use that 15 seconds in separate bursts if necessary. If the battery voltage dropped very fast, it cut the output, assuming the motor was stalled so a very high current was pulling the voltage down, a bit like an electronic fuse really.
It also had built in exponential response so at low throttle you got a faster voltage increase than at high throttle. This gave a more linear power response.
All this in a PIC16F84 with only 1K flash and not much RAM!
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Esc power safety switch?
Aah, the good times of PIC assembly
I really liked this instruction set. Super reduced but very efficient, had all you could need.
I really liked this instruction set. Super reduced but very efficient, had all you could need.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Esc power safety switch?
Quite! For PICs I've now written my own C compiler! It produces an assembly file so I can check it produces 'good' code.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Esc power safety switch?
Aah, the good times of PIC assembly
“A good politician is quite as unthinkable as an honest banker”
They used to say "if you don’t want to work at McDonald’s, go to college." Now they say "if you want to work at McDonald’s, go to college.”
They used to say "if you don’t want to work at McDonald’s, go to college." Now they say "if you want to work at McDonald’s, go to college.”
Re: Esc power safety switch?
Mike, you may have a sickness. Maybe you should get that checked out.
Sent from my LG-D801 using Tapatalk
Sent from my LG-D801 using Tapatalk
Re: Esc power safety switch?
If you Pic it , it will never heal
Re: Esc power safety switch?
Microcontrollitisgohsthb wrote:Mike, you may have a sickness. Maybe you should get that checked out.
Sent from my LG-D801 using Tapatalk
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
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
Re: Esc power safety switch?
Ok João,
Here is the first version of my code. I wrote it for an attiny25. But a 45 or 85 should be able to load the same file.
Features:
- 1 button enables and disables the ESC
- LED lights when ESC is enabled
- Checks that throttle is low before arming the ESC
- automatically disables the ESC if Rx signal is lost
-Gohst
Here is the first version of my code. I wrote it for an attiny25. But a 45 or 85 should be able to load the same file.
Features:
- 1 button enables and disables the ESC
- LED lights when ESC is enabled
- Checks that throttle is low before arming the ESC
- automatically disables the ESC if Rx signal is lost
-Gohst
- Attachments
-
- ESC_Safe.hex
- (1.34 KiB) Downloaded 367 times
-
- esc_safe.pdf
- Schematic
- (12.21 KiB) Downloaded 324 times
Re: Esc power safety switch?
Thanks Gohst. will test it tomorrow. Quite late here now. Thanks for taking your time for something only I showed interest Actually there is an attiny already on the bread board
Thanks again.
João
P.S. - Gohst, what fuses values should I set? Thanks
I find this point here a bit tricky as some receivers keep sending the last channel position and some others just send 1500us when signal is lost. Normally the ESCs also do the same. they turn the motor off if signal is lost.. But I guess there is no harm in having the feature there. Maybe some people will use it with some old FM receivers.- automatically disables the ESC if Rx signal is lost
Thanks again.
João
P.S. - Gohst, what fuses values should I set? Thanks
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
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
Re: Esc power safety switch?
Gohst, I trhink in JP2 and JP3 GND and +V are swapped? Positive should be on the center pin?
João
João
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
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
Re: Esc power safety switch?
I was leaving those as places to connect the wires, so really doesn't matter. I can switch then though. The default fuse settings will be fine for the tiny.
Sent from my LG-D801 using Tapatalk
Sent from my LG-D801 using Tapatalk
Re: Esc power safety switch?
Thanks a lot.. Testing later when all this dangerous people around me go to bed
João
João
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
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
- ShowMaster
- Posts: 4327
- Joined: Thu Dec 29, 2011 3:44 am
- Country: -
- Location: Los Angeles, CA USA
Re: Esc power safety switch?
I'm almost over this infection that sidelined me so I can play again. I've got just the guys to beta test your design ha ha. Great news is hot clear weather. Bad news is the antibiotics want me out of bright sun for the next 2 weeks. Even worse, my shop is in my garage even hotter daytime.
I see some late night building coming up.
If it's successful I'll be needing some programming help guys. I think I have the parts and some programmer that should work. I could never find a local that's good at this to buddy up with.
Thanks for giving it a try. I think it's worthwhile. Maybe a real product like Mikes 8xr A2 circuit.
Sent from my iPod touch using Tapatalk, small keys and a big finger.
I see some late night building coming up.
If it's successful I'll be needing some programming help guys. I think I have the parts and some programmer that should work. I could never find a local that's good at this to buddy up with.
Thanks for giving it a try. I think it's worthwhile. Maybe a real product like Mikes 8xr A2 circuit.
Sent from my iPod touch using Tapatalk, small keys and a big finger.
Re: Esc power safety switch?
Gohst, sorry I only now had time to build your circuit and test it..gohsthb wrote:Ok João,
Here is the first version of my code. I wrote it for an attiny25. But a 45 or 85 should be able to load the same file.
Features:
- 1 button enables and disables the ESC
- LED lights when ESC is enabled
- Checks that throttle is low before arming the ESC
- automatically disables the ESC if Rx signal is lost
-Gohst
At the moment I'm testing it with a servo. It is working. It arms ok, and if the stick is not down, it will flash telling you to bring the thr to idle.
When disarming I've noticed that if I don't have the stick at the bottom and press the button to disarm, the led goes off but the servo doesn't go to -100. It keeps the position.. I think it should go to -100?
I will put the scope on it, but when it is disarmed are you forcing it to -100 or do you just stop the pulses? Hmm I think I will find out in a minute
Also, are the 100K resistors really needed? sorry if it is a stupid question but maybe I don't understand why they are there
Thanks for your time.. maybe this saves some fingers
João
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
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
Re: Esc power safety switch?
Just scoped it. Yep, no pulses before arming and no pulses after disarming.
I guess most modern ESCs will stop the motor when no pulses, right?
Next will do a test with esc and motor.
Will also post some pictures later.
João
Sent from my GT-I9195 using Tapatalk
I guess most modern ESCs will stop the motor when no pulses, right?
Next will do a test with esc and motor.
Will also post some pictures later.
João
Sent from my GT-I9195 using Tapatalk
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
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
Re: Esc power safety switch?
The circuit doesn't send pulses if disabled. Most escs should shut down if they get a signal loss. The 100k resistor on the rx side keeps the input from floating in case a receiver is not connected. The one on the esc side keeps the esc input from floating.
I could add the code that outputs a pulse=-100 if needed, but I didn't want the esc to arm before necessary.
-Gohst
Sent from my LG-D801 using Tapatalk
I could add the code that outputs a pulse=-100 if needed, but I didn't want the esc to arm before necessary.
-Gohst
Sent from my LG-D801 using Tapatalk
Re: Esc power safety switch?
Hmmm, how would it arm before necessary if you're sending -100?
Am I missing something?
Thanks for the explanation on the resistors..
Sent from my GT-I9195 using Tapatalk
Am I missing something?
Thanks for the explanation on the resistors..
Sent from my GT-I9195 using Tapatalk
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
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
Re: Esc power safety switch?
Why not use the internal pullups?
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Esc power safety switch?
Because they are pull downs?
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Esc power safety switch?
But a pullup would work just as well
Re: Esc power safety switch?
What about a divider? middle??
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
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
Re: Esc power safety switch?
OK, did some testing with a motor and a HK Super Simple 25A ESC. Here are a couple pics and a video of the test. I quite like the fact that the esc beeps when is not receiving pulses. I don't know if all other ESCs will do that..
João
[BBvideo 425,350]https://www.youtube.com/watch?v=7SndIeP ... e=youtu.be[/BBvideo]
João
[BBvideo 425,350]https://www.youtube.com/watch?v=7SndIeP ... e=youtu.be[/BBvideo]
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
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
Re: Esc power safety switch?
The rx I tested idles at a low level, the pulses are at a high level. Also the external ones always work, regardless of the uC is working or not. Looks nice Joao
Sent from my LG-D801 using Tapatalk
Sent from my LG-D801 using Tapatalk
- ShowMaster
- Posts: 4327
- Joined: Thu Dec 29, 2011 3:44 am
- Country: -
- Location: Los Angeles, CA USA
Re: Esc power safety switch?
Look really good. I need make one.
Sent from my iPod touch using Tapatalk, small keys and a big finger.
Sent from my iPod touch using Tapatalk, small keys and a big finger.