mathisschmieder / HL2-MRF101

Hermes-Lite2 Power Amplifier/Filter board using MRF-101
25 stars 5 forks source link

Add small microcontroller on the PCB #7

Open m5evt opened 3 years ago

m5evt commented 3 years ago

The HL2 does not have any gateware code to talk to the ADC (to report PA current and PA temperature on the PC), this must be done via the i2c read/write functions in the protocol. These read/writes starve the normal C&C responses from the HL2. A small micro controller on the PCB could handle the ADC measurements and reduce "starving" the HL2 protocol 1 C&C responses.

A small micro controller could sit on the HL2 i2c2 bus and talk to the ADC on a separate i2c bus, within the micro filtering, power calibration tables etc. could be held. Or remove the ADC and use a micro with built in ADC?

m5evt commented 3 years ago

This could also control fans specifically for the PCB. Note, at the moment there is no way to control the HL2 fan output via the protocol. The fan will only be turned on if the HL2 temperature sensor (next to the HL2 5 W PA) goes above a certain value. This micro controller would allow better control of the hl2-mrf101 thermal profile.

mathisschmieder commented 3 years ago

Sounds like a very reasonable idea and we should have the space on the PCB. I'm a fan of STM32, but open to other MCUs. Do you have a preference?

m5evt commented 3 years ago

I've always used the AVRs but I felt like learning something new so I recently ordered an STM32 dev board. I'm going to prototype the idea on a separate PCB then when something is working, it can maybe be transferred to the HL2-MRF101 PCB.

m5evt commented 2 years ago

I ended up building something with an AVR in the end. I've built and tested this:

https://github.com/m5evt/hl2_extpamon

I found that noise pickup was a lot less with the LM35 not connected to the HL2-MRF101 board and instead directly connected to this PCB. I also connected a 1 uF and 70 ohm resistor across OUT and GND on the LM35 (I then used RG174 to take the signal to my PCB.

I don't know if integrating this module on to the HL2-MRF101 PCB will bring back all the noise problems.