Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add small microcontroller on the PCB #7

Open
m5evt opened this issue Feb 1, 2021 · 4 comments
Open

Add small microcontroller on the PCB #7

m5evt opened this issue Feb 1, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@m5evt
Copy link
Collaborator

m5evt commented Feb 1, 2021

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 m5evt added the enhancement New feature or request label Feb 1, 2021
@m5evt
Copy link
Collaborator Author

m5evt commented Feb 1, 2021

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
Copy link
Owner

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
Copy link
Collaborator Author

m5evt commented Mar 7, 2021

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
Copy link
Collaborator Author

m5evt commented Oct 27, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants