Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 19
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/04 Matthew T. (35)
05/04 Amrit Deshmukh (60)
05/05 Alexandre (32)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Projects
« Previous topic | Next topic »   

Interruptor / my first PIC project

1 2 
Move Thread LAN_403
Sulaiman
Tue Mar 20 2007, 12:27PM Print
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
I have finally decided to join the modern world and I'm building an Interruptor for TC use with a PIC microcontroller.

(Technically it's my second project as I made a led flasher by copying circuit and hex code direct from the internet, without understanding the hex code. It worked so I feel a little more confident to proceed)

I sampled a PIC16LF84A (for the led flasher) and a PIC16F690 for this project
and bought one of those JDM programmers off eBay
I should have got an original PIC programmer from Microchip
the debug facilities would have been worth the extra
too late now - carry on regardless.

The current design is for a 20 char x 2 line lcd display with pushbuttons for;

Ton The on time for gating TC operation in DRSSTC mode etc. to be adjustable from 1 to 999 us
Toff The off time between ON times, 1 to 999 us
PPP Pulses per packet. From 1 to 999 ON/OFF pulses continuously
PRF Packet repetition frequency, how often a packet of pulses is produced, from 0 to 999 Hz

RUN Press and hold to produce output, release to modify variables

MCLR in case of latch-up etc.

So far I have done the (for me) easy part, the electronic board;
here are some photo's


1174392574 162 FT0 Gategen1

1174392574 162 FT0 Gategen2

1174392574 162 FT0 Gategen3


The black connector is for 0V and +5V
The blue connectors are for 0V, RA2 the output, and RA0 and RA1 as yet un-assigned.
The yellow blocks are capacitors (100nF MKT) are part of the switch de-bounce,
since I don't fancy programming de-bounce software yet, and they make convenient locations for labels.

I shall make a second board for 230Vac to +5V regulated, a TC4421 output buffer, and an invertor for the EL backlight.


I haven't even worked out how to get to the assembler in the Microchip MPLAB IDE software yet,
so progress will slow down for a while !
Hopefully updates are to come cheesey

Any suggestions / comments welcome.

How many members have done something similar?

(i.e. who can I call for help ? ) cheesey
Back to top
ShawnLG
Tue Mar 20 2007, 04:14PM
ShawnLG Registered Member #286 Joined: Mon Mar 06 2006, 04:52AM
Location:
Posts: 399
I would put it in a shielded box to protect it from RF, also include RF protection for the input, outputs, and power port if possible.
Back to top
Sulaiman
Tue Mar 20 2007, 04:22PM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
I may do that, but initially I will be running the interruptor far from the TC by using a TC4421 to drive a long 50 Ohm co-axial cable, and maybe I will run the interruptor off a 12V VRLA Battery for good isolation.
This together with the need to continuously press the RUN button,
will hopefully keep me from getting too 'adventurous' near the running coil.
Two-person operation required for close proximity 'testing'

I've considered using fiber-optic coupling but can't be ar5ed.

If I do have problems after that I'll put it in a metal box.

I actually remembered to make allowance for mounting holes with this project!
I often end up with a board layout that results in double-sided-tape for mounting cry

Thanks for the reminder anyway.
Back to top
Bjørn
Tue Mar 20 2007, 04:29PM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
It looks great so far. None of your numbers fit in 8 bits, it would not be a challenge otherwise so that makes sense.

It looks like you have selected a 20 MHz crystal, that will make it possible to get 1 us accuracy without using all the tricks in the book.

I look forward to see the progress.
Back to top
Wolfram
Tue Mar 20 2007, 05:09PM
Wolfram Registered Member #33 Joined: Sat Feb 04 2006, 01:31PM
Location: Norway
Posts: 971
I have been working a bit with something very similar, it was going to use a 2x16 LCD/VFD and some buttons and a rotary encoder for input. This was going to be for SSTC stuff exclusively, I was going to make a DRSSTC version later. On and off time was going to be adjustable between 0.0 and 999.9ms and it would calculate and show the frequency and duty cycle. I managed to finish all of the display handling code, and I had the main timing loop all figured out. It was going to run at 4MHz, 1µS instruction cycles, the main loop was going to be 100 cycles long, and it would take care of reloading counters and checking buttons. As soon as it detected input, it would disable the output, modify the appropriate registers, show the new on/off time, duty cycle and frequency and then go back to the main loop with the new timing. Until I realized a normal 555-based interrupter would do just as fine, and that sparks from running halfwave rectified mains uninterrupted look much nicer anyways.

I'm still considering making one for DRSSTC duty, where close control of the interrupter timing actually matters.

If you need any help with display driving routines or things like that in PIC assembly, PM me.

BTW, I think 1-999ms would be more appropriate for Toff in DRSSTC duty.


Anders M.
Back to top
Sulaiman
Tue Mar 20 2007, 07:32PM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
I may not have clearly explained the proposed timings,
a little diagram;


1174418762 162 FT22246 Gategen4


This is shown for example with PPP = 4 pulses per packet

The idea being to set Ton (e.g. 200us) as large as possible without over-current in the output transistors
Then give a small break (e.g. Toff=100us)
Then have PPP number of these pulses in a 'packet' to grow the streamers (e.g. 4)
And finally to have PRF packets per second (e.g. PRF=100 packets per second)
If PRF=0 then there will be only one packet per press of the RUN button.
Back to top
101111
Tue Mar 20 2007, 08:52PM
101111 Registered Member #575 Joined: Sun Mar 11 2007, 04:00AM
Location: Norway
Posts: 263
I have done something very similar just using a 555 timer, but I have always liked look of fancy LCDs so I’ve like to have the circuit schematic if you don’t mind.

First post! :D
Back to top
Marko
Tue Mar 20 2007, 11:43PM
Marko Registered Member #89 Joined: Thu Feb 09 2006, 02:40PM
Location: Zadar, Croatia
Posts: 3145
Well, great work..

I have one simple reason why I dislike metal shielding boxes: they give me shocks as I'm in proximity of the coil!

If I want shielding, I just use aluminium tape on inside of a palstic box and ground it.
And my current interrupter withstiff layout seems like it doesn't even need it.

Back to top
Sulaiman
Wed Mar 21 2007, 07:52AM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
Waco,
I certainly don't mind sharing the circuit diagram-
assuming I get the software working!

I wouldn't encourage you to follow my design yet as it's untried.

IF I get it working well I'll definately 'publish' the circuit diagram and the software.

Don't hold your breath though!
Back to top
Steve Conner
Wed Mar 21 2007, 12:04PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Looks great, Sulaiman. I have made an interrupter with a PIC before (a PIC16F870 IIRC) but it was for a very specialised application. The Toff had to be pseudo-random, the Ton didn't matter, and the number of pulses per burst had to be adjustable by a trimpot.

So I just wrote code to cover this special case, and never got round to trying a general purpose interrupter algorithm like you're doing. My analog DRSSTC interrupter works fine for me, and it took me less time and effort to design and build than a digital one would have, but I'm happy to help any folks who want to make a digital one.

BTW, for isolation, I did in fact use a TC4422 driving a 50 ohm coax, which drove a pulse transformer at the Tesla coil end.

I used a bare board, but double-sided PTH. I found that the MCLR\ line had to be jumpered solidly to 5V, or the PIC would reset itself mid-burst from time to time. Even with the pull-up resistor, it still picked up enough EMI to reset.
Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.