Commit Graph

46 Commits

Author SHA1 Message Date
EmanuelFeru 72e6b30033 UART with sideboards works + major refactoring
► the mainboard can now send and receive Serial data from the sideboards
► heavy refactored the `main.c`. It was becoming too large to manage... Therefore, `util.c` and `util.h` was created
► added new functionality for `VARIANT_HOVERCAR` and variants with `CONTROL_ADC` in general:
- ADC limits auto-calibration mode (long press of the power button) - calibration will not be lost at power-off
- Max Current and Max Speed adjustment mode (long press followed by a short press of the power button) - calibration will not be lost at power-off
- added one sideboard functionality:
         - LEDs are used to display battery level,  Motor Enable, Errors, Reverse driving, Braking.
         - Photo sensors are used as push buttons: One for changing Control Mode, One for Activating/Deactivating the Field Weakening on the fly
2020-03-01 10:00:26 +01:00
EmanuelFeru 52e920c5ee Merge branch 'master' of https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC 2020-02-16 21:58:25 +01:00
EmanuelFeru 872d86f021 Added Keil project
Project can now be built and flashed with Keil uVision as well.
2020-02-16 21:58:15 +01:00
EmanuelFeru f1cb07dad2 Update README.md 2020-02-10 09:52:49 +01:00
EmanuelFeru 9e943feb8e Update README.md 2020-02-08 08:55:11 +01:00
EmanuelFeru b96ecf09e5
Update README.md 2020-02-07 18:25:57 +01:00
EmanuelFeru 4382ec3128
Update README.md 2020-02-07 18:15:18 +01:00
EmanuelFeru 70c385e4a1
Update README.md 2020-02-07 17:27:23 +01:00
EmanuelFeru a57b600230 Minor changes for PR #18
- updated sligtly the order of defines and corrected defines for some variants in config.h
- fixed checksum data type in Arduino example (Issue #19)
2020-01-29 21:20:04 +01:00
kai e1aa42bad0 space removal 2020-01-18 01:15:45 +01:00
kai 04fc584f0a renamed USART3 to USART because you can also use USART2 not only USART3 2020-01-18 01:08:47 +01:00
kai cd01b73451 corrected nunchuck to nunchuk 2020-01-18 01:05:06 +01:00
EmanuelFeru d2c846cda9 Updated IBUS variant
- separated the implementation from USART implementation for more clarity
- fixed warnings
- minor visual updates
2020-01-08 19:16:34 +01:00
kai c49bbdeacd all for travis 2020-01-05 14:28:02 +01:00
kai 7f01b16b63 link to repo file 2020-01-05 13:10:41 +01:00
kai f35d11041c VARIANT changes 2020-01-05 13:08:18 +01:00
kai ec2f6a1eb6 - removed default / fallback variant; you are forced to define the variant of your choice now or build will stop with an error
- added condition in config.h to either take setting from platform.ini or config.h
- homogenized default_envs naming; all variants now have VARIANT_ as prefix
- added nunchuck variant in platform.ini and config.h
- added PPM variant in platform.ini and config.h
- README: added jan's nunchuck breakout board repo
2020-01-04 00:09:57 +01:00
EmanuelFeru 641fd0bd76
Added HOVERCAR movie link 2019-12-31 13:43:37 +01:00
EmanuelFeru b4b23bbe9b Implemented HOVERCAR variant
Major:
- created HOVERCAR variant (selectable via platformio.ini) for driving via 2 pedals: Brake (on cmd1) and Throttle (on cmd2)
- implemented "Double tapping" on Brake pedal to engage Reverse driving
- implemented that Brake pedal stops the vehicle but does not go to Reverse, to prevend unintended Reverse driving
- implemented ADC Protection when GND and Vcc wire are disconnected. The functionality can be enabled/disabled via #define ADC_PROTECT_ENA
- updated error handling: in case of major error the motors will be disabled for improved safety

Minor:
- fixed bug on low-pass filter for not reaching exact "0" value
- calibrated the ADC Battery voltage reading
- other minor visual updates
2019-12-31 13:35:01 +01:00
EmanuelFeru ed31ac07a5
Update README.md 2019-12-12 23:52:07 +01:00
EmanuelFeru 22d52795dc
Update README.md 2019-12-04 20:51:06 +01:00
EmanuelFeru 6e4405c19c
Update README.md 2019-12-01 18:19:59 +01:00
EmanuelFeru 1841257078
Update README.md 2019-11-30 11:32:24 +01:00
EmanuelFeru 6c8b7f001d Added Sinusoidal Control Type
Sinusoidal Control Type is now available is this branch. To select it go in config.h and change CTRL_TYP_SEL to 1. By default FOC control type is selcted.
Note: SPEED and TORQUE modes are not available for Sinusoidal control type.
2019-11-30 11:30:12 +01:00
EmanuelFeru 99f07cc174
Update README.md 2019-10-21 20:17:03 +02:00
EmanuelFeru cc7fdda3a5
Update README.md 2019-10-21 18:02:00 +02:00
EmanuelFeru 598305d8c5
Update README.md 2019-10-21 08:30:21 +02:00
EmanuelFeru 722c620c74
Update README.md 2019-10-20 20:19:39 +02:00
EmanuelFeru 78d03ca7eb
Update README.md 2019-10-20 20:08:22 +02:00
EmanuelFeru d18e27c234
Update README.md 2019-10-07 10:56:13 +02:00
EmanuelFeru 5d3bcb1ee3
Update README.md 2019-10-07 10:44:11 +02:00
EmanuelFeru c89299e48a Update README.md 2019-10-06 23:09:28 +02:00
EmanuelFeru b922544ade Update README.md 2019-10-06 23:07:23 +02:00
EmanuelFeru f4772cfb9f Update README.md 2019-10-06 23:06:06 +02:00
EmanuelFeru fb0e9f23f2 Update README.md 2019-10-06 23:02:53 +02:00
EmanuelFeru 7b37d19460 Update README.md 2019-10-06 23:02:19 +02:00
EmanuelFeru a8f8cde79b Update README.md 2019-10-06 22:57:52 +02:00
EmanuelFeru 82a0a579ce Updated ReadMe, Added travis 2019-10-06 22:51:12 +02:00
EmanuelFeru 0527bd770c Added fixed-point low pass filter functions
Preparation of the low pass filter functions. They will be used to replace floating point filters.
2019-10-06 22:43:08 +02:00
EmanuelFeru 437990bfa3 Update README.md 2019-10-06 16:12:35 +02:00
EmanuelFeru 27dfc126cf Update README.md 2019-10-06 16:09:14 +02:00
EmanuelFeru 0e92b15fe8 Update README.md 2019-10-06 16:01:59 +02:00
EmanuelFeru c3cbe6b057 Update README.md 2019-10-06 15:58:22 +02:00
EmanuelFeru 38b518a86f Update README.md 2019-10-06 15:54:24 +02:00
EmanuelFeru a0fe701264 Update README.md 2019-10-06 15:48:26 +02:00
EmanuelFeru 5b0b6fecf2 Initial commit 2019-10-06 15:09:15 +02:00