Benjamin Vedder
fa4d1abffa
Changed default shutdown mode on HD75
2021-01-05 22:39:55 +01:00
Jeffrey M. Friesen
6a3dfb8526
Patched bug with gpio AF in uart
2021-01-05 12:30:41 -08:00
Jeffrey M. Friesen
e862f29298
Re-wrote uart driver a bit
2021-01-05 09:39:45 -08:00
Jeffrey M. Friesen
d9f4af9047
Merge remote-tracking branch 'upstream/dev_fw_5_02' into dev_fw_5_02
2021-01-04 12:55:09 -08:00
Benjamin Vedder
8f36f6c8cf
Changed macro to avoid warning, build script update
2020-12-30 04:19:27 +01:00
Jeffrey M. Friesen
52f52cc3f4
some more revisions
2020-12-29 14:19:04 -08:00
Jeffrey M. Friesen
f549090a03
Merge remote-tracking branch 'upstream/dev_fw_5_02' into dev_fw_5_02
2020-12-27 13:56:12 -08:00
Jeffrey M. Friesen
38fd15482e
started adding 60D plus changes
2020-12-27 13:56:07 -08:00
Mitch Lustig
24e190c66c
Merge branch 'dev_fw_5_02' into little_focer
2020-12-25 03:51:01 -08:00
Benjamin Vedder
9b62c13803
Minor hwconf fixes
2020-12-24 14:14:30 +01:00
Benjamin Vedder
6a486846e3
Made 100K NTC temp sensor work for dual motor hardware too
2020-12-24 14:13:08 +01:00
Benjamin Vedder
4d73ba9bc6
Merge pull request #245 from Mitchlol/cfoc2_1.0
...
Add Cheap Focer 2 Hardware
2020-12-24 13:42:20 +01:00
Benjamin Vedder
b499ecee2a
Merge pull request #246 from surfdado/fw_5_02_ntc100k
...
NTC100k Motor Temperature Sensor support
2020-12-24 13:40:29 +01:00
Frank Severinsen
927fd01618
Merge remote-tracking branch 'origin/UXV_SR' into UXV_SR
2020-12-22 00:25:30 +01:00
Frank Severinsen
4212c315a1
minor fixes to SR HW config
2020-12-22 00:25:03 +01:00
Frank Severinsen
5dc57d9b6c
minor changes
2020-12-22 00:24:48 +01:00
Frank Severinsen
5eb935f3ce
WIP, Current status DAC output
2020-12-22 00:24:19 +01:00
Frank Severinsen
99d5df1d78
minor fixes to SR HW config
2020-12-22 00:23:49 +01:00
Frank Severinsen
770b2cabbb
Merge remote-tracking branch 'origin/UXV_SR' into UXV_SR
2020-12-22 00:21:58 +01:00
Dado Mista
e567c460f1
NTC 100K@25C Temperature Sensor support added
...
Some PHUB188 hubs have a 100k instead of 10k temperature sensors, including the first
few batches of Fungineers hubs for balance vehicles.
Signed-off-by: Dado Mista <dadomista@gmail.com>
2020-12-18 09:09:38 -08:00
Mitch Lustig
7e72bda93c
Merge branch 'dev_fw_5_02' into cfoc2_1.0
2020-12-16 02:34:13 -08:00
Mitch Lustig
5b36bc9538
Little bit of cleanup
2020-12-15 22:53:48 -08:00
Mitch Lustig
7458fdae10
Merge branch 'dev_fw_5_02' into little_focer
2020-12-14 23:41:24 -08:00
Mitch Lustig
7b81cfbf5b
Add little focer
2020-12-14 23:40:58 -08:00
Benjamin Vedder
fefb2b7d10
Set PAS pins to UART RX and TX if they are undefined, made PAS config serialization more compact, added PAS to changelog
2020-12-09 19:37:16 +01:00
Mitch Lustig
63b09e98b0
Update current amp gain for hardware v1
2020-12-08 15:04:56 -08:00
Mitch Lustig
21f61c84ed
Merge branch 'dev_fw_5_02' into cfoc2
2020-12-08 15:02:49 -08:00
Jeffrey M. Friesen
4f7be2f569
fixed conflicts
2020-12-06 21:46:47 +01:00
Mitch Lustig
8570b5fa14
Merge branch 'dev_fw_5_02' into cfoc2
2020-12-05 00:22:28 -08:00
Benjamin Vedder
3322c29c19
Added IMU support to 100_250 hw file
2020-11-29 20:25:18 +01:00
Benjamin Vedder
4055449e87
Fixed HW60 DRV pin mapping. See https://github.com/vedderb/bldc/pull/237
2020-11-29 20:05:54 +01:00
Frank Severinsen
a3cc6cc089
minor changes
2020-11-27 19:19:50 +01:00
Frank Severinsen
22e1e30354
WIP, Current status DAC output
2020-11-27 19:19:50 +01:00
Benjamin Vedder
b7b0182856
CAN fixes, renamed HD to HD60, fixed multiturn position control
2020-11-18 14:26:55 +01:00
Mitch Lustig
e8d3e1c819
Merge branch 'dev_fw_5_02' into cfoc2
2020-11-06 09:39:53 -08:00
Benjamin Vedder
9845bb2b52
Increased default f_sw for 75_300 and 100_250
2020-10-22 08:34:29 +02:00
Jeffrey M. Friesen
1a77393ddc
Add proper bootup lockout to stormcore and add dual parallel config option for unity.
2020-10-15 10:01:27 -07:00
Benjamin Vedder
c77f92470b
IO board support, initial bms support, more openloop parameters, removed D current injection, added new HWs
2020-10-09 21:08:48 +02:00
Mitch Lustig
268251fa69
Merge branch 'dev_fw_5_02' into cfoc2
2020-09-18 21:49:33 -07:00
Mitch Lustig
fbe78dfe93
Add CFOC2
2020-09-18 21:47:00 -07:00
Frank Severinsen
5ad4378567
WIP, Current status DAC output
2020-08-18 19:16:13 +02:00
Benjamin Vedder
f560f27871
Merge branch 'master' into dev_fw_5_02
2020-08-13 13:54:16 +02:00
Benjamin Vedder
2078dc1c43
added 140/300 hw and comm_can fix
2020-08-13 13:53:29 +02:00
Jeffrey M. Friesen
74bd23dedc
Prevent power switch from working when stormcore gets too hot. Fix bug in median filter.
2020-08-10 09:28:07 -07:00
Benjamin Vedder
83501fc8dc
Merge pull request #196 from Jfriesen222/dev_fw_5_02
...
Dev fw 5 02
2020-07-29 14:14:09 +02:00
Jeffrey M. Friesen
75f9b1cdd0
removed motor temp offset and fixed bug in 60D header
2020-07-27 10:56:01 -07:00
Benjamin Vedder
a003415c83
Merge pull request #198 from powerdesigns/BBSHD_update
...
bbshd: update hw config
2020-07-24 23:17:32 +02:00
Marcos Chaparro
53fb189366
bbshd: configure built-in BLE
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-07-24 13:14:27 -03:00
Marcos Chaparro
ad2819fdf6
bbshd: update hw config
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-07-21 15:32:30 -03:00
Jeffrey M. Friesen
7e212b58d4
Modified some pins config stuff for stormcore hardware
2020-07-21 09:42:31 -07:00
Frank Severinsen
3acbfffa26
added custom HW file, support for ID pins, and fixed circular include
2020-07-21 10:54:04 +02:00
Benjamin Vedder
fcb7aaa93f
Merge pull request #190 from EsbenFR/BMI160_SPI
...
Bmi160 spi support
2020-07-06 18:22:56 +02:00
Benjamin Vedder
4adc989da7
Fixed blackmagic UICR bug, updated changelog and rebuild script
2020-07-02 12:39:54 +02:00
Benjamin Vedder
3a77060c49
Added HD75 support
2020-07-02 12:37:46 +02:00
Esben Rasmussen
66d9bcac7f
Added BMI160 SPI support
2020-07-02 12:00:12 +02:00
Jeffrey M. Friesen
6d2e0831ac
switch led ordering on gpio
2020-06-08 16:02:44 -07:00
Benjamin Vedder
1857600961
Merge pull request #175 from Mitchlol/LSM6DS3
...
Add support for IMU LSM6DS3
2020-06-03 10:24:09 +02:00
Mitch Lustig
3fef0d6454
Add Unity and 60D LSM6DS3 pin config
2020-06-01 20:17:48 -07:00
Mitch Lustig
b827ad855b
Finish up lsm6ds3
2020-05-29 16:39:03 -07:00
Mitch Lustig
976413887b
Working LSM6DS3 needs lil work but its 3 am and i need to save progress
2020-05-29 03:10:43 -07:00
Maximiliano Cordoba
390f1019ef
Axiom: adds input current sensor capability.
...
use HW_HAS_INPUT_CURRENT_SENSOR in hw_axiom.h to enable it, it is commented by default
Signed-off-by: Maximiliano Cordoba <mcordoba@powerdesigns.ca>
2020-05-16 17:56:08 -03:00
Benjamin Vedder
8b6f0680e4
Added HW60_MK4 support and added 60_MK4 and 75_300_R3 to build script
2020-04-24 20:48:21 +02:00
Benjamin Vedder
9924f333af
Made motor temperature lpf slower, and added median motor temperature lpf to HWs with adc mux
2020-04-18 09:48:25 +02:00
Benjamin Vedder
d305e37c61
Fixed mistake in previous commit
2020-04-17 22:10:28 +02:00
Benjamin Vedder
93c8c80ca8
Added median filter to stormcore motor temperature samples
2020-04-17 22:07:55 +02:00
Jeffrey M. Friesen
acfc93e693
Patched some weird behavior with motor temp on stormcore and added #define for filter constant
...
Was seeing a lot of coupled noise on stormcore with phase currents so I turned up the LPF on the motor temp sensor. I think it might be a good idea to turn up that LPF generally since motor temp is generally slow to change anyways.
Also found a problem in the #define for motor temp 2 in my header file. Fixed it.
2020-04-14 14:05:47 -07:00
Jeffrey M. Friesen
b02a62acde
Merge remote-tracking branch 'upstream/dev_fw_5_00' into dev_fw_5_00
2020-04-09 14:20:23 -07:00
Jeffrey M. Friesen
f9accd76e9
change HW limits
2020-04-09 14:20:12 -07:00
Benjamin Vedder
df0b6dce31
Disable abs max overcurrent fault on unity
2020-04-09 23:16:26 +02:00
Benjamin Vedder
8ebeece3f7
Merge branch 'master' into dev_fw_5_00
2020-04-06 13:09:41 +02:00
Benjamin Vedder
bb254fb11c
Fixed 75/300 R3 hwconf
2020-04-06 13:09:09 +02:00
Benjamin Vedder
2f19819d27
Fixed conflicts with master merge
2020-04-04 22:35:29 +02:00
Benjamin Vedder
76fd7a3917
Added COMM_SET_CAN_MODE and added support for HW75_300_R3
2020-04-04 22:28:41 +02:00
Benjamin Vedder
88d74ae0b6
Added mutex to DRV SPI driver, moved fault stop to thread, smooth current ramping for sensor and flux linkage detection
2020-04-03 20:12:12 +02:00
Jeffrey M. Friesen
f7964e20c2
Few small changes and fixed bug with duals
...
Added ramping to current measurement to avoid steps during current calibration with an un-tuned current controller.
Added terminal command for mapping to internal nrf pins, useful when you want to erase_mass a locked nrf chip and dont want to cycle between a bunch of windows to scan connect etc.
Made fault led on duals blink if motor 2 is faulting.
Added break on inductance measurement if motor faults.
Added placeholder commands for changing name and pin of BLE module.
2020-04-01 17:58:37 -07:00
Benjamin Vedder
6b3bcca4c1
Merge pull request #143 from powerdesigns/BBSHD-tuning
...
More bbshd support
2020-03-29 17:12:21 +02:00
Benjamin Vedder
dd16ce862d
Added HW_DUAL_CONFIG_PARALLEL option
2020-03-29 17:07:31 +02:00
Jeffrey M. Friesen
a1f00d5deb
Merge branch 'dev_fw_5_00' of https://github.com/Jfriesen222/bldc into dev_fw_5_00
2020-03-28 11:22:24 -07:00
Jeffrey M. Friesen
47813b1ab6
One motor Double Current Drive on Dual
2020-03-28 11:21:45 -07:00
Marcos Chaparro
c821710d49
BBSHD: Add DAC support
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-03-26 13:37:11 -03:00
Marcos Chaparro
278f767854
BBSHD: monitor 12V rail
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-03-26 11:04:37 -03:00
Marcos Chaparro
cf017cbcc7
BBSHD: Temp, current sense and deadtime tuning
...
Set temperature sensors coefficients, more current sense sensitivity
and tighter deadtime.
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-03-26 10:59:46 -03:00
Jeffrey M. Friesen
574b347aab
Remove extra s
2020-03-24 19:36:33 -07:00
Jeffrey M. Friesen
5753a1f75e
Merge remote-tracking branch 'upstream/dev_fw_5_00' into dev_fw_5_00
2020-03-21 07:09:04 -07:00
Benjamin Vedder
10b700b74c
Updated observer gain scaling, and implemented CAN shutdown on unity hw config
2020-03-21 01:05:42 +01:00
Jeffrey M. Friesen
1482c97d37
Merge remote-tracking branch 'upstream/dev_fw_5_00' into dev_fw_5_00
2020-03-20 13:52:55 -07:00
Benjamin Vedder
68163a88b6
Some optimizations to make mc_interface timer ISR run faster
2020-03-20 21:48:21 +01:00
Jeffrey M. Friesen
726c4bd171
playing with gamma value tuning an d hw conf cleanup
2020-03-20 10:34:19 -07:00
Jeffrey M. Friesen
7d0c1ce650
Shutdown timeout for unity and tabs for spaces in hw conf
2020-03-17 10:48:34 -07:00
Jeffrey M. Friesen
dceaece8f0
Updated configs for 100s and 60d
2020-03-17 10:18:39 -07:00
Jeffrey M. Friesen
fa1e6c1841
just playing with RGB switch
2020-03-16 20:38:17 -07:00
Jeffrey M. Friesen
36bdbebae3
100D Functioning
...
Modified hw config of 100D to get running.
Increased delay in drv8323s to improve stability of spi bus (was getting erroneous read/write at anything lower)
added custom settings for drv8323s for things like adjustable gate drive currents and shunt amplifier gains. Maybe should move to hw conf and do the motor switch from mc_interface.
2020-03-16 19:33:33 -07:00
Jeffrey M. Friesen
b96a65ef64
Merge remote-tracking branch 'upstream/dev_fw_5_00' into dev_fw_5_00
2020-03-16 14:58:32 -07:00
Jeffrey M. Friesen
06398a45e8
started adding support for stormcore, needs more work
2020-03-16 14:57:55 -07:00
Benjamin Vedder
5219bb36ff
Better thread/isr motor selection
2020-03-16 22:42:44 +01:00
Benjamin Vedder
52e17059e5
Major restructuring for dual motor support, and added unity hw files
2020-03-16 18:32:39 +01:00
Marcos Chaparro
8a76c9aaf4
Axiom: Add resolver build switch
...
For some reason SPI encoder was not set by default in axiom builds.
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-01-20 11:01:21 -03:00
Marcos Chaparro
356f3db20e
Add Break function for instant PWM disable
...
When enabled, the Break (or BRK) is a mechanism that upon a active
level in the TIMx_BRK pin disables asynchronously the PWM output pins,
achieving fast reaction times when an external fault even happens.
See AN4277.
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2020-01-19 15:36:40 -03:00
Marcos Chaparro
08de81e950
Add basic support for Luna BBSHD
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2020-01-19 15:36:40 -03:00
Benjamin Vedder
b002e5d78e
FW 3.66: Many changes, see changelog
2020-01-12 21:25:21 +01:00
Benjamin Vedder
210ec40d74
PTC motor thermistor support, APP_PPM sleep fix
2019-12-22 21:22:07 +01:00
Benjamin Vedder
ceb8b7bf7d
HW60_MK3 support, shutdown fix, added COMM_SET_CURRENT_REL, ramp fix, PPM timeout fix, IRQ prio fix
2019-12-19 16:55:38 +01:00
Benjamin Vedder
78d3cef3ff
Added support for HW60_MK3 and disable shutdown when watchdog runs slowly
2019-12-09 10:57:33 +01:00
Benjamin Vedder
23e61925b6
FW upload compression support, TS5700N8501 support
2019-12-05 19:50:17 +01:00
Marcos Chaparro
61fb33f17e
Fix phase voltage sense gain and add HASS 400-S current sensor
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-10-29 09:54:25 -03:00
Marcos Chaparro
f8279e4583
Axiom: Add FPGA image
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-10-29 09:43:06 -03:00
Marcos Chaparro
9fd6844e36
Axiom: FPGA image compression
...
Reduces the binary blob size from 104kB to 5kB.
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-10-29 09:22:53 -03:00
Benjamin Vedder
dfc3ed2319
Final v3.62
2019-09-27 12:56:49 +02:00
Euan
c875d4f3ee
Add hwconf for A200S V2
...
Adds hwconf files for A200S V2.1 and V2.2
2019-09-15 00:48:20 +01:00
Benjamin Vedder
602db7435b
FW3.59. Many updates, see changelog for details
2019-09-03 20:39:05 +02:00
Michael Albrecht
b4f8cd1a87
Fixed compilation of HW_40 and HW_45
...
ADC_IND_TEMP_MOS was missing for both and has been added
ADC_IND_TEMP_MOTOR has been added for HW_40
2019-07-24 23:11:00 +02:00
Marcos Chaparro
90dee2b31e
Axiom: Individual IGBT temperature monitoring
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-05-09 19:12:54 -03:00
Benjamin Vedder
05b1a9483e
Merge branch 'Axiom-board-support' of https://github.com/powerdesigns/bldc into powerdesigns-Axiom-board-support
2019-05-04 10:44:03 +02:00
Benjamin Vedder
404bbcf64b
Fixed current offset fault bug, added support for multiple IMUs and ICM-20948
2019-05-03 19:55:36 +02:00
Marcos Chaparro
4d93f2fef1
Axiom: configurable current sensor gain
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-27 16:57:35 -03:00
Marcos Chaparro
1d08745376
Axiom control board support
...
Rename paltatech naming to Axiom.
For safety set Axiom default max input voltage to 0.0V so it can not run a
motor without mc_conf being explicitly configured by the user.
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-27 08:21:46 -03:00
Benjamin Vedder
8313b32c0c
Some fixes on PR
2019-04-26 12:02:57 +02:00
Benjamin Vedder
1e4078a713
Merge pull request #88 from paltatech/current-sensor-fault-detection
...
Detect current sensor failures
2019-04-26 11:25:30 +02:00
Benjamin Vedder
0551117351
Some HW cleanup and documentation, fixed DRV8301 fault readout bug, added mpu_read_reg terminal command
2019-04-26 11:07:31 +02:00
Marcos Chaparro
6d758b38f2
Detect current sensor failures
...
2 failure modes added:
* On boot, when calculating DC offsets generate a fault if the offset is beyond
HW_MAX_CURRENT_OFFSET. Fault code reports which sensor is having issues (1, 2 or 3).
Most likely cause is a disconnected sensor, if hw has fault-detecting pullups.
* On runtime, in setups with 3 in-line phase current sensors, checks that the sum
of the currents is below MCCONF_MAX_CURRENT_UNBALANCE, with a configurable low pass
filter. If unbalanced current is high, it means a fault to ground, or a disconnected
sensor (this works at 0 Amp if hw has pullups in the sensor input to detect the
failure).
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-20 09:43:08 -03:00
Benjamin Vedder
8ec5723f89
Merge pull request #82 from paltatech/virtual-motor
...
Add command to connect a virtual motor with configurable parameters
2019-04-14 07:24:23 +02:00
Marcos Chaparro
8c4fc35ca0
Move sin/cos signal pin definitions to hwconf/
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-08 18:59:07 -03:00
Maximiliano Cordoba
4a94d0ec4c
Add command to connect a virtual motor with configurable parameters
...
This commit adds a motor model running within the vesc firmware,and
from the vesc terminal a user or a test script can set the
mechanical load torque, inertia, phase resistance, Lq and Ld phase
inductances (this generic model includes IPM motors), flux linkage
and battery voltage.
Virtual motor parameters set at the command line should match with
vesc configuration, for example phase resistance, inductance and
flux linkage should match and have the correct observer gain.
Observer works with the virtual motor, with some hiccups during
startup
For solid results its better to use sensored mode. If vesc is
configured to use an SPI encoder the virtual motor phase angle
will be injected as an encoder angle readout.
For safety PWM outputs are disabled during simulation.
Signed-off-by: Maximiliano Cordoba <mcordoba@powerdesigns.ca>
2019-04-06 10:36:00 -03:00
Marcos Chaparro
b155d5219a
Basic SinCos encoder support
...
Reads sine and cosine on ADC_IND_EXT and ADC_IND_EXT2, usually
used for ACCEL and REGEN inputs. Provides offset and gain
compensation and is implemented using floating point math.
Note it includes the full mc_interface.h into encoder.c only
to access the ADC readings, and no filtering is performed on
the signals.
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-01 08:35:22 -03:00
Marcos Chaparro
3ab585cb9a
Force high current measuments when using big powerstages
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-03-28 20:33:21 -03:00
Marcos Chaparro
b2311b9eca
Extend support to older PowerDesigns RevB boards
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-03-25 18:02:26 -03:00
Benjamin Vedder
39bb8a6b09
FW 3.53: Limit foc_current_filter_const range, 1Mbit/de NRF speed, lower detect f_sw for resistance, no temp_comp by default
2019-03-20 22:46:36 +01:00
Benjamin Vedder
65298263b6
75/300 R2 support, terminal sync cmd, IMU support, option to disable permanent UART, collected timer functions in one place
2019-03-10 14:57:42 +01:00
Benjamin Vedder
35c1c72ab4
Commands restructuring for thread safety, 75/300 vreg fix, fixed relative current commands
2019-03-04 19:23:38 +01:00
Benjamin Vedder
01e72eb555
Autogenerated config parsing with signatures, fixed previous PRs
2019-03-01 21:36:58 +01:00
Marcos Chaparro
723abcb09f
Remove ST DAC library and use the DAC by direct register access
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-02-19 11:40:49 -03:00
Marcos Chaparro
b344e873b6
Remove duplicated flux linkage detection function
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-02-19 10:55:40 -03:00
Marcos Chaparro
32cf05629d
Resolve merge conficts with major 2019 release
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-02-18 20:25:52 -03:00
Benjamin Vedder
123bb00ab4
Major 2019 update
2019-02-18 19:30:19 +01:00
Marcos Chaparro
4ac69232d9
Configure deadtime by just defining it in nanoseconds. Firmware will calculate the required DTG register value.
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-01-31 00:51:35 -03:00
Marcos Chaparro
9652231edb
Allow to run PWM at frequencies multiples FOC loop to support applications with PWM running at 100+kHz.
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-01-30 00:33:56 -03:00
Marcos Chaparro
43dbe80de5
Fix DAC init assertion
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-01-28 02:21:47 -03:00
Marcos Chaparro
69bdc73536
Put a safe limit on ADC ISR frequency to avoid kernel panics. Currently ADC ISR duration is around 26usec, it can not be executed at more than 38kHz
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-01-26 02:36:12 -03:00
Marcos Chaparro
834056a9e5
Use ice40UP5K FPGA bitstream length
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2019-01-18 19:02:18 -03:00
Marcos Chaparro
95d8f70f87
Define on build-time some basic limits for this hardware
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2019-01-10 18:22:47 -03:00
Marcos Chaparro
34bacefe99
Configure Brown Out Reset to keep mcu under reset until VDD reaches 2.7V. Configure Programmable Voltage Detector to interrupt and log a fault when mcu VDD drops below 2.9V.
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2019-01-08 11:36:42 -03:00
Marcos Chaparro
8152d61760
New flux linkage measurement based on open loop FOC to spin up the motor. Removes all calls to BLDC mode to reach the requested erpm
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2019-01-05 19:24:42 -03:00
Marcos Chaparro
89e6022698
Gate driver supply voltage monitoring
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2018-12-12 20:03:12 -03:00
Marcos Chaparro
e284d1ae5e
Compensate for line-to-line measurement in FOC
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2018-12-12 18:41:10 -03:00
Marcos Chaparro
400d9be3ed
Add FPGA configuration on boot
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2018-12-12 17:56:21 -03:00
Marcos Chaparro
0827837e5f
Fix disabling wrong ADC channels when DAC is enabled. Added ADC channel descriptions
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2018-12-12 12:43:49 -03:00
Marcos Chaparro
525cbfd160
Generate 12MHz clock for FPGA
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2018-12-12 12:37:50 -03:00
Marcos Chaparro
54ba37b098
Update transfer functions for voltage and current measurements
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2018-12-12 12:10:41 -03:00
Marcos Chaparro
bfe1f0dedb
Add DAC support
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2018-12-12 12:04:43 -03:00
Marcos Chaparro
4027a4ef8e
Fault LED pin change
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2018-12-12 11:41:24 -03:00