Commit Graph

71 Commits (f323c1be6333d559cb30a7a18dec2edd6e558d11)

Author SHA1 Message Date
Astro f323c1be63 migrate ad5680 to softspi 2020-05-27 23:16:22 +02:00
Astro ec6aa03dc3 set pwm values as ratio 0..1 2020-05-27 20:38:57 +02:00
Astro 35af543e33 channels: fix/optimize calibrate_dac_value() 2020-05-20 23:09:24 +02:00
Astro e6e150dac3 add Channels::calibrate_dac_value() 2020-05-19 00:15:39 +02:00
Astro 70127491f6 add vref_pin 2020-05-18 22:46:09 +02:00
Astro 3d6e1f18a6 add tec_u_meas 2020-05-18 21:38:13 +02:00
Astro 28a71d34d7 fix tec_i calculation 2020-05-18 21:23:07 +02:00
Astro 0bc0af7487 rename dac_loopback to dac_feedback 2020-05-17 02:18:25 +02:00
Astro ba860e52ac control i_set dac in volts 2020-05-17 01:27:47 +02:00
Astro 38a220ce4e fix tec_i calculation, add units::{Amps, Ohms} 2020-05-17 00:54:37 +02:00
Astro fb5c7a84e9 add units::Volts, use for stm32f4 adc 2020-05-17 00:13:52 +02:00
Astro 7f8dd62a36 add itec_pin 2020-05-16 23:59:31 +02:00
Astro a317eb60fd rename ref_adc to dac_loopback 2020-05-16 19:36:00 +02:00
Astro feae22b277 ad5680: idle low for powersaving 2020-05-16 01:18:14 +02:00
Astro b9d05ff274 channels: add set_dac() 2020-05-13 21:05:07 +02:00
Astro eb9aeb160a add Channels::read_ref_adc() 2020-05-13 00:15:29 +02:00
Astro 3d1740b23b refactor into Channels::poll_adc() 2020-05-13 00:04:55 +02:00
Astro 9466961bd7 main: refactor into Channel/Channels 2020-05-12 23:18:11 +02:00
Astro 6dd6bb2e1e pins: add ref[01] adc 2020-05-12 22:50:39 +02:00
Astro 56c62975c4 main: improve show pid parameters 2020-03-23 23:02:50 +01:00
Astro d203f21caf main: re-enable interrupts
also swap ADC polling and network processing to read the ADC first after
an interrupt.
2020-03-21 00:46:24 +01:00
Astro 15f64358a2 main: fix socket handling 2020-03-21 00:37:24 +01:00
Astro 7fe1d2f761 main: disable ad7172 sync 2020-03-21 00:36:52 +01:00
Astro e7782c9cb3 implement shdn* pins 2020-03-21 00:33:48 +01:00
Astro a102e5fcec main: wait for more tcp send headroom 2020-03-21 00:11:23 +01:00
Astro 10f7020c02 main: fix report padding 2020-03-21 00:11:03 +01:00
Astro 9c3485d05f timer: increase rate to 500 Hz
timestamp precision: 0.002s
2020-03-21 00:07:18 +01:00
Astro 1cba8e56c9 ad7172: add calibrate_offset() 2020-03-21 00:06:09 +01:00
Astro 63cc1d2fe1 main: always do full session reset 2020-03-20 23:20:50 +01:00
Astro 82dba2bb67 ad7172: work on adc setup 2020-03-20 00:45:10 +01:00
Astro 2e72a03b93 steinhart_hart: fix equation 2020-03-19 22:56:14 +01:00
Astro bec7019f3a delint 2020-03-19 22:21:17 +01:00
Astro c00c1bb081 main: connect adc/sh/pid/dac, split out into mod channel_state 2020-03-19 22:11:36 +01:00
Astro a94650e208 main: optimize+doc resets 2020-03-19 22:01:16 +01:00
Astro 163bb38f68 simplify pid, keep last_output 2020-03-19 22:00:22 +01:00
Astro da4aaf4ff6 implement all the tcp commands 2020-03-19 18:34:57 +01:00
Astro 1ad821299b build mods pid + steinhard_hart 2020-03-18 21:51:30 +01:00
Astro 69a4f5a5d2 merge the network code 2020-03-13 23:39:22 +01:00
Astro 09dbb7d495 add ad5680 2020-03-12 21:41:03 +01:00
Astro fed3e767e9 pins: setup dac spi 0,1 2020-03-12 19:25:21 +01:00
Astro 89b0d142ad main: use HSE clock
supposed to lead to more stable pwm
2020-03-12 18:32:07 +01:00
Astro f021ebd6e6 pins: setup PwmPins 2020-03-12 17:26:14 +01:00
Astro ac336b7a26 main: split into mod init_log 2020-03-12 00:50:24 +01:00
Astro c377706e0e ad7172: move setup from main 2020-03-12 00:44:28 +01:00
Astro 95d66438d2 main: use sensible WATCHDOG_INTERVAL 2020-03-11 23:17:34 +01:00
Astro 297e38e1cc main: ignore warnings for now 2020-03-11 23:17:17 +01:00
Astro 99f7f2b548 Pins::setup, replace adc_input with ad7172 2020-03-11 23:16:48 +01:00
Astro 60a9c72bf0 led: remove 2020-03-09 23:58:46 +01:00
Astro 2f50071afa switch to stm32f427, setup eth pins 2020-03-09 00:36:19 +01:00
Astro 72b44b4b22 update dependency stm32f4xx-hal to 0.7 2020-03-09 00:07:56 +01:00