Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 32
  • 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

Move Thread LAN_403
Sulaiman
Wed Mar 21 2007, 04:25PM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
I'm hoping that the 100 nF capacitor from 0V to MCLR will stop spurious pickup.
I shall not worry about that yet - lots of learning to do first.

I must admit that using 555s would be MUCH easier,
I'm using this Interruptor design more as a learning exercise than as a needed project
should be useful when/if I finish though.
I have found over the years that I only really learn stuff when I need to apply it,
abstract learning doesn't work well for me, hence this project.

Also with this circuit configuration the project could become a timer, counter, heater controller, power supply regulator, etc.
A pretty general purpose module.
(RA0 and RA1 can be used as digital I/O ar ADC input channels)

P.S. just today worked out how to enter assembly code in MPLAB IDE.
Back to top
Steve Ward
Wed Mar 21 2007, 05:19PM
Steve Ward Registered Member #146 Joined: Sun Feb 12 2006, 04:21AM
Location: Austin Tx
Posts: 1055
Ive been designing an AVR based interrupter. So far ive had my TC running regular pulse mode, burst mode, single shot mode (with extra long pulse lengths to 5mS), the A major scale, some songs i programmed in, and in the near future will take input from musical instruments and generate the necessary pulses to my DRSSTC (just finished the preliminary code for that, now i need to test it). Im also planning on a MIDI interface too.

If you want your micro to function, you *must* isolate it from the TC, i used a fiber optic cable for my tests so far. A fully enclosed aluminum box would probably be mandatory too. Battery power is always a safe bet for complete isolation from the noisy TC world.

Ive got many other fun things planned for my controller, but i cant give them all away right now wink. The amount of control you can achieve from these things is really great, and i hope to exploit that as much as possible and perhaps make my tesla coil into a musical instrument. This would be just about impossible with discrete components.

Luckily for me, the AVR code can be written in C. I tried assembler for awhile and stopped because it was so tedious. Im not sure, but maybe therer is a C compiler out there for your PIC? Might make development go much faster.

EDIT: Just thought i should mention some of the nice things about using AVRs (other than tons of free support that exists online). All AVRs have PWM outputs, basically just an 8 or 16 bit timer/counter, with an output compare match. You set some number (either 8 or 16 bit) and the pin is toggled/set/reset (its programmable) when the counter hits that value. Im running at only 4MHz, and this allows for .25uS step sizes, which is very fine control over the timing parameters. Also, to keep my interrupter feeling sorta analog, i use potentiometers to control various parameters. The pots just feed into some ADCs, and i use the digital result to set variables. I much prefer this to using push buttons to program in the timings.
Back to top
Sulaiman
Wed Mar 21 2007, 07:12PM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
I hadn't considered using potentiometers with ADC for control - sounds very convenient
I have spare analog input pins so I may try later.
In fact the more I think about it the better it seems.

Most PICs also have PWM, ADC etc.
I'm using a 20 MHz crystal so I should get an adequate 5 instructions per microsecond.

I learnt assembler in 1976 using 8048 then 6800,
(I stopped programming in 1979 so I'm a LITTLE rusty) cheesey
I've never learnt C so I'll leave that for later too,
even though C is available in the Microchip development suite.

Thanks all for the input

Just got to get busy with the programming now!

Further ideas and suggestions (no rude ones please) always appreciated.
Back to top

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.