The aim of this tool is for a variable temperature rechargeable device to heat up a 5v heating element from a Weller battery powered soldering iron to melt, cut through and re-work thermoplastic 3D printed parts.
Essentially i'm very new to all this and have killed two Nano's trying to figure this out by myself and now am after some pointers.
i want to vary the power going to the 5v heating element and thus vary the temperature, this i assume will be done through PWM and an end channel mosfet? (i've got a 2n7000 mosfet, but can aquire different ones if needed)
so far ive simply managed to modify someone else's code and am using a MCP9700 temp sensor to turn a led on when it gets a bit hot. (this will be an internal temp sensor that will inform if too much heat is encroaching into the device.)
any help with how to go about this and how not to destroy my next arduino nano would be very very much appreciated!
You could always just go analog and use a potentiometer, only using the Nano to monitor the temperature and give you a serial readout, if you even need it at all. That way you don't even run the risk of frying anything, unless you accidentally smoke a pot meant for a lower amount of power.
But as far as I know, you seem to have the right idea, using a mosfet and PWM. All I would worry about is making sure you have a separate logic power source and a resistor between the mosfet output and GND on the Nano to avoid current spikes. Wiring is ket in these sorts of setups. That and having at least a basic idea of what your code does.
My advice? Go simple. Start with a baby code, then work your way up to the complex stuff like temp monitoring and such. Secure the basic functions before adding extras. That means get rid of the temperature sensor until you know the hot end works like you want it to.
And also, as I said, power the soldering iron bit and the Nano with different batteries. You will need to implement a common Ground on the Mosfet, but otherwise the wiring is pretty much the same. And make sure on the Nano you are putting volts into the Vin pin, not the 5V pin.
Anyway, I think thats everything helpful I can offer. A picture of the actual circuit might bring a better understanding as to why it won't work properly.
You may want to move/repost this topic in Project Guidance if you want more qualified input. The Product Design section of the forum is more about the design of new, potentially marketable projects and such than it is about help with current ones.