Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spinup differs much between normal and reversed motors #103

Closed
WeareGermans opened this issue Nov 4, 2015 · 1 comment
Closed

Spinup differs much between normal and reversed motors #103

WeareGermans opened this issue Nov 4, 2015 · 1 comment

Comments

@WeareGermans
Copy link

Hi,

i am using the Turnigy Plus 40A Motors with RCTimer HP 4215-630kv motors 13,6.5" Props on a Hexacopter.
Due to sync issues of of the right Motor (Nr. 1) while Autotune with Ardupilot with standard BLHeli ESC settings i upgraded all ESCs from 12.2 to 14.2.
The Idea was to play around with the motor timing to find a suitable solution.

As i armed with the new firmware and the old setting (all standard except the different motor directions) i recognized, that now all "normal" (clockwise) rotating motors do not start (or better do not find the sync out of the starting impulse), while the counter rotating motors already run smooth at the same throttle.

If i raise the throttle further they start and sync, too. PPM Min Throttle is 1,148ms and the motors do run at around 1280ms.

Can anybody else confirm this behaviour? Is this a bug?

Flying with this was possible and the sync issue in autotune did not appear with 14,2.

@sskaug
Copy link
Collaborator

sskaug commented Feb 19, 2016

Inactive for a long time, closing for now.

@sskaug sskaug closed this as completed Feb 19, 2016
saidinesh5 added a commit to saidinesh5/BLHeli that referenced this issue Dec 24, 2020
Thanks to https://github.com/RamonMartins/BLHeli_S-Startup-Tones

music_gs4:
	mov	Temp3, bitdump#58 ;length of tone
	mov Temp4, bitdump#29 ;number of delay loop1 cycles (tone frequency)
	mov Temp5, JazzMaverick#2  ;number of delay loop2 cycles (large step?)
	jmp music

music_as4:
	mov	Temp3, bitdump#58
	mov Temp4, bitdump#29
	mov Temp5, JazzMaverick#2
	jmp music

music_f1:
	mov	Temp3, bitdump#222
 								;length
of tone
	mov Temp4, bitdump#110
	mov Temp5, JazzMaverick#2

;one ms ;frequency of tone 1=500, 2=1000, 3=1500
	jmp music

music_f2:
	mov	Temp3, bitdump#132
 								;length
of tone
	mov Temp4, bitdump#43
	mov Temp5, JazzMaverick#3

;one ms ;frequency of tone 1=500, 2=1000, 3=1500
	jmp music

music_f3:
	mov	Temp3, bitdump#132
 								;length
of tone
	mov Temp4, bitdump#29
	mov Temp5, JazzMaverick#2

;one ms ;frequency of tone 1=500, 2=1000, 3=1500
	jmp music

music_f4:
	mov	Temp3, bitdump#88 ;44
	mov Temp4, bitdump#172
	mov Temp5, JazzMaverick#2
	jmp music

music_g4:
	mov	Temp3, bitdump#98 ;49
	mov Temp4, bitdump#110
	mov Temp5, JazzMaverick#2
	jmp music

music_c:
	mov	Temp3, bitdump#65
	mov Temp4, bitdump#182
	mov Temp5, JazzMaverick#1
	jmp music

music_d2:
	mov	Temp3, bitdump#146 ;73
	mov Temp4, bitdump#140
	mov Temp5, JazzMaverick#1
	jmp music

music_ds:
	mov	Temp3, bitdump#78
	mov Temp4, bitdump#121
	mov Temp5, JazzMaverick#1
	jmp music

music_e:
	mov	Temp3, bitdump#82
	mov Temp4, bitdump#103
	mov Temp5, JazzMaverick#1
	jmp music

music_f:
	mov	Temp3, bitdump#87
	mov Temp4, bitdump#86
	mov Temp5, JazzMaverick#1
	jmp music

music_g:
	mov	Temp3, bitdump#196 ;98
	mov Temp4, bitdump#55
	mov Temp5, JazzMaverick#1

music:
	mov A, Temp5
	push ACC

	BcomFET_on

; BcomFET on
	ApwmFET_on

; ApwmFET on
	mov	A, Beep_Strength
	djnz	ACC, $

	ApwmFET_off

; ApwmFET off
	BcomFET_off

; BcomFET off
	pop ACC
	mov Temp5, A
	mov Temp2, A

; Make copy of Temp5 to work with (Temp2)
	mov A, Temp4
	mov Temp6, A
music_O_loop:

; Outer loop
	mov	Temp1, bitdump#23

; Number of times to repeat inner delay loop
music_M_loop:

; Middle loop
	clr	A
 	djnz	ACC, $

; Inner loop (42.7us - 1024 cycles)
	djnz	Temp1, music_M_loop
	djnz	Temp2, music_O_loop

wait_150us:
	mov		A, bitdump#30

;5us wait
	djnz	ACC, $
	djnz	Temp6, wait_150us
	djnz	Temp3, music
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants