Commit Graph

103 Commits

Author SHA1 Message Date
interfisch e8c64bfa95 fix define else 2022-03-28 19:48:44 +02:00
interfisch dc07f8564f update config for hoverbrett 2022-03-27 11:58:06 +02:00
interfisch 83453e21e3 lower battery low voltage warning 2022-02-12 15:11:09 +01:00
interfisch fff665c62f reflash boards 2021-05-30 00:10:09 +02:00
interfisch 96b141c851 default phase advance and start at 500 cmd 2021-05-29 17:23:36 +02:00
interfisch 40e051cb5c higher phase advance 2021-05-29 16:40:32 +02:00
interfisch 40eb4916f9 add comment for phase advance value 2021-05-24 19:14:54 +02:00
interfisch 2ac9534249 lower phase advance and enable temp warning 2021-05-24 18:56:29 +02:00
interfisch 3399becb15 fix wrong calibration change for temperatures 2021-05-24 18:46:54 +02:00
interfisch a74a87ac11 use front pcb temp calib for rear board. enable phase advance 2021-05-24 17:28:27 +02:00
interfisch a4ba5245c6 pull current version from github and reapply own changes 2021-02-26 18:48:49 +01:00
EmanuelFeru a564f368e2 Ascii Debug updates
- added missing pointer to UART2 input user processing
- added comms.c to Makefile
- fixed #134 : uncomment #define AUTO_CALIBRATION_ENA to disable auto-calibration
- small styling adjustments
2021-01-29 19:47:03 +01:00
Candas1 7a6dc017a6 Improvements 2021-01-05 12:40:30 +01:00
EmanuelFeru df86ef44fd Dual-inputs implemented
- implemented dual-inputs functionality
- the dual-inputs combinations mentioned in Readme are now supported
2020-12-20 10:16:31 +01:00
EmanuelFeru 5ca3fa4f85 InputStruct update
- input1, input2 converted to structure
- some functions are re-positioned in util.c
2020-12-13 21:52:29 +01:00
EmanuelFeru c86d9c4f43 Improvements and clean-up
- clean-up printfs
- removed consoleLog function with respective files
- removed Delay when using printf
- renamed speedL, speedR to cmdL, cmdR
- corrected Arduino baud rate
- updated FLASH write pointer cast int16_t to uint16_t
2020-12-10 19:35:13 +01:00
EmanuelFeru d1286e246b Fixed printf - works with default UART settings
- still some clean up to do
2020-12-09 20:35:26 +01:00
EmanuelFeru 31f0f915cf
Merge branch 'master' into master 2020-12-09 18:44:37 +01:00
EmanuelFeru 3fcae4fc8b Baud rate to 115200
- updated baud rate to 115200
- minor updates to match sideboard data
2020-12-07 20:33:22 +01:00
EmanuelFeru 2e43d8a8f6 Update config.h 2020-11-25 20:21:25 +01:00
larsm ad8c2a552a improved VARIANT_ADC documentation in config.h 2020-11-22 00:45:48 +01:00
EmanuelFeru 0c5130c9c3 Fix type 2020-11-19 23:07:56 +01:00
EmanuelFeru 925008467b Minor updates RC
- moved all the RC inputs (PPM, PWM, iBUS) to Right cable
- updated timing to enter torque and speed update from 300ms to 1000ms
2020-11-19 21:51:15 +01:00
EmanuelFeru 44cf0c8f1f update Auto-calibration
- implemented forced potentiometer type
- extended the INPUTx_TYPE to 0:Disabled, 1:Normal Pot, 2:Middle Resting Pot, 3:Auto-detect
2020-11-19 17:49:14 +01:00
EmanuelFeru 44befc480a Input Auto-calibration
- mainly rearangement of function
- updated initialization in the auto-calibration function
- added beep for confirmation of Input protection
2020-11-18 19:16:56 +01:00
Candas1 962f57a85f Improve PPM 2020-11-15 20:04:40 +01:00
Candas1 1ab75e5ff9 Fix auto calibration 2020-11-15 18:09:30 +01:00
Candas1 11ab848103 Current and speed setting for all variants 2020-11-13 22:31:49 +01:00
Candas1 4cc02fddc1 Improved auto-calibration 2020-11-11 21:36:40 +01:00
Candas1 b1169c02b7 Fixes 2020-10-31 21:14:15 +01:00
Candas1 95c912d757
Update config.h 2020-10-29 00:10:52 +01:00
Candas1 df37f6dcc3
Add parameter for ADC deadband 2020-10-27 19:41:47 +01:00
EmanuelFeru 4fbf2549c9 Cruise Control update
- added support for Cruise Control in HOVERCAR variant
- updated the shortBeep function, didn't like the beeping sound :)
2020-10-20 19:54:38 +02:00
EmanuelFeru b76e8ee466 Update BLDC controller
- added possbility to switch the Control mode while motor is spinning. NOT yet checked how motors behaves when swiching is triggered!
- added Cruise Control functionality: activated by button1 to GND (Blue Left or Right cable depending on selection). Functionality NOT yet tested in practice!
- extended Phase current measurements z_selPhaCurMeasABC : {iA,iB} = 0; {iB,iC} = 1; {iA,iC} = 2
- added interface for external motor angle measurement from as sensor, e.g., encoder. The selection can be done via b_angleMeasEna: 0 = Estimated (default), 1 = Measured.
- update the Field weakening Lo and Hi to fully blended.
- minor improvements:
   - Buttons initialization
   - lowered ADC margins in auto-calibration
   - commented out ADC_SAMPLETIME_239CYCLES_5, reported to give some issues when Hall sensor ADC input is used
2020-10-12 22:55:39 +02:00
EmanuelFeru 290ed30765 Fixes Skateboard Variant
- fixed to RIGHT cable
- fixed braking relative to the direction of motion
- adjusted the braking amount to -400
2020-07-20 21:06:39 +02:00
EmanuelFeru 733fd80362 created SKATEBOARD variant 2020-07-20 20:33:42 +02:00
EmanuelFeru f2d86f3b30 Added functionality: Electric Brake, Standstill hold
- For TORQUE mode, by enabling `ELECTRIC_BRAKE_ENABLE` in `config.h`, the freewheeling amount can be adjusted using the `ELECTRIC_BRAKE_MAX` parameter.
- For VOLTAGE and TORQUE mode, the standstill hold functionality can be forced by enabling `STANDSTILL_HOLD_ENABLE` in `config.h`.

Known (minor) issue: There is a small "tick" noise when Stanstill is engaged/disengaged, due to the switching to SPEED mode. To be solved by an improved mode switching strategy in the future.
2020-07-19 11:24:37 +02:00
EmanuelFeru 22984a7fd6 Fixed PPM, PWM timeout
- fixed the general timeout handling: there is no need to disable the MOSFETs timer because it will confuse the BLDC_controller, making him consider the timeout as a false MOSFET defective error.
- renamed `timeout` to `timeoutCnt` for consistency and to ease the search
#61
2020-07-01 19:50:32 +02:00
EmanuelFeru d8b529e063 Added default Debug selection for PPM, PWM 2020-06-26 11:23:48 +02:00
EmanuelFeru 17e127a8b7 PWM/PPM Left/Right, UART update
- created possiblity to use PWM, PPM input also on both LEFT and RIGHT cable (RIGHT cable is 5V tolerant)
- updated UART: disabled the Rx errors to avoid DMA stop and additional need to manage the UART error handler
- added Button support LEFT/RIGHT
2020-06-25 20:17:55 +02:00
EmanuelFeru 5f2eb196af Improved UART error recovery
- In case of an Rx error instead of stopping the complete UART, only the Rx DMA is aborted and restarted.
2020-06-23 19:58:36 +02:00
EmanuelFeru e46dff590f Major UART communication improvement
- the UART communication is improved based on UART Idle line detection interrupt
- an Rx ring buffer is used to manage the UART incoming data
- both Tx and Rx are efficiently handled using DMA

#45 #64 #65

Other:
- minor visual improvements
2020-06-21 23:14:46 +02:00
EmanuelFeru 205c054235 PWM Variant update
- made the 2 channels to operate independently #61
- added defines to enable/disable motors, if one motor is not needed #63
2020-06-13 10:57:54 +02:00
interfisch ba20c044b1 separate ctrl typ sel 2020-06-07 01:33:48 +02:00
EmanuelFeru 558759b2c5
Merge pull request #57 from benjaf/master
PWM Steering fixed
2020-06-02 14:46:07 +02:00
EmanuelFeru 22411e1851 update PWM timeout
- updated the `pwm_timeout` and uncommented `pwm_captured_ch1_value` as discussed with @benjaf
2020-06-02 14:42:14 +02:00
Benjamin 21a8f757d0 PWM Steering fixed 2020-06-02 11:53:59 +02:00
interfisch 3a71408329 change bobbycar back to voltage mode 2020-06-01 16:20:51 +02:00
EmanuelFeru 736f2b9419 Minor updates
- updated ReadMe: added higher resolution mainboard picture, added links with projects, online compiler, Telegram link
- setup.c : fixed the Charger GPIO pin to PULLUP, otherwise the Charger won't be recognized when connected
- config.h : increased the default ADC protection Timeout from 30 to 100 for more robustness.
2020-05-26 22:17:40 +02:00
juodumas 0125bf0dc0 Update config.h current limiting comments 2020-05-03 16:29:40 +03:00