avr programming

Started by suresh4ever_b January 9, 2010
how can i leran the avr programming in application oriented

See my other posting about Smiley's books, Atmel and AVRfreaks websites.

Zack

On Sat, Jan 9, 2010 at 10:41 AM, suresh4ever_b wrote:

> how can i leran the avr programming in application oriented
>


can anyone pls send me a program so that atmega8 micro controller wil take a signal which is o/p of a metal detector circuit as i/p and send a message "METAL HAS BEEN DETECTED " to our mobile through gsm modem when metal is detected by circuit???
The o/p of metal detector circuit is analog...

pls help me in interfacing connections (pin numbers) of metal detector circuit to ATMEGA8???
thank u...
It would help if you provided some info on the metal detector. Is it a
commercially-made unit? If so, is the data sheet available on Internet?

If it's a device you made yourself, what are its specs?

What exactly are you trying to output the data to?

Posts like the one below are useless without the necessary information.

Zack

On Fri, Mar 5, 2010 at 7:47 AM, wrote:

> can anyone pls send me a program so that atmega8 micro controller wil take
> a signal which is o/p of a metal detector circuit as i/p and send a message
> "METAL HAS BEEN DETECTED " to our mobile through gsm modem when metal is
> detected by circuit???
> The o/p of metal detector circuit is analog...
>
> pls help me in interfacing connections (pin numbers) of metal detector
> circuit to ATMEGA8???
> thank u...


Well, pin numbers alone won't help you much. Anyhow, it's a
relatively simple task to accomplish. Don't expect anybody
to do it for free, though.
http://www.limetronic.com

j...@karunya.edu.in wrote:
>
> can anyone pls send me a program so that atmega8 micro controller wil
> take a signal which is o/p of a metal detector circuit as i/p and send
> a message "METAL HAS BEEN DETECTED " to our mobile through gsm modem
> when metal is detected by circuit???
> The o/p of metal detector circuit is analog...
>
> pls help me in interfacing connections (pin numbers) of metal detector
> circuit to ATMEGA8???
> thank u...
thanks fa ua reply sir....
actually i have a metal detector circ-
uit that gives beep sound through a buzzer when metal is detected. now i
want to remove the buzzer and connect the o/p wires to atmega8 controller
instead of buzzer.so where to give the connections i mean
to which pins of atmega8 (pin numbers) ??? i know that according to
program we need to decide the pin numbers but tel me the pin range (i.e; eg:
from pin 14 to pin20)
thank u...please reply..

On Fri, Mar 5, 2010 at 9:19 PM, f...@limetronic.com <
f...@limetronic.com> wrote:

> Well, pin numbers alone won't help you much. Anyhow, it's a
> relatively simple task to accomplish. Don't expect anybody
> to do it for free, though.
> http://www.limetronic.com
>
> j...@karunya.edu.in wrote:
> >
> > can anyone pls send me a program so that atmega8 micro controller wil
> > take a signal which is o/p of a metal detector circuit as i/p and send
> > a message "METAL HAS BEEN DETECTED " to our mobile through gsm modem
> > when metal is detected by circuit???
> > The o/p of metal detector circuit is analog...
> >
> > pls help me in interfacing connections (pin numbers) of metal detector
> > circuit to ATMEGA8???
> > thank u...
> >
> >
>
Hi Joel,

What kind of output does the metal detector produce? Is it a DC voltage that
triggers something to make the sound, such as a Sonalert? Or is it a sine or
square wave of a certain frequency?

If it's the latter, you'll probably need a resistor/capacitor circuit to
smooth it to a DC voltage which can be detected by the AVR pin.

It really doesn't matter which pin you use for input, since you're going to
configure that pin in your program to read it.

Zack

On Sat, Mar 6, 2010 at 9:11 AM, JOEL DEEPAK wrote:

> thanks fa ua reply sir....
> actually i have a metal detector circ-
> uit that gives beep sound through a buzzer when metal is detected. now i
> want to remove the buzzer and connect the o/p wires to atmega8 controller
> instead of buzzer.so where to give the connections i mean
> to which pins of atmega8 (pin numbers) ??? i know that according to
> program we need to decide the pin numbers but tel me the pin range (i.e;
> eg:
> from pin 14 to pin20)
> thank u...please reply..
> On Fri, Mar 5, 2010 at 9:19 PM, f...@limetronic.com<
> f...@limetronic.com > wrote:
>
> > Well, pin numbers alone won't help you much. Anyhow, it's a
> > relatively simple task to accomplish. Don't expect anybody
> > to do it for free, though.
> >
> >
> > http://www.limetronic.com
> >
> >
> >
> > j...@karunya.edu.in wrote:
> > >
> > > can anyone pls send me a program so that atmega8 micro controller wil
> > > take a signal which is o/p of a metal detector circuit as i/p and send
> > > a message "METAL HAS BEEN DETECTED " to our mobile through gsm modem
> > > when metal is detected by circuit???
> > > The o/p of metal detector circuit is analog...
> > >
> > > pls help me in interfacing connections (pin numbers) of metal detector
> > > circuit to ATMEGA8???
> > > thank u...
> > >
> > >
> >
> >
> >
> >
> >
sir,
the o/p of the buzzer is d.c voltage(657 mv) ...so can i directly giv this
to atmega8 controller or should i amplify it?
thank you...

On Sat, Mar 6, 2010 at 11:25 AM, Zack Widup wrote:

> Hi Joel,
>
> What kind of output does the metal detector produce? Is it a DC voltage
> that
> triggers something to make the sound, such as a Sonalert? Or is it a sine
> or
> square wave of a certain frequency?
>
> If it's the latter, you'll probably need a resistor/capacitor circuit to
> smooth it to a DC voltage which can be detected by the AVR pin.
>
> It really doesn't matter which pin you use for input, since you're going to
> configure that pin in your program to read it.
>
> Zack
>
> On Sat, Mar 6, 2010 at 9:11 AM, JOEL DEEPAK > >wrote:
>
> >
> >
> > thanks fa ua reply sir....
> > actually i have a metal detector circ-
> > uit that gives beep sound through a buzzer when metal is detected. now i
> > want to remove the buzzer and connect the o/p wires to atmega8 controller
> > instead of buzzer.so where to give the connections i mean
> > to which pins of atmega8 (pin numbers) ??? i know that according to
> > program we need to decide the pin numbers but tel me the pin range (i.e;
> > eg:
> > from pin 14 to pin20)
> > thank u...please reply..
> >
> >
> > On Fri, Mar 5, 2010 at 9:19 PM, f...@limetronic.com > 40limetronic.com><
> > f...@limetronic.com > wrote:
> >
> > > Well, pin numbers alone won't help you much. Anyhow, it's a
> > > relatively simple task to accomplish. Don't expect anybody
> > > to do it for free, though.
> > >
> > >
> > > http://www.limetronic.com
> > >
> > >
> > >
> > > j...@karunya.edu.in wrote:
> > > >
> > > > can anyone pls send me a program so that atmega8 micro controller wil
> > > > take a signal which is o/p of a metal detector circuit as i/p and
> send
> > > > a message "METAL HAS BEEN DETECTED " to our mobile through gsm modem
> > > > when metal is detected by circuit???
> > > > The o/p of metal detector circuit is analog...
> > > >
> > > > pls help me in interfacing connections (pin numbers) of metal
> detector
> > > > circuit to ATMEGA8???
> > > > thank u...
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
No, that won't work directly. The first thing I always do when I'm going to
use a new part is to study its data sheet. You should have already
downloaded the data sheet from the Atmel website.

In the section on electtival characteristics, you will see the lowest
voltage for a guaranteed "high" state is 0.6 Vcc. Assuming you're using 6
volts, that is 3.0 volts.

0.657 volts is probably enough to drive a simple switching transistor
circuit, though, which could drive the Mega8. Or you could build an op amp
circuit.

Zack

On Sun, Mar 7, 2010 at 2:58 AM, JOEL DEEPAK wrote:

> sir,
> the o/p of the buzzer is d.c voltage(657 mv) ...so can i directly giv this
> to atmega8 controller or should i amplify it?
> thank you...
> On Sat, Mar 6, 2010 at 11:25 AM, Zack Widup >
> wrote:
>
> > Hi Joel,
> >
> > What kind of output does the metal detector produce? Is it a DC voltage
> > that
> > triggers something to make the sound, such as a Sonalert? Or is it a sine
> > or
> > square wave of a certain frequency?
> >
> > If it's the latter, you'll probably need a resistor/capacitor circuit to
> > smooth it to a DC voltage which can be detected by the AVR pin.
> >
> > It really doesn't matter which pin you use for input, since you're going
> to
> > configure that pin in your program to read it.
> >
> > Zack
> >
> > On Sat, Mar 6, 2010 at 9:11 AM, JOEL DEEPAK
> > >wrote:
> >
> > >
> > >
> > > thanks fa ua reply sir....
> > > actually i have a metal detector circ-
> > > uit that gives beep sound through a buzzer when metal is detected. now
> i
> > > want to remove the buzzer and connect the o/p wires to atmega8
> controller
> > > instead of buzzer.so where to give the connections i mean
> > > to which pins of atmega8 (pin numbers) ??? i know that according to
> > > program we need to decide the pin numbers but tel me the pin range
> (i.e;
> > > eg:
> > > from pin 14 to pin20)
> > > thank u...please reply..
> > >
> > >
> > > On Fri, Mar 5, 2010 at 9:19 PM, f...@limetronic.com
> > > 40limetronic.com><
>
> > > f...@limetronic.com > 40limetronic.com>> wrote:
> > >
> > > > Well, pin numbers alone won't help you much. Anyhow, it's a
> > > > relatively simple task to accomplish. Don't expect anybody
> > > > to do it for free, though.
> > > >
> > > >
> > > > http://www.limetronic.com
> > > >
> > > >
> > > >
> > > > j...@karunya.edu.in > 40karunya.edu.in> wrote:
> > > > >
> > > > > can anyone pls send me a program so that atmega8 micro controller
> wil
> > > > > take a signal which is o/p of a metal detector circuit as i/p and
> > send
> > > > > a message "METAL HAS BEEN DETECTED " to our mobile through gsm
> modem
> > > > > when metal is detected by circuit???
> > > > > The o/p of metal detector circuit is analog...
> > > > >
> > > > > pls help me in interfacing connections (pin numbers) of metal
> > detector
> > > > > circuit to ATMEGA8???
> > > > > thank u...
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >