Author Topic: DRSSTC Driver Logic  (Read 345 times)

Offline Laci

  • High Voltage Technician
  • ***
  • Posts: 152
  • Karma: +2/-0
    • View Profile
DRSSTC Driver Logic
« on: March 10, 2019, 04:40:30 PM »
I start this topic to understand the logic part of the universal DRSSTC drivers.The idea is to build the well known UD1.3 then upgrade it with digital phase lead control and freeweeling current limiter.In addition I'd like to make a bluetooth or ethernet interrupter.

The core of my design is a CY8CKIT-059 prototyping kit.

So far my driver looks similar to the UD1.3,expect one little bug:overcurrent has on direct effect on the output.Basically whatever I do at the CLR pin(13)it doesn't change the output.Only interrupter input at CLK pin(11) changes it,while I thought a logic high at CLR(overcurrent)should immediately turn off the drive at least for the set time constant(100us in my case and in case of the UD2.7).Is my theory right and my schematic wrong?
I think my code has no problems as it's really simple,just starting the DACs,comparators and the interrupt for the time constant.

My driver:



The internal of FliPC,which I made as a 74HC74 equivalent:



...and the UD1.3:

Offline sjsimmo

  • High Voltage Enthusiast
  • *
  • Posts: 32
  • Karma: +3/-0
  • Australia
    • View Profile
Re: DRSSTC Driver Logic
« Reply #1 on: March 11, 2019, 12:59:16 AM »
Hi Laci,  :)

Not sure if this is what's causing your problem, but your FliPC looks like it would update its output whenever the CLK pin is high. Whereas the 74HC74 is edge triggered, meaning that it will only update as the CLK pin changes from a low signal to a high signal. As for CLR signals, a logical LOW on the CLR' pin should cause the flip-flop to output 0 instantaneously (since the PRE/CLR inputs are inverted for both your schematic and the 74HC74).

Generally the OCD should actually disable the driver output on the next ZCS point (the same effect as the interrupter turning off), otherwise the IGBT would have to switch with the full peak current. I think that's what your circuit would do too, if the flip-flops were edge triggered.

Hope this helps,  :)
-sjsimmo
I like my food cooked with lightning.

Offline Mads Barnkob

  • Administrator
  • High Voltage Senior
  • *****
  • Posts: 924
  • Karma: +11/-0
  • Denmark
    • View Profile
    • Kaizer Power Electronics
Re: DRSSTC Driver Logic
« Reply #2 on: March 11, 2019, 09:19:30 AM »
Is there a reason why you did not use a standard D Flip Flop w/ Enable like this? https://www.cypress.com/documentation/component-datasheets/d-flip-flop-wenable

Keep in mind that some Set-Reset function blocks have different priorities, most has Reset prioritized higher than Set.

While looking for this flip-flip, I came across this problem with edge triggered signals that might be a help to you: https://community.cypress.com/message/2120#2120

http://www.kaizerpowerelectronics.dk - Tesla coils, high voltage, pulse power, audio and general electronics

Offline Netzpfuscher

  • High Voltage Enthusiast
  • *
  • Posts: 42
  • Karma: +1/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #3 on: March 11, 2019, 09:35:45 AM »
What's the reason not to use the UD3? The logic is tested and I had no IGBT failures since I use the UD3. With a simple modification to the logic you can add a simple external interrupter, if you want this.

Offline Teravolt

  • High Voltage Experimenter
  • **
  • Posts: 69
  • Karma: +1/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #4 on: March 11, 2019, 05:24:10 PM »
The only purpace of the flip flop is to interupt your on time from the fiber reciever. It will stop the primary current from going higher than your mosfets can handle. the OC LED should show this on the board

Offline Laci

  • High Voltage Technician
  • ***
  • Posts: 152
  • Karma: +2/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #5 on: March 11, 2019, 11:21:24 PM »
Hi Laci,  :)

Not sure if this is what's causing your problem, but your FliPC looks like it would update its output whenever the CLK pin is high. Whereas the 74HC74 is edge triggered, meaning that it will only update as the CLK pin changes from a low signal to a high signal. As for CLR signals, a logical LOW on the CLR' pin should cause the flip-flop to output 0 instantaneously (since the PRE/CLR inputs are inverted for both your schematic and the 74HC74).

Generally the OCD should actually disable the driver output on the next ZCS point (the same effect as the interrupter turning off), otherwise the IGBT would have to switch with the full peak current. I think that's what your circuit would do too, if the flip-flops were edge triggered.

Hope this helps,  :)
-sjsimmo

Thanks,sjsimmo!I'll read a few more times your suggestions and hopefully realise what's wrong with my logic when I'll have some time.


Is there a reason why you did not use a standard D Flip Flop w/ Enable like this? https://www.cypress.com/documentation/component-datasheets/d-flip-flop-wenable

Keep in mind that some Set-Reset function blocks have different priorities, most has Reset prioritized higher than Set.

While looking for this flip-flip, I came across this problem with edge triggered signals that might be a help to you: https://community.cypress.com/message/2120#2120
Thanks,Mads.I saw that D flip flop with enable but I only had a day to work with my design,not much time to understand every component's logic.Also that one has 3 inputs,while a 74HC74 has 4.Do you know about some additional logic to make it the same?


What's the reason not to use the UD3? The logic is tested and I had no IGBT failures since I use the UD3. With a simple modification to the logic you can add a simple external interrupter, if you want this.
Netzpfuscher,I really like the multifunctionality of your driver,but I didn't find the settings and it seemed far too complex to modify it so I gave up and started building a simpler,while also learning in PSoC Creator.I tried to follow the instructions on Steve's spec sheet,however I couldn't find the variables.
If I'm wrong please correct me or tell the settings file location. :)


The only purpace of the flip flop is to interupt your on time from the fiber reciever. It will stop the primary current from going higher than your mosfets can handle. the OC LED should show this on the board
Teravolt,I can hardly understand what you mean.The OCD comparator is connected to the CLR input of the flip flop,so it should have some effect on it.I mean the OC LED does light up when an overcurrent occours so the Q output in case of an overcurrent is always low,right?!

Offline sjsimmo

  • High Voltage Enthusiast
  • *
  • Posts: 32
  • Karma: +3/-0
  • Australia
    • View Profile
Re: DRSSTC Driver Logic
« Reply #6 on: March 12, 2019, 06:35:17 AM »
You could also use the standard D Flip Flop without enable (instead of the D flip flop w/ enable): https://www.cypress.com/documentation/component-datasheets/d-flip-flop
It can be configured to have both PRE and reset (CLR) inputs (see datasheet linked).

Just note that you'll have to add inverters to the PRE and CLR inputs, to make it logically identical to the 74hc74 (which has the PRE and CLR inputs inverted).
« Last Edit: March 12, 2019, 08:54:13 AM by sjsimmo »
I like my food cooked with lightning.

Offline Netzpfuscher

  • High Voltage Enthusiast
  • *
  • Posts: 42
  • Karma: +1/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #7 on: March 12, 2019, 07:00:08 AM »
I think I must write a getting started in the next days^^
The software side of the UD3 is a nearly complete rewrite, the spec sheet from steve is obsolete.

1. Compile
2. Flash
3. Connect micro USB
4. Open putty with the new USB COM-port
5. type help for a list of commands or get for list of parameters
6. set the start freq with "set start_freq 65.6" (in kHz)
7. Configure the CT (windings, OCD, Shunt resistor)
8. save everything with "eeprom save"
9. connect a midi player to the USB Midi port
10. play a midi and type in the pulsewidth "pw 50" (µs)

Offline Laci

  • High Voltage Technician
  • ***
  • Posts: 152
  • Karma: +2/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #8 on: March 13, 2019, 04:51:18 PM »
I think I must write a getting started in the next days^^
The software side of the UD3 is a nearly complete rewrite, the spec sheet from steve is obsolete.

1. Compile
2. Flash
3. Connect micro USB
4. Open putty with the new USB COM-port
5. type help for a list of commands or get for list of parameters
6. set the start freq with "set start_freq 65.6" (in kHz)
7. Configure the CT (windings, OCD, Shunt resistor)
8. save everything with "eeprom save"
9. connect a midi player to the USB Midi port
10. play a midi and type in the pulsewidth "pw 50" (µs)


Could you tell me the settings in putty?I get infinite cycle putting out random characters on serial.

Offline Netzpfuscher

  • High Voltage Enthusiast
  • *
  • Posts: 42
  • Karma: +1/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #9 on: March 13, 2019, 05:11:05 PM »
The settings are not relevant. You can use any baudrate, it is ignored and the communication is at max USB speed.
Make sure you are not connected to the KitProg COM-Port of the Debugger. It only works over the Micro USB at the right side.

Have you checked out the latest version in the git (Mar 11, 2019)?

If you are connected and type "cls" then you should see:


If you type "get" you should see:


https://github.com/Netzpfuscher/UD3/wiki/Commands
« Last Edit: March 13, 2019, 05:17:32 PM by Netzpfuscher »

Offline Laci

  • High Voltage Technician
  • ***
  • Posts: 152
  • Karma: +2/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #10 on: March 13, 2019, 05:22:42 PM »
Thank you,it works!I tried previously to connect it via micro usb,but didn't see the COM changing.  ::)
I'm going to test the driver in a few days and try to include the bluetooth module in your design,so probably some questions incoming. :)

Offline Netzpfuscher

  • High Voltage Enthusiast
  • *
  • Posts: 42
  • Karma: +1/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #11 on: March 13, 2019, 05:33:22 PM »
If it is a Bluetooth to Serial module (Warning the psoc puts out 5V at the UART not 3,3V) you can connect it without modifications.

TX from Bluetooth to Pin 3.4 of the Psoc
RX from Bluetooth to Pin 3.0 of the Psoc

In the configuration set min_enable to 0.

If the Bluetooth Module not supports 2Mbit on Serial, you must change the baudrate in psoc creator.

Change the clock to internal


Set the Baudrate


Delete the clock connection


The schematic for the external circuit. The minimum you need is the CT circuit and the two gatedrives. The Pinout in the Schematic is for the TQFP Version it is not compatible with the dev Kit. Use the pinout from psoc creator!
* Schematic.pdf

« Last Edit: March 13, 2019, 05:40:14 PM by Netzpfuscher »

Offline Laci

  • High Voltage Technician
  • ***
  • Posts: 152
  • Karma: +2/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #12 on: March 17, 2019, 01:54:47 PM »
Thanks to your detailed instructions I managed to make your UD3 bluetooth controlled via a bluetooth - serial android app.The next thing I'd like to do is to make it interrupted from the same bluetooth module.Is this possible?I plan to make an app which can change the settings and work as an interrupter.So far I couldn't connect to my fake HM-10 BLE4.0 module from any simple app I made...


Offline Netzpfuscher

  • High Voltage Enthusiast
  • *
  • Posts: 42
  • Karma: +1/-0
    • View Profile
Re: DRSSTC Driver Logic
« Reply #13 on: March 17, 2019, 04:08:33 PM »
You can use the internal interrupter of the UD3.

"tr start" or "tr stop" start the classic interrupter
"pw xxx" or "pwd xxx" for the on and offtime
"bon xxx" or "boff xxx" for the burst mode

if you want MIDI just send the MIDI notes over the same serial connection.

Or you can use TeslaTerm. It is still in heavy development, but it works.
https://github.com/Netzpfuscher/Teslaterm

to start it install nw.js (https://nwjs.io/) and make a shortcut like this: "C:\nwjs\nw.exe c:\git\teslaterm"

High Voltage Forum

Re: DRSSTC Driver Logic
« Reply #13 on: March 17, 2019, 04:08:33 PM »

 


* Recent Topics and Posts

post Re: GDT Experiments
[Solid state Tesla coils]
Teravolt
March 20, 2019, 11:15:50 PM
post Re: GDT Experiments
[Solid state Tesla coils]
Thunderstruck
March 20, 2019, 09:07:04 PM
post Re: Keep or throw away ?
[Beginners]
Teravolt
March 20, 2019, 05:18:07 PM
post Re: New small SSTC
[Solid state Tesla coils]
Bambinz
March 20, 2019, 03:52:15 PM
post Re: New small SSTC
[Solid state Tesla coils]
Mads Barnkob
March 20, 2019, 01:23:52 PM
post Re: GDT Experiments
[Solid state Tesla coils]
T3sl4co1l
March 20, 2019, 01:18:29 PM
post Re: GDT Experiments
[Solid state Tesla coils]
Mads Barnkob
March 20, 2019, 01:06:24 PM
post Re: cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
March 20, 2019, 01:00:46 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Mads Barnkob
March 20, 2019, 12:41:22 PM
post Re: Keep or throw away ?
[Beginners]
Thunderstruck
March 19, 2019, 10:02:41 PM
post Re: Keep or throw away ?
[Beginners]
Hydron
March 19, 2019, 08:14:33 PM
post Re: Keep or throw away ?
[Beginners]
Teravolt
March 19, 2019, 05:12:03 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
Experimentonomen
March 19, 2019, 01:32:32 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
Mads Barnkob
March 19, 2019, 12:20:34 PM
post Re: Strange gdt waveforms
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
March 19, 2019, 12:15:22 PM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
Mads Barnkob
March 19, 2019, 10:46:50 AM
post Re: Keep or throw away ?
[Beginners]
Thunderstruck
March 19, 2019, 09:11:09 AM
post Re: Keep or throw away ?
[Beginners]
Mads Barnkob
March 19, 2019, 08:24:31 AM
post Re: Keep or throw away ?
[Beginners]
Teravolt
March 19, 2019, 01:51:51 AM
post Re: Keep or throw away ?
[Beginners]
Thunderstruck
March 18, 2019, 09:56:42 PM
post Re: cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
Weston
March 18, 2019, 07:55:52 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
March 18, 2019, 06:11:07 PM
post Re: Strange gdt waveforms
[Dual Resonant Solid State Tesla coils]
Hydron
March 18, 2019, 02:27:35 PM
post Re: cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
Uspring
March 18, 2019, 12:52:35 PM
post Re: Strange gdt waveforms
[Dual Resonant Solid State Tesla coils]
FilipŠebík
March 18, 2019, 12:22:58 PM
post New small SSTC
[Solid state Tesla coils]
Bambinz
March 18, 2019, 11:46:18 AM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
Bambinz
March 18, 2019, 11:29:02 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Mads Barnkob
March 18, 2019, 10:35:04 AM
post Re: Strange gdt waveforms
[Dual Resonant Solid State Tesla coils]
Marty
March 18, 2019, 05:32:43 AM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
Experimentonomen
March 17, 2019, 09:13:47 PM
post Re: DRSSTC Driver Logic
[Dual Resonant Solid State Tesla coils]
Netzpfuscher
March 17, 2019, 04:08:33 PM
post Re: WTB: Large Heatsink with a Baseplate at least 10mm thick
[Sell / Buy / Trade]
Phoenix
March 17, 2019, 02:46:44 PM
post Re: cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
flyglas
March 17, 2019, 02:21:45 PM
post Re: DRSSTC Driver Logic
[Dual Resonant Solid State Tesla coils]
Laci
March 17, 2019, 01:54:47 PM
post Re: WTB: Large Heatsink with a Baseplate at least 10mm thick
[Sell / Buy / Trade]
Mads Barnkob
March 17, 2019, 10:15:16 AM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
FilipŠebík
March 17, 2019, 09:33:50 AM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
Teravolt
March 17, 2019, 05:32:48 AM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
Thunderstruck
March 17, 2019, 02:39:25 AM
post WTB: Large Heatsink with a Baseplate at least 10mm thick
[Sell / Buy / Trade]
Phoenix
March 16, 2019, 10:06:39 PM
post Re: Large Ferrite Core with IGBT-Brick Driver
[Transformer (ferrite core)]
rikkitikkitavi
March 16, 2019, 08:35:51 PM
post Re: cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
Weston
March 16, 2019, 08:04:52 PM
post Re: cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
flyglas
March 16, 2019, 06:44:14 PM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
FilipŠebík
March 16, 2019, 09:57:55 AM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
Thunderstruck
March 16, 2019, 09:40:55 AM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
FilipŠebík
March 16, 2019, 08:57:54 AM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
Thunderstruck
March 16, 2019, 08:46:24 AM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
FilipŠebík
March 16, 2019, 08:27:24 AM
post Re: UD 2.7C Build
[Dual Resonant Solid State Tesla coils]
Thunderstruck
March 16, 2019, 07:35:58 AM
post GDT Experiments
[Solid state Tesla coils]
Thunderstruck
March 16, 2019, 06:32:36 AM
post cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
Weston
March 16, 2019, 06:01:44 AM

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30