EFeru / hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)
GNU General Public License v3.0
1.11k stars 926 forks source link

Turn On/Off #42

Closed pav18 closed 4 years ago

pav18 commented 4 years ago

I use two hoverboards in my 4WD project. I control boards via ESP32. Use 2 UARTs. When I push power button at main board (where ESP takes power), the second board also switches on (surprise). BUT when I push button again only main board switches off but second still working. I think that everything could be controlled software. Is it possible to add feature to turn off second board when main board receive command to switch off (hard button)? Is it possible to implement UART switch OFF? Thank you.

yashatan commented 4 years ago

Is it possible to implement UART switch OFF?

I think yes it is. You can call poweroff() function to switch off your board.

Is it possible to add feature to turn off second board when main board receive command to switch off (hard button)?

So you need some adjustment in poweroffPresscheck() function that send to second board command to turn off. Or just simple connect 2 button port of both to ONE button.

EFeru commented 4 years ago

Thanks a lot @yashatan for support.

pav18 commented 4 years ago

Or just simple connect 2 button port of both to ONE button

is it safe?

pav18 commented 4 years ago

Thanks a lot @yashatan for support. @EmanuelFeru is it possible to add turnoff, beep to default UART firmware. Friendly speaking I am not a programmer at all and all this look a little bit complicated for me. I use online compilator for your firmware and like it very much. But it would be nice if you put everything inside the firmware. Best,

yashatan commented 4 years ago

@pav18 do you have telegram or whatsapp, i will help you code it

pav18 commented 4 years ago

@pav18 do you have telegram or whatsapp, i will help you code it

I would appreciate your help.

yashatan commented 4 years ago

Why don't you just type your number? why "nine" "seven"...? And is it Telegram or Whatsapp?

pav18 commented 4 years ago

@yashatan not to let searching machines index it ;) Both and whatsapp and telegram

yashatan commented 4 years ago

ok i have add you

waythe commented 2 years ago

hi @pav18 , have you finished your project and would you mind sharing some experience since I am just having the same trouble with you. I've written my problems in https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/256