Yonrak

joined 1 year ago
[โ€“] Yonrak 3 points 1 year ago* (last edited 1 year ago)

Not sure I understand this point. Which resistor would you replace with a diode?

Sorry, I think I was talking nonesense (doing this in my head and just woke up ๐Ÿ˜…).

Not sure it'll work with just a P-FET actually. You'll likely need to control the PFET with a NFET, otherwise you still end up with too high a voltage on your control pin when the FET is off due to the gate pullup (unless you can use a fet with a very high Vgs Threshold and then drive it push/pull from the micro, but this isn't really best practice).

The above comment about diodes was to protect the microcontroller pin, but you end up not being able to control the FET doing it that way.

I think either your existing Option 3 or PFET upstream of the divider, switched via an N-FET is the way to go.

[โ€“] Yonrak 4 points 1 year ago* (last edited 1 year ago) (2 children)

Could you do similar to diagram 2, but instead of an N-FET use a P-FET between the battery and first resistor in the potential divider?

~~Add a gate pull up resistor to source to ensure the FET is off by default, have the micro pull the gate down to take a measurement. You'll probably need to add another resistor on the control pin to 0V to limit the voltage there also, but those two can be much much higher values to really limit current. Or use a zener/TVS diode instead of second resistor to clamp the voltage instead of dividing (more robust).~~

Switch it with an NFET

The micro will see 0V or divided/clamped battery voltage on the measurement pin.

[โ€“] Yonrak 5 points 1 year ago* (last edited 1 year ago) (3 children)

If the average person cut out 100% of their carbon emissions for the rest on their life, they'd save, on average, the amount of CO2 that industry creates in ~1 second. Our personal emissions are but a drop in the ocean in the grand scheme. Change is best brought about by voting both metaphocally with our wallets and literally with our ballot papers.

[โ€“] Yonrak 2 points 1 year ago (2 children)

Until you end up like me; spending more time messing with the emulator than playing, just to see how good you can get stuff looking and what other cool stuff they can do.

[โ€“] Yonrak 4 points 1 year ago

To be fair, Elden Rings difficulty slider is the same as any other RPG... going off and doing other stuff for a bit until you're OP for the part giving you trouble.

Also summoning people (or even the seamless coop mod that allows coop all the time everywhere) that's also an effective difficulty slider.

view more: โ€น prev next โ€บ