• 12 Posts
  • 30 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle



  • That would require an H bridge with two Pmosfets on the high side indeed. And a way to prevent the gate voltage from going below -20V on those.

    The PWM frequency on arduino nano is also a bit slow for controlling a motor so a 555 circuit needs to be added then. I have a large amount of XL4016 modules that work well though.

    Thanks for the advice!


  • Well, the whole setup is a semi automatic greenhouse. It has a 12 channel peristaltic pump, grow lights, heater and a plant shaker for pollination. I’m attempting to grow indoor tomatoes and chili’s. Not weed although I have learned a lot from weed growers.

    The system runs on a 24V power supply so that is easily accessible. The 18V comes from an LM7818 and the motor speed will be regulated with a buck converter module.





  • Right, sorry about that. I made the simulation on my phone with the Proto app.

    I figured the push pull part is good practice with mosfets. It’s partially the learning experience and if the motor stalls it could draw several amps.

    I won’t be doing PWM, just on and off so maybe just the optocoupler is good enough.

    I’d have to order dedicated gate drivers and have a lot of 547 and 557 transistors in stock at home.






  • If the house burns down because of that your insurer will likely be difficult about it. You should also check the policy of your insurer, perhaps the cause of the fire is irrelevant.

    As for fire safety. I always put my electronics in non flammable environments and make sure that everything is fused with either a current or thermal fuse.

    Anything with high current consumption goes inside a metal box so that even if it does catch fire it can’t take anything with it. 3D printed enclosures are fine if you mount those inside a metal bucket for example.









  • Tooting my own horn. I have something to add. With the UV “Mechanic” solder mask that gets sold on Chinese webshops pre-heating the solder mask makes a HUGE difference. Apparently it contains some volatile components that interfere with the curing process.

    Heating it to about 80-ish C for a few minutes and optionally letting it cool down causes the laser to almost instantly cure the mask. Any non-exposed mask will be easily washed off with some IPA.





  • That’s good. My switching frequency is a few times per hour.

    I am a little bit concerned that the slow rise/fall time make the MOSFET go outside its operating parameters for a fraction of a second. The resistance gradually changes meaning the mosfet will dissipate more power but also less current will flow.

    So if you switch many times per second the gate capacitance with the resistor acts as a low pass filter reducing the gate voltage.



  • Replying to myself for informational reason. Modifying voltage was more or less successful. Both optocouplers transmit a reference voltage, so both need to be adjusted simultaneously.

    This can be done by changing the value of R19, a 23.2k smd resistor close to the output terminals.

    I’ve attached a 10k pot with a 10k and 6.8k resistor in series and successfully modified the voltage down to 22.5.

    The power supply itself is a piece of crap though. It claims to handle 400W but anything over 150W causes the short circuit protection to activate, never mind overheating at 150W very quickly.