Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 57
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Download (31)
ScottH (37)


Next birthdays
11/03 Electroguy (94)
11/04 nitromarsjipan (2024)
11/04 mb (31)
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 :: General Science and Electronics
« Previous topic | Next topic »   

programmable ICs

1 2 
Move Thread LAN_403
IamSmooth
Mon Jan 25 2010, 08:09PM Print
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
I am not sure I will do this, but I would like to know what it involves. Right now I am using a PLL to lock onto the resonant frequency for an induction heater. However, it still requires that I have the PLL in the correct range, and it still requires slight tweeking during use.

If I change the coil, or put different metals in the coil, the resonant frequency can be so far off that it requires readjustment of the PLL. It would be nice if I had a chip running a simple software routine that started pulsing the driver above resonance and then decreased the frequency. As the frequency is changed it could look at inverter current, or I could XOR the inverter voltage and current looking for the region where current goes from lagging to leading.

My initial questions are:
what chip could be programmed to do this?
what auxillary equipment do I need to program the chip?
what language is being used for the programming?

Back to top
Nicko
Mon Jan 25 2010, 08:55PM
Nicko Registered Member #1334 Joined: Tue Feb 19 2008, 04:37PM
Location: Nr. London, UK
Posts: 615
Small PIC or AVR would do the job simply - there are some really tiny ones that are dead cheap but quite tricky to program (cos they're small). Best to go for something in a DIP8 package and socket it (avoid SMDs). You need a few I/O pins and probably some analogue input (D/A converter). Most have PWM & Timers, even in the 8-pin versions...

Programming is either in assembler, C or BASIC-type languages. The very very small uPs don;t have a stack, which makes the use of high-level languages tricky, so sometimes its worth paying the extra buck or two just so you can use BASIC or C (or whatever). Arduinos etc. would be very much overkill for this.

Programming depends on the uP - some can be done via a simple serial/parallel port adapter - if you have a few quid, buy a decent programmer - some are very cheap.

Olimex do a whole bunch of development boards etc. for the experimenter - I think that Sparkfun might be agents in the USA. There are a zillion boards available anyway...

Advantage of using a BASIC-type language is that its simple to learn and often will hide the unpleasantness of the hardware from you - if you've not messed with uPs much, frigging around with A/D converters etc. can be a pain.

Have a look at Link2 - the author is a good guy and I know lots of people who use his stuff with great success.

If you consider the AVR route (which are my favourites), there is a really useful forum at Link2 .

Both PICs and AVRs have free IDEs from the manufacturer, and if you want to do your own thing in an HLL, you can use WinAVR for the AVR (an AVR port of the GNU C tool chain) and similar for the PICs. As I don;t use PICs any more, someone else will no doubt leap in here.

One thing I would say is that uPs and BIG CURRENTS do NOT mix well. Many will lose the plot completely unless very well shielded (and that means everything the has anything to do with the uP shielded).

HTH
Back to top
IamSmooth
Wed Jan 27 2010, 06:41AM
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
Would ATMEL be a good company to get some PLCs from?

Back to top
Bjørn
Wed Jan 27 2010, 07:05AM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Use something someone else uses and make sure they will reply to your questions then you can't go far wrong. It will save you a lot of time.

It does not really matter what you use as long as you don't try to use a chip that is not really powerful enough for the job. Atmel will be fine, they got the full range from simple 8 bit to powerful 32 bit microcontrollers that can do just about anything.
Back to top
IamSmooth
Wed Jan 27 2010, 07:38AM
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
I take it that you have used their chips?

Back to top
Nicko
Wed Jan 27 2010, 08:42AM
Nicko Registered Member #1334 Joined: Tue Feb 19 2008, 04:37PM
Location: Nr. London, UK
Posts: 615
IamSmooth wrote ...

Would ATMEL be a good company to get some PLCs from?

Atmel don't do PLCs - they do micro processors and some support chips - PLCs are build on uPs, typically 8051 or similar based with added output relays and opto-isolated analogue & digital inputs. They tend to use a deterministic flow-chart type language that is interpreted by the underlying uP software and which abstracts the physical implementation of the hardware. So, instead of worrying about bits in an I/O register, you might have pseudo-code such as "if analog-input-1 > 3.5V then close relay-2" (sort of!).

Join the AVR Freaks forum and ask there - lots of helpful people.
Back to top
Bjørn
Thu Jan 28 2010, 06:37AM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
A programmable logic controller (PLC) is an expensive device generally used when you make good money from what you make. You are most likely looking for a microcontroller that is much more stripped down and can cost down to almost nothing.

I have used most types of microprocessors and microcontrollers one time or another. When I am experimenting with something I use 32 bit ARM chips because it does not make sense to waste a lot of time just to save $10 a year. If I make something that is supposed to be used for a long time and an ARM chip seems too much I use a PIC for historical reasons (I got a PIC development kit for cheap).

In the chat room you will find users of most microcontrollers.
Back to top
IamSmooth
Thu Jan 28 2010, 06:58AM
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
Bjorn,

I'll go to the chat room next, but if I don't have a programmable controller, how do I program the chip?

My goal is for a one-time project so I don't want to spend a fortune. However, i would like it to work well, whatever route I choose.

Back to top
Bjørn
Thu Jan 28 2010, 07:37AM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Today many chips come programmed with boot loaders that makes it possible to connect them more or less directly to a PC over RS-232 or USB. In some cases it is like that from the manufacturer or it can be done by a reseller that will sell those chips for a slightly higher price.

The other option is to build your own programmer that can be a s simple as a few resistors even if a bootloader is generally a more reliable method.
Back to top
Steve Conner
Thu Jan 28 2010, 09:35AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
If you're a uC newbie, you could do worse than to check out the Arduino.
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.