Add mounting structure simulation

This commit is contained in:
jaseg 2019-05-19 14:43:58 +09:00
parent beaff00ee9
commit 3cba41f49f
6 changed files with 11478 additions and 2 deletions

View file

@ -5,7 +5,7 @@
void ina226_init() {
/* FIXME plug in final values for I meas backchannel */
uint16_t config = INA226_CONFIG_AVG_128 | INA226_CONFIG_VBUSCT_204u | INA226_CONFIG_VSHCT_1m1 |
uint16_t config = INA226_CONFIG_AVG_1 | INA226_CONFIG_VBUSCT_204u | INA226_CONFIG_VSHCT_4m156 |
INA226_CONFIG_MODE_SHUNT | INA226_CONFIG_MODE_BUS | INA226_CONFIG_MODE_CONT;
ina226_write_reg(INA226_REG_CONFIG, config);

View file

@ -189,7 +189,7 @@ int main(void) {
TIM3->BDTR = TIM_BDTR_MOE;
/* Enable timer */
TIM3->CR1 |= TIM_CR1_CEN;
/* Set f=2.5kHz/T=0.4ms */
/* Set f=1.25kHz/T=0.8ms */
TIM3->ARR = 800-1;
/* Initialize AC protocol state machine in TIM3 ISR with the AC protocol comma */

2091
frame/displacement_plot.svg Normal file

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 66 KiB

File diff suppressed because one or more lines are too long

4301
frame/initial_plot.svg Normal file

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 163 KiB

4377
frame/optimized_plot.svg Normal file

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 164 KiB