Playing with Arduino to get PWM signals suitable for driving the MOSFETs in my Muppet 2 project.
Arduino PWM cheat sheet:
https://playground.arduino.cc/Main/TimerPWMCheatsheet

By Julian

Youtuber, shed dweller, solar charge controller aficionado

13 thoughts on “Arduino pwm experiments – muppet 2 project”
  1. Avataaar/Circle Created with python_avatars yanko Zlatanov says:

    You are my HERO ! Thank you so much for this video. Nice work .

  2. Avataaar/Circle Created with python_avatars Jim McPherson says:

    I really like this series. I think you are on to a product that could sell very well. Having insight into the MPPT process and verifying that it's working optimally is not possible on the cheap Chinese units, and your solution also gives far more flexibility for incoming voltages, amps, battery voltage, amps, with the brains staying the same no matter the power electronics… Massive appeal to me, and I'm sure many others.

  3. Avataaar/Circle Created with python_avatars Carlos Eduardo Colpo says:

    could make a multimeter with an arduino

  4. Avataaar/Circle Created with python_avatars Lukas Drobný says:

    please share source code for this example

  5. Avataaar/Circle Created with python_avatars Bipin Chandra says:

    Sir, i have been seeing all ur videos and i would like to do a similar solar project where i use panels to charge batteries and in return i need to buck/boost convert which can give me 12,24 and 48v outputs which can run my wifi ap and network switches only for a few hours, can u recommend if any such charge controller etc is available which can achieve this reliably. i use a inverter as of now but i would like to run the devices directly on DC to avoid any conversion losses due to inverter

  6. Avataaar/Circle Created with python_avatars Super Loops says:

    a video about how to oscilloscope would be amazing. like how to use it and what the buttons and dials do. I kind of know what it does its measuring a voltage and drawing it as a line over time but there must be more to it

  7. Avataaar/Circle Created with python_avatars Hooskworks says:

    You could do that with only two PWM channels driving integrated half-bridge gate drivers that'll generate the complementary drive signal and dead time for you for each half of the bridge. They also tend to have integrated bootstrap power supplies for the high side devices so you down have to worry about the floating switch node and needing an isolated power supply referenced to it.

  8. Avataaar/Circle Created with python_avatars Medical Sailor says:

    would be interesting to see how the outputs go on powerup. possible to have two gates turned on at the same time causing a short?

  9. Avataaar/Circle Created with python_avatars JAMES T. says:

    are you going into production with this muppt? I'd like one if you are. what volts and amps capacity?
    I need a 100v in 12/24 volt out. and about 60a. I wish I could build one of these.

  10. Avataaar/Circle Created with python_avatars mrlithium says:

    Why not just use an inverting input and or a buffer with 7400 series logic ? You can configure dead time with passives.

  11. Avataaar/Circle Created with python_avatars Nikolay Pelov says:

    why don't you look at ECCP of a some PIC. it has all the features built in. You just specify dead time (to avoid top and bottom being on at the same time), set polarities and use the same single PWM. You can use ECCP with 1, 2 or 4 outputs. Also for driving mosfets look for MOSFET drivers like TC1426/TC1427/TC1428. You'll find it's not that easy to drive a mosfet at 30+kHz, especially big one with huge gate charge. Well you probably know that from your solar PWM controller.

  12. Avataaar/Circle Created with python_avatars Cezary Akakios says:

    If you're planning on using N-channel devices for both high and low side switching, what are you planning to do to get around the requirements for the gate drive of the high side? That requires a voltage above the rails, so it usually involves a charge pump. P channel devices are of course inferior to N channel but they are much easier to drive for doing high side switching, so you should really consider using complementary pairs. You can probably find suitable P channel devices for relatively low loads. And then you don't have to worry about inverting the PWM channel.

  13. Avataaar/Circle Created with python_avatars Donald Filbert says:

    Julian !! Where did you find those Potentiometers on the boards? THose are very neat – and seem to be quite rare (after much searching). Love the post !!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.