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

e-skateboard brakes #133

Open
youbobcat opened this issue Oct 15, 2017 · 3 comments
Open

e-skateboard brakes #133

youbobcat opened this issue Oct 15, 2017 · 3 comments

Comments

@youbobcat
Copy link

Trying to replicated https://endless-sphere.com/forums/viewtopic.php?f=35&t=74880 braking.

currently hacking:

run_reverse:
rcall wait_for_low
nFET_brake_on i_temp1
sync_on
rcall wait_for_high
nFET_brake_off i_temp1
rcall wait_for_low
nFET_brake_on i_temp1
rcall wait_for_high
nFET_brake_off i_temp1
sync_off
rcall wait_for_low
nFET_brake_on i_temp1
rcall wait_for_high
nFET_brake_off i_temp1

.macro nFET_brake_on
	AnFET_on
	BnFET_on
	CnFET_on
.endmacro

.macro nFET_brake_off
	in	@0, AnFET_port
	.if (INIT_PB & ((AnFET_port == PORTB) << AnFET)) | (INIT_PC & ((AnFET_port == PORTC) << AnFET)) | (INIT_PD & ((AnFET_port == PORTD) << AnFET))
	cbr	@0, (1<<AnFET)+(1<<BnFET)+(1<<CnFET)
	.else
	sbr	@0, (1<<AnFET)+(1<<BnFET)+(1<<CnFET)
	.endif
	out	AnFET_port, @0
.endmacro

This is as far as I have gotten any help would be very much appreciated!

@tracernz
Copy link

http://vedder.se/2015/01/vesc-open-source-esc/ might be of interest to you if you haven't seen it.

@youbobcat
Copy link
Author

Thanks I have read about VESC but my aim was to get working a cheap redbrick ESC I own. I have everything but the dynamic throttle controlled brakes working.

@Tomonickb
Copy link

Did you made any progress? I am now dealing with the same thing :(, recently bought RED BRICK 100A and find out that it is braking too hard.

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

3 participants