interfisch
b1e6d9e995
flash firmware to both bobbycar escs
2019-12-29 01:08:46 +01:00
interfisch
094cb5ecb3
move bat_cells to defines
2019-12-29 00:36:44 +01:00
interfisch
d62793f9a2
change hoverbrett to voltage mode
2019-12-28 14:19:44 +01:00
interfisch
490234bea3
add comment for current. Tested
2019-12-28 14:03:35 +01:00
interfisch
209f89e727
add hoverbrett define for calibration and control defines
2019-12-28 14:03:02 +01:00
interfisch
a2997d757b
change debug print
2019-12-28 13:08:48 +01:00
EmanuelFeru
72d2aae4d7
Made Variant selection easy via platformio.ini
...
Now it is easy to select between different variant builds via platformio.ini. Currently, 3 variants can be selected:
VARIANT_ADC
VARIANT_USART3
TRANSPOTTER
Note: For any particular needs, you can still change config.h according to your needs.
2019-12-23 12:12:01 +01:00
EmanuelFeru
fdbfe28749
Merge pull request #9 from Mezgrman/transpotter
...
Implemented TranspOtter modifications
2019-12-23 10:13:54 +01:00
EmanuelFeru
814af15adc
Made beep functions available also for other variants
...
Beep function "short" and "long" can be used also for other variants than TRASNPOTTER
2019-12-23 10:11:48 +01:00
Julian Metzler
f253e6e29a
Added second beep with varying pitch on follow distance change
2019-12-22 15:34:32 +01:00
interfisch
b30e350cd1
add current feedback
2019-12-20 22:21:21 +01:00
interfisch
bc6097f89b
fix and shorten feedback send delay
2019-12-20 21:57:41 +01:00
EmanuelFeru
4c5842915d
I prefer that we keep the DEFAULT behavior
...
Take TRASPOTTER as a firmware variant
2019-12-14 14:00:29 +01:00
EmanuelFeru
17be530d29
Update defines.h
2019-12-14 13:57:44 +01:00
EmanuelFeru
2c939cad1c
Update setup.c
2019-12-14 13:57:40 +01:00
EmanuelFeru
0344a9c225
Merge branch 'master' into pr/9
2019-12-14 13:51:37 +01:00
interfisch
7c76c9f839
Merge master into bobbycar for working foc
2019-12-13 22:04:59 +01:00
interfisch
1d9843a26c
set maximum poti speed to 1500
2019-12-13 21:54:21 +01:00
interfisch
b7b0cf4e63
enabled field weakening
2019-12-13 21:54:04 +01:00
interfisch
b948a1b5b6
merge changes from emanuelferu (foc calculation improvement)
2019-12-13 21:03:16 +01:00
EmanuelFeru
ed31ac07a5
Update README.md
2019-12-12 23:52:07 +01:00
EmanuelFeru
eb69c4afee
Merge branch 'master' of https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC
2019-12-12 23:44:39 +01:00
EmanuelFeru
31d42b4a17
Major improvements
...
- reduced FOC computational complexity by up to 20%, from 85% (old) to 65% (new)
- updated Field Weakening by allowing more freedom set-up: field weakening blended in the input fully, partially blended, or fully outside the input range
- major improvemets on current and speed limitations. It allows seemless limitation protection -> very happy with the result
2019-12-12 23:44:33 +01:00
EmanuelFeru
8ae3770708
Updated webview
2019-12-12 23:34:07 +01:00
interfisch
9fb4b7a8d5
finish calibration for front hoverboard pcb
2019-12-11 00:18:17 +01:00
interfisch
794edd5169
calibrate rear (blue) pcb, temp and voltage
2019-12-10 23:44:35 +01:00
interfisch
f302ff8041
change back to HAL_Delay
2019-12-06 22:08:17 +01:00
interfisch
2e28a807ea
implement suggested bugfix for main loop delay (does not work)
2019-12-06 22:07:06 +01:00
EmanuelFeru
22d52795dc
Update README.md
2019-12-04 20:51:06 +01:00
interfisch
ddeb7fbd18
test code for speed and steer inputs
2019-12-03 22:54:15 +01:00
interfisch
3efae76843
more information on debug serial
2019-12-03 22:53:56 +01:00
interfisch
4c16b2ab8e
disable field weakening
2019-12-03 22:53:37 +01:00
interfisch
61b40e9526
merge with checksum fix
2019-12-03 22:31:53 +01:00
interfisch
5de1169cef
change control type and field weakening
2019-12-03 22:21:47 +01:00
interfisch
5a73c8722f
small changes
2019-12-03 22:21:13 +01:00
EmanuelFeru
6e4405c19c
Update README.md
2019-12-01 18:19:59 +01:00
EmanuelFeru
249d93932e
Fixed checksum
...
Fixed a bug when requesting negative speed in the checksum calculation due to data type.
2019-12-01 17:46:48 +01:00
EmanuelFeru
9fdb6d75f5
Fixed checksum
...
Fixed a bug when requesting negative speed in the checksum calculation due to data type.
2019-12-01 17:38:36 +01:00
interfisch
dd78937a45
simple testcode for bluepill with poti and hardware serial1
2019-11-30 21:42:56 +01:00
interfisch
7e670e06d2
changes for independant left and right speed serial control
2019-11-30 21:42:32 +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
420b95e281
Update webview
2019-11-30 11:20:33 +01:00
EmanuelFeru
5d195696a2
Implemented reliable Serial Rx/Tx
...
► Reliable Serial Communication implemented featuring:
- start frame
- checksum
- out-of-sync handling
- timeout and disconnected line detection
► Arduino example code added
► Fixed ConsoleLog Item #5
2019-11-29 17:31:53 +01:00
Julian Metzler
1f1e1c7dd7
Fixed modified prefix in Makefile
2019-11-27 00:11:10 +01:00
Julian Metzler
f98f531f3e
Implemented TranspOtter modifications
2019-11-26 23:58:20 +01:00
EmanuelFeru
9a9eed7d10
Updated current limit
...
The firmware allows now to set higher currents than 15 A/motor.
NOTE: You can change this limit at your own risk. I do not take any responsability if your boards gets damaged.
2019-11-03 12:45:13 +01:00
EmanuelFeru
0fb080ad1b
Updated webview
2019-11-03 12:38:36 +01:00
EmanuelFeru
01a08d5f6d
Fixed ADC calculation
...
Fix done as suggested in Issue #8 .
2019-11-03 09:54:37 +01:00
EmanuelFeru
62873aad57
PI controller update and fixes
...
Major:
• all PI controllers with Back-calculation replaced with PI controllers with Clamping to reduce the number of parameters and simplify calculations
Minor:
• fixed the ADC calibration for potetiometer input when ADCx_MIN > 0
• fixed bug: small shock at initialization when current limit I_MOT_MAX is set very small e.g. 1 A
2019-10-31 22:07:52 +01:00