sinara-hw / Thermostat

2-channel temperature controller
5 stars 3 forks source link

ref 2V5 #61

Closed hartytp closed 5 years ago

hartytp commented 5 years ago

This currently looks to be driven by both the 24-bit ADC and the MCP1525T.

AFAICT it would be better to power the microprocessor ref from a 3V3 reference anyway: currently we have separate dividers for the DAC output going to the TEC driver/microprocessor. That will limit the accuracy of the TEC driver calibration. If we used a 3V3 microprocessor reference then we could scrap the divider for the microprocessor...

image

image

hartytp commented 5 years ago

Changing the microprocessor reference will also require changing the resistors used for the TEC current measurement. image

gkasprow commented 5 years ago

The assembly variant makes the MCP1525 DNP so the CPU ADC is driven from the 24bit ADC. We don't have any 3V3 reference. I would have to replace the MCP1525 with a 3V reference. I'm not sure if we gain a lot here. We will add yet another reference voltage that is not related to ADC reference nor DAC reference.

hartytp commented 5 years ago

I'd like to be able to have the same divider on the DAC outputs going to the microprocessor and TEC driver so we don't need to think about tolerances on the dividers.

I'd be happy with:

hartytp commented 5 years ago

@gkasprow do you think we can get v2.0 ready to ship on Monday?

hartytp commented 5 years ago

ping @gkasprow when can we get this sent off?

gkasprow commented 5 years ago

I didn't look here for a while. Next time just write an email. All github issues mails land in dedicated folder. Yes, we can produce it on Monday.

hartytp commented 5 years ago

Great. Can you produce an RC before that so I can sign off on the final changes?

gkasprow commented 5 years ago

the reference input in STM32F4 is not buffered obraz

the easiest is to add opamp buffer (LMV321ILT) that we already use and remove MCP1525 to make space

gkasprow commented 5 years ago

obraz

gkasprow commented 5 years ago

the DAC output would look like this. obraz

The 1k6 at the output isolates DAC from ADC current pulses caused by ADC sampling circuit

hartytp commented 5 years ago

Lgtm