diff --git a/FT24-SLS/FT24-SLS.kicad_sch b/FT24-SLS/FT24-SLS.kicad_sch index fc5e21d..0abd4e4 100644 --- a/FT24-SLS/FT24-SLS.kicad_sch +++ b/FT24-SLS/FT24-SLS.kicad_sch @@ -8043,9 +8043,9 @@ ) (uuid "c6693333-4f12-47eb-9ae1-2c7c2632fa40") ) - (text "<- these are crap\nthe voltage output with the new circuit between V2,V1 is -2.115mV\n\na gain with 1001 could be used -> 100 Ohm resistor for AD623" + (text "<- these are crap\nthe voltage output with the new circuit between V2,V1 is -2.115mV\n\na gain with 1001 could be used -> 100 Ohm resistor for AD623\n\nV_{1}-V_{2} = 6996/1625 * ΔL/L = 4.305231 * ΔL/L\n\nwith X shaped circuit\nV_{1}-V_{2} = 13.2/( 15.12 * L/ΔL +1 )" (exclude_from_sim no) - (at 56.515 221.615 0) + (at 57.785 227.33 0) (effects (font (size 1.27 1.27) diff --git a/Software/Core/Src/adc.c b/Software/Core/Src/adc.c index e164b98..ac98c1c 100644 --- a/Software/Core/Src/adc.c +++ b/Software/Core/Src/adc.c @@ -18,7 +18,7 @@ void adc_init(ADC_HandleTypeDef* hadc){ void adc_loop(ADC_HandleTypeDef* hadc){ HAL_ADC_Start_IT(hadc); - static uint8_t data[8]; + static uint8_t data[4]; ftcan_marshal_unsigned(data, adcRes, 4); ftcan_transmit(id, data, sizeof(data));