PopularFX
Home Help Search Login Register
Welcome,Guest. Please login or register.
2024-11-26, 06:44:30
News: Registration with the OUR forum is by admin approval.

Pages: 1 2 3 4 [5]
Author Topic: William ENKI  (Read 9068 times)
Sr. Member
****

Posts: 271
Hi Gyula,

Ah right, yes, you've got a point. I've changed my approach from what I said earlier in the thread.

I'm now working on a circuit to discharge 10 capacitors in sequence, whilst charging them in parallel (when not being discharged).

I put together this infographic to describe what I'm trying to achieve:



Basically, I want to turn on each MOSFET for a very short period of time, roughly equal to about 0.1t (or less) of the capacitor discharge curve. My thinking is that it will take a relatively short time to refill the capacitor from, say, 95% to 99%. The capacitor will yield max voltage and max current (hence max power) for a short period of time.

Best regards,

Lee
   
Sr. Member
****

Posts: 271
I got my 74HC4017 circuit working. The circuit takes the output of the PWM generator as the clock source, and then switches between each output in sequence. You can't see from the photo, but each LED lights up in sequence. Once you go above 100Hz then all of the LEDs appear to be lit, but they're actually being lit sequentially.

I added the LEDs as a visual indicator about what's going on. I am planning to take the signal output from each pin on the 4017 and feed each one into a different MOSFET driver logic input (non-inverted). I'll then feed the inverted PWM signal into the inverted input on the gate driver, and both non-inverted and inverted inputs will be ANDed together and this logical product will be reflected on the output. I'll also feed the non-inverted PWM signal into the clock input on the 4017.



Next up I need to adjust my Arduino code to output both a PWM signal and its inverted output. Thankfully I'm using a library (eFlexPwm) that someone wrote to work with the hardware PWM timers on the NXP IMXRT1062DVJ6 ARM Cortex-M7 CPU. The library makes it super easy to generate PWM waveforms.

I'm using the Teensy 4.1 Arduino board for my project. It's the fastest Arduino board out there right now. The CPU runs at 600MHz.
   
Sr. Member
****

Posts: 271
I've now connected the Teensy 4.1 with the 4017 IC.



I'm generating a PWM signal on submodule 1.3. This submodule has two PWM channels - A & B. Channel A is set to output a PWM signal and channel B is set to output the inverse of channel A. I'm able to configure the PWM settings at runtime through the rudimentary web interface that I put together.



The PWM output from 1.3A is fed into the 4017 clock signal input, so each PWM pulse triggers the 4017 to select the next output in sequence. The PWM output from 1.3B is fed into the gate driver inverted input, and output 1 on the 4017 is fed into the gate driver non-inverted input.

Here's a video of it in action. The blue LEDs light up as each output is selected by the 4017. The incandescent bulb only lights while output 1 is high.

https://youtube.com/shorts/Jb_VccmVMYs

I now need to hook up the remaining 9 MOSFET driver boards and test with more light bulbs.
   
Sr. Member
****

Posts: 271
I've finished the 10 MOSFET driver boards and have hooked them up.



I've been ironing out some wrinkles the past few days. The gate driver signal was being distorted and I finally figured out why - I had stupidly put two small capacitors on the logic input, so the Arduino output was trying to charge them up each cycle but never quite managing it. I was left with a somewhat sawtooth waveform rather than a nice sharp square wave. I desoldered the two caps from each input and it's working as expected now.
   
Pages: 1 2 3 4 [5]
« previous next »


 

Home Help Search Login Register
Theme © PopularFX | Based on PFX Ideas! | Scripts from iScript4u 2024-11-26, 06:44:30