On Jul 16, 2009, at 4:45 PM, vmtetwa wrote:
> Hie i'm new to the AVR environment. I'm an engineering student doing
> my final year project, my project is on a wireless transmiter that
> will receive 2 analogue inputs, store the data in memory and then
> transmit the data by GSM to a computer that will then plot the data
> on a graph. i don't know where to start..........can somebody help.
> Which micro-controller is best suited for this job?
Well, at least you start off by admitting its a homework assignment.
Final year of engineering school and you haven't yet learned which end
of the problem to start with? The CPU is the last item you should
select. Can't select a CPU until you have defined everything else that
you know what the CPU has to do.
Lets assume your problem statement and suggested solution is sane, and
start whittling at the details. I would start with, "Why GSM?" Do you
have some sort of requirement for world wide delivery of your data?
Lets say the GSM specification sticks. Now you need to figure out what
GSM radio you will use and how you will pay for its network access.
Perhaps the school project doesn't really need world wide data
delivery but all you really need is to demonstrate your project
communicating to/through a device. I find the Aerocomm (now Laird
Technologies) radios to be awfully handy, small, long range, and
inexpensive. Starting on page 5 of the Mouser catalog:
http://www.mouser.com/catalog/catalogusd/638/5.pdf
through page 7. The toughest question is whether you get a peer-to-
peer model or a client/server model. 900 MHz band may not be legal in
the UK and the 2.4 GHz radios are only client/server so that might be
your answer. When only two radios are involved I don't think it much
matters. Download the user manuals and decide for yourself. I do
recommend purchase of the bundled "Starter Kits" as there is enough
there to make everything work in a few minutes. Then you can take one
side apart to build into your project. The boxed radios do not come
apart.
The Laird/Aerocomm radios interface very similar to OEM GSM modules
via asynchronous serial at TTL/CMOS voltages. The data you send to the
radios will be different, but its the same idea.
Now you can start thinking about your CPU. How much processing do you
need for your data? You've studied the GSM manual and the Laird manual
and selected one or the other, so how much processing do you need to
support your radio?
Mention two analog inputs, how much precision and how often does it
have to be updated? Time to start downloading CPU data sheets to see
if you can get the precision and speed with an on-chip A/D.
Eventually, you'll be ready to make a CPU selection.
I would suggest in the AVR family that you look for something that is
supported by the inexpensive AVR Dragon development board. Sadly, last
time I looked the only solid documentation (and supported CPU list)
for the Dragon was in the built-in help files in AVR Studio. Must
install AVR Studio to access.
Probably would want a CPU with JTAG debug interface as its usually
faster than DebugWire. But make sure if you use an AVR that you select
one with DebugWire or JTAG. These days there is no sane reason not to.
Devices without are not less expensive.
If your project is one that should ship in the millions then there is
no point worrying about a nickel here and there on the CPU as we've
already thrown our budget all to heck in purchasing an off the shelf
OEM radio module.
Once Upon A Time about 5 years ago I was faced with the task of
selecting a CPU that was to be interfaced to a cellphone and installed
under electric power meters. There was a fair amount of pre-existing
conditions that had to be met so I couldn't change the radio
selection. There was a need for two serial interfaces, that or toggle
between radio and other. In the end I selected an ATmega64L as its
price was about $3 in our quantity. As far as I was concerned that was
close enough to free that I wasn't interested in optimizing the
selection. Figured if code bloat necessitated we could jump to the
ATmega128 by just changing the P/N. Later 256's were available and
probably would work in the footprint I used.
A year later when I left the product had been in volume production for
months and object code was just over 14k bytes (of the available 64k).
Last year I found they were pushing the 64k limit due to feature-itis.
--
David Kelly N4HHE, d...@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.
------------------------------------
______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.
(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )