I control a load (R2) with PWM from my Arduino Uno, using a IRLB3034PBF-ND MOSFET.
The load (R2) have variable resistance 0.10 - 4.00 ohm.
I would like to be able to measure the resistance with an analog pin of my Arduino.
But I don't have any idea about how to connect a voltage divider without inflict the PWM circuit or the current being to big for the analog pin.
Resistance is determined either by measuring the voltage drop across a device while a known current is passing through it, or measuring the current when a known voltage is applied, or measure both voltage and current.
Measuring voltage is easy, just use a voltage divider and the analog input of the Arduino.
It's not possible to measure the resistance while the MOSFET is off?
Yes, possible, but quite complicated. You would use one of the three methods already outlined, with a circuit that is in addition isolated from the 8.4 V power source.
If load heats up, then the resistance almost certainly changes with temperature.
Yes that's true - but it's just for if a short should occur - amplimit I measure battery voltage and calculate the maximum PWM duty cycle, I think that's safe enough.
But then I need to know the resistance of the coil/load.
It is so clear from the aims of this group of people that they do not understand electrical principles, and that they will ignore advice from those that do.
This is a Darwin award in the making.
Oh, if any of these halfwit subohm vaping nutjobs understood, they would realise that a load of 100mOhm within a stainless steel case&conduction path, most of the energy is being dissipated across anything but the load.
The cells themselves have an internal resistance of around 100mOhms.
Two in series (without any sign of balancing or knowledge thereof) has resistance of 200mOhms, so twice the power is being dissipated within the battery itself!
I agree with you that it's dangerous and accidents is going to happen, and I would never use a mech mod that is totaly unregulated without any safety at all.
And I think it is stupid and ridiculous with all the highest current competitions.
And some people using dangerous ICR batteries or Lipo packs or sub-ohm a lot over the rated battery limits.
I try to do it as safe as possible, but there is still risks.
We also try to inform each other about the risks and how to vape safer.
Well I have said my bit, Legolas and I think I edged on being impolite already.
That is not my intention.
Take note, although IMR is considered safer, it will still suffer thermal runaway, burn and release toxic gases.
I hope that some reading will take heed...
A couple of watt is all you need to vape, this 160watt is analogous to smoking ten foot long potentially explosive cigarettes, then claiming it is for health benefits.