Pulse Motor update with a gate driver and Arduino

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024
  • I had everything up and running great until I decided to remove the 100k ohm resistor that I had going inline to the gate and made it run more smoothly so then I thought I would try to bypass the gate driver to see what the difference would be and turns out by doing so I blew my IGBT so I learned not to do that. Now I have to go buy another one 😔. I have learned quite a bit with this project and burned several different transistors in the process but that's just how things go when you are new to learning circuits and electronics. Definitely a huge learning curve and totally worth it in the end! Thanks for watching!!
    The next update should be with everything together and running may be awhile till the next video due to vacation, and personal time also, other side projects. I have a lot on my mind lately and hopefully many more things to come!

Комментарии • 24

  • @rodriguezfranco3839
    @rodriguezfranco3839 6 месяцев назад +1

    Also if I recall correctly the code had a potentiometer input , since there is not a pot conected , the value could be a random number between some limits I put there , I think that pot was controlling the on-time , I think at lower rpm you could run higher on-times , but at higher rpms the on time should be less to avoid the coils to slow down the magnets . Anyways you are learning a lot that is the most important part , I learned a bunch of knowledge when I build my tesla coil , experimenting is the best way to learn

    • @garretwalenski8215
      @garretwalenski8215  6 месяцев назад +1

      So I just got it going again with a smaller MOSFET and it seems to run good I put the MOSFET in the bread board and used a 10 ohm resistor like you said and it seemed like it ran very smoothly but that potentiometer thing I don't know where to put that unless that going from the hall to pin d6 on Arduino. I imagine I can use any of the digital input to trigger the code on the Arduino right? The MOSFET I was using got hot fast with the small heat sink I was using and it was only running on 12v.

    • @rodriguezfranco3839
      @rodriguezfranco3839 6 месяцев назад

      @@garretwalenski8215 a small mosfet should work fine , but should not be getting hot , probably that is cause of back emf are you using the blocking diode ??(freewheeling diode ) which mosfet are you using?? give me the code so I can look the datasheet.
      I think you might be doing something wrong with the hall sensor the conections should be like this (positive lead of the hall sensor to arduino +5v , negative to GND of the arduino and the signal to the Digital pin I can´t remember which one but it needs to be the specific one that says input for the hall sensor on the code I wrote.
      Also how are you powering the gate driver?

    • @garretwalenski8215
      @garretwalenski8215  6 месяцев назад +1

      @@rodriguezfranco3839 I was power the gate driver from the 5v source from the Arduino board. I noticed with the Arduino turned off it doesn't get as hot and spins faster but when I turn it on it spins slower now. The gate driver can be ran without power apparently. I actually like the way it runs without the Arduino. But I do need to experiment more with it. Here I thought I had it running right 😂. I guess I got to learn even more

    • @rodriguezfranco3839
      @rodriguezfranco3839 6 месяцев назад

      @@garretwalenski8215 I just look at the code , Look the signal from the hall sensor needs to go to D3 of the arduino that is the one defined to recibe the hall signal. the hall should only be connected to the arduino , I guess the hall has 3 pins right , you put the negative to GND , positive to the 5V pin , and signal to D3 , unless you power the arduino the motor should not start working.
      The potentiometer has 3 leads too you need to use like a 10k , a 1k will work too , the middle leg of the potentiometer goes to the arduino A3 , then one of the side legs goes to 5V and the other side leg goes to GND , as you turn the pot to one side or the other the sound of the engine should change

    • @garretwalenski8215
      @garretwalenski8215  6 месяцев назад +1

      I'm still using that bridge rectifier like I was before. But the hall sensor is getting power from the main battery and the output is going to d6 on the Arduino. And that's how I've been running it the whole time

  • @gregstafford2155
    @gregstafford2155 6 месяцев назад +1

    You can turn on the gate using a small NPN transistor if the gate requires 10 volts to fully turn on efficiently. No need for nano Arduino to turn on the gate efficiently

    • @garretwalenski8215
      @garretwalenski8215  6 месяцев назад

      @@gregstafford2155 I may try that see how that works! Any suggestions on what type of npn transistor?

    • @gregstafford2155
      @gregstafford2155 6 месяцев назад +1

      @@garretwalenski8215 a 2n2222 transistor should work fine with most MOSFETs. Just remember to add a resistor at the base and after the collector to switch on the MOSFET gate

  • @rodriguezfranco3839
    @rodriguezfranco3839 6 месяцев назад +1

    Oh brother !! I am glad you made it work , I am a bit confused on how it is running when the arduino is off , I guess when the arduino is off it just runs on the hall sensor without gate driver like was doing before ? .
    But when you plug the arduino you are not unplugging the other sistem so that might be interfering a bit with the gate driver and code performance
    The resistance between the gate driver and your IGBT gate should be around 10ohms , I am not sure where you wore using the 100ohms one but that is too high resistance for a gate driver it would slow down the turn on/off time too much .

    • @garretwalenski8215
      @garretwalenski8215  6 месяцев назад +1

      I actually forgot to take out my resistor from before and no joke I had a 100k resistor from the output to the gate originally and what you saw was with that in there which is why it ran the way it did. But the next day I thought about going directly from the gate driver to the gate with no resistor and it ran much better and sounded like it was running even smoother. But I didn't film any of that unfortunately because I thought now I want to see how it ran before to compare but I didn't think not having a high value resistor going from the hall to the gate would fry the IGBT but it did as soon as I connected it. But I got it to run correctly right before I did that. The vidy you saw was from the night before after I first got it running but I wanted to get something out on it so you knew I was getting somewhere 😂

    • @rodriguezfranco3839
      @rodriguezfranco3839 6 месяцев назад +1

      @@garretwalenski8215 oh yeah , also such a long wire from gate driver to the gate is not a good idea next test try a shorter wire , try to put the gate driver as close to the gate as possible and use a low value resistor like a 10 or 15 ohms . About the hall sensor try connecting it only to the arduino input (the one that says hall sensor in the code) that way it won't work unless you power up the arduino , but the gate would be only driven by the gate driver , also I think I added some potentiometer input on the arduino which would allow you to adjust how long the gate will be open .
      I don't know why the hall sensor killed the igbt , I think it should not but who knows sometimes electronics get unpredictable

  • @kenergy1707
    @kenergy1707 5 месяцев назад +1

    Nice build ! Are you collecting the back spike ?

    • @garretwalenski8215
      @garretwalenski8215  5 месяцев назад

      @@kenergy1707 I was not in that video I haven't gotten that far yet 😞

    • @kenergy1707
      @kenergy1707 5 месяцев назад

      @@garretwalenski8215 you will get there I have lots of videos on it if you need help
      Mosfets work better you should try with 12v first you can get 500v from 12v

    • @kenergy1707
      @kenergy1707 5 месяцев назад +1

      @@garretwalenski8215 it sounds like the freewheel diodes are working against you

    • @garretwalenski8215
      @garretwalenski8215  5 месяцев назад

      @@kenergy1707 why do you think they are?

    • @kenergy1707
      @kenergy1707 5 месяцев назад

      @@garretwalenski8215 sounds like cogging