Welcome to Multi-Rotor UK. Please login or sign up.

Tuesday,August 20, 2019, 06:54:59

Login with username, password and session length

Shoutbox

Andy7:
19 Aug 2019 09:14:20
Good for you!  ~~
DarkButterfly:
18 Aug 2019 19:13:57
Had another negative encounter, it's been a few years since the last one, just an uneducated ******, going on about drones being illegal yada yada yada.    :-/
Still that didn't spoil my flying time, had an absolute blast  ~~
Gaza07:
07 Aug 2019 19:52:01
ooooh mrs jones  :D
hoverfly:
30 Jul 2019 15:26:34
D.B. you tightwad.. :cool:
atomiclama:
29 Jul 2019 20:14:10
DB that just means you have shed loads of props in the first place ;-)
DarkButterfly:
29 Jul 2019 18:53:33
Just had a thought, even with all the crashing I've done, I haven't bought any replacement props in over a year ~~
ched:
09 Jul 2019 19:45:42
May the sun shine and winds be light for BFU#8. Son't forget lots of vids for those of us unable to attend.  :D
Gaza07:
09 Jul 2019 18:10:30
Hope you all have a great day  :beer2:
Andy7:
09 Jul 2019 14:05:28
BFU#8 details locked in for this saturday - see the head of the forum thread for all details.
hoverfly:
05 Jul 2019 21:51:05
Good for genital warts as well......or so I'm told.. :hmm
Members
  • Total Members: 8066
  • Latest: badger1
Stats
  • Total Posts: 196558
  • Total Topics: 19801
  • Online Today: 39
  • Online Ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 0
Guests: 33
Total: 33

Theme Changer





3d - Printworx

Printing 3d Forum

Updated my ESC's

Started by barneyg, Sunday,August 18, 2013, 17:49:43

Previous topic - Next topic

barneyg

Sunday,August 18, 2013, 17:49:43 Last Edit: Sunday,August 18, 2013, 17:53:37 by barneyg
My ESC';s came with simonK firmware installed and the boot loader configured ...
I got a Turnigy USB linker a couple of days ago and Last night I recompiled the simonK firmware with a few tweaks ...

.equ    COMP_PWM  = 1
.equ    STOP_RC_PULS    = 18 ;1060       ; Stop motor at or below this pulse length
.equ    FULL_RC_PULS    = 2016 ;1860     ; Full speed at or above this pulse length
.equ    MAX_RC_PULS     = 2200 ;2400     ; Throw away any pulses longer than this
.equ    MIN_RC_PULS     = 14 ;100        ; Throw away any pulses shorter than this

and uncommented #define EXT_MOTOR_RANGE in the MultiWii config.  NB if you are doing this DO NOT calibrate your ESC';s everything is preconfigured and ready to go if you do the *_RC_PULS figures will be over written and you will loose the increased range that you need for EXT_MOTOR_RANGE  :rolleyes:

Not sure I';m feeling much of a difference compared to the basic simonK that was there before but one thing I do know is my PID';s are all screwed up  :rolleyes:

teslahed

I';ve not looked into this myself but it does seem interesting.

I am not sure how you';ve extended your motor range though. If i understand your code changes correctly;

STOP_RC_PULS    = 18 ;1060   
FULL_RC_PULS    = 2016 ;1860 

You';ve got minimum set to 1060 and maximum set to 1860.

My radio goes between about 1000 and 2000 so if i calibrate manually i would get a minimum of around 1000 and a maximum of around 2000 - which is about standard. I actually calibrate using multiwii';s built in ESC calibration routine, just because it makes getting everything exactly right quicker and easier - but i still end up with similar values.

So why are you using extended motor ranges for 1060 to 1860 ?
One circlip short of a quadcopter.
 1 lobe short of an antenna.

barneyg

Sunday,August 18, 2013, 19:01:40 #2 Last Edit: Sunday,August 18, 2013, 19:06:08 by barneyg
Quote from: teslahed on Sunday,August 18, 2013, 18:07:31
I';ve not looked into this myself but it does seem interesting.

I am not sure how you';ve extended your motor range though. If i understand your code changes correctly;

STOP_RC_PULS    = 18 ;1060   
FULL_RC_PULS    = 2016 ;1860 

You';ve got minimum set to 1060 and maximum set to 1860.

My radio goes between about 1000 and 2000 so if i calibrate manually i would get a minimum of around 1000 and a maximum of around 2000 - which is about standard. I actually calibrate using multiwii';s built in ESC calibration routine, just because it makes getting everything exactly right quicker and easier - but i still end up with similar values.

So why are you using extended motor ranges for 1060 to 1860 ?


nope they are set to 18 and 2016 the ";" denotes the start of a comment in asm code :) the 1060 and 1860 are the original values.

And if I';m reading the forums right they would suggest that you shouldn';t actually be calibrating SimonK ESC';s at all otherwise these values will be over ridden.  In theory there should be no need to.  Trouble is once you';ve done it the only way to undo it is to clear the EEPROM or reflash with the Save EEPROM fuse configured to not save the EEPROM during reflashing ... Or use avrdude and a Turnigy USB Linker since they can';t talk to the fuses and you can force an EEPROM clear no matter what the fuses say :)

teslahed

Sunday,August 18, 2013, 19:17:00 #3 Last Edit: Sunday,August 18, 2013, 20:07:04 by teslahed
Quote from: barneyg on Sunday,August 18, 2013, 19:01:40
nope they are set to 18 and 2016 the ";" denotes the start of a comment in asm code :) the 1060 and 1860 are the original values.


Ah that explains things, thanks

What radio system are you using to provide these values? I imagine you';ll get more throttle resolution by doing this which might lead to smoother control and a more precise hover point - which sounds good.

QuoteAnd if I';m reading the forums right they would suggest that you shouldn';t actually be calibrating SimonK ESC';s at all otherwise these values will be over ridden.  In theory there should be no need to.  Trouble is once you';ve done it the only way to undo it is to clear the EEPROM or reflash with the Save EEPROM fuse configured to not save the EEPROM during reflashing ... Or use avrdude and a Turnigy USB Linker since they can';t talk to the fuses and you can force an EEPROM clear no matter what the fuses say :)


That sounds a little strange to me. Why would i want my simonK ESCs to default to 1060 to 1860 when my radio does 1000 to 2000? I would be losing resolution if i used the defaults and i would need to adjust the travel on my transmitter so that the top 10% or so of stick movement wasn';t dead space.
One circlip short of a quadcopter.
 1 lobe short of an antenna.

barneyg

Quote from: teslahed on Sunday,August 18, 2013, 19:17:00
Ah that explains things, thanks

What radio system are you using to provide these values? I imagine you';ll get more throttle resolution by doing this which might lead to smoother control and a more precise hover point - which sounds good.

Quote
And if I';m reading the forums right they would suggest that you shouldn';t actually be calibrating SimonK ESC';s at all otherwise these values will be over ridden.  In theory there should be no need to.  Trouble is once you';ve done it the only way to undo it is to clear the EEPROM or reflash with the Save EEPROM fuse configured to not save the EEPROM during reflashing ... Or use avrdude and a Turnigy USB Linker since they can';t talk to the fuses and you can force an EEPROM clear no matter what the fuses say :)


That sounds a little strange to me. Why would i want my simonK ESCs to default to 1060 to 1860 when my radio does 1000 to 2000? I would be losing resolution if i used the defaults and i would need to adjust the travel on my transmitter so that the top 10% or so of stick movement wasn';t dead space.



I';m just using a a 9xr ... My understanding of it is that the signal that is sent to the ESC is not what your TX/RX combo outputs but what the FC outputs that is important when you are actually flying the thing :) ... you need to configure EXT_MOTOR_RANGE in config.h in MultiWii too so I';m not sure what effect the MIN/MAXTHROTTLE defines will actually have that said you do still leave MINCOMMAND, MINTHROTTLE and MAXTHROTTLE at the "normal" values which doesn';t seem right to me, I';d have thought MINTHROTTLE should be 18, but there doesn';t seem to be any other information to the contrary to be found in the MultiWii forums.   

If I';m right then calibrating your ESC directly from your TX/RX and then using multiwii with the SimonK suggested values of 1064 and 1860 would mean you are loosing a bit of top an bottom of your throttle range when you are actually controlling them through MultiWii since your TX value of 1000 would result in an FC value of 1064 ... running the calibration build of the sketch would mean your ESC';s would line up perfectly with whatever is in your config.h which I guess is why everyone says calibrate your ESC';s ... if you configured MINTHROTTLE to 1060 and MAXTHROTTLE to 1860 there would be no need :)