Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Guitar Tuner Help

Guitar Tuner Help

2004-04-12 by weston54

Jesper Hansen published his schematic and code for a very simple 
guitar tuner using an Atmel 2323 chip and GCC code.   You can find 
it at http://www.myplace.nu/avr/gtuner/index.htm.  And while it was 
a cinch to assemble, I'm having a bit of trouble with the code.  He 
wrote it using an earlier version of AVR-GCC, and it doesn't appear 
to compile in the newest version.  I asked Jesper for some 
assistance, but he did this several years ago, and I'm sure he gets 
way too many emails about it already.  Bottom line, he can't support 
the code.  

Anyway,  here's my question.  I've installed the latest version of 
AVR-GCC using all of the default settings.  I load the C code from 
Jesper's site, and when I attempt to compile it gives me an eror 
saying that a file is missing.  Jesper did suggest that I might have 
to change the name or path of the include files, but they are 
located exactly where suggested by the code.  

As you may have guessed by now, I'm not a C guru, by any stretch of 
the imagination.  Aside from the fact that I can actually spell C, 
and I know some syntax and can build a 'Hello World' program I'm a C 
newbie.   

I was hoping I might convince someone to have a quick look at the 
code and give me an idea what might need to be changed to work with 
the latest version.  I will happily email the code to anyone who 
might be willing to have a peek, or you can see it at the URL, 
http://www.myplace.nu/avr/gtuner/index.htm.  

I really appreciate it.  Thank you so much.  

Mark Weston

Re: Guitar Tuner Help

2004-04-12 by upand_at_them

I got it to compile just fine.

Change your includes:
#include <avr/io.h>
#include <avr/signal.h>

And make sure your makefile has the correct MCU:
# MCU name
MCU = at90s2323

-Mike


--- In AVR-Chat@yahoogroups.com, "weston54" <weston54@y...> wrote:
> Jesper Hansen published his schematic and code for a very simple 
> guitar tuner using an Atmel 2323 chip and GCC code.   You can find 
> it at http://www.myplace.nu/avr/gtuner/index.htm.  And while it was 
> a cinch to assemble, I'm having a bit of trouble with the code.  He 
> wrote it using an earlier version of AVR-GCC, and it doesn't appear 
> to compile in the newest version.  I asked Jesper for some 
> assistance, but he did this several years ago, and I'm sure he gets 
> way too many emails about it already.  Bottom line, he can't 
support 
> the code.  
> 
> Anyway,  here's my question.  I've installed the latest version of 
> AVR-GCC using all of the default settings.  I load the C code from 
> Jesper's site, and when I attempt to compile it gives me an eror 
> saying that a file is missing.  Jesper did suggest that I might 
have 
> to change the name or path of the include files, but they are 
> located exactly where suggested by the code.  
> 
> As you may have guessed by now, I'm not a C guru, by any stretch of 
> the imagination.  Aside from the fact that I can actually spell C, 
> and I know some syntax and can build a 'Hello World' program I'm a 
C 
Show quoted textHide quoted text
> newbie.   
> 
> I was hoping I might convince someone to have a quick look at the 
> code and give me an idea what might need to be changed to work with 
> the latest version.  I will happily email the code to anyone who 
> might be willing to have a peek, or you can see it at the URL, 
> http://www.myplace.nu/avr/gtuner/index.htm.  
> 
> I really appreciate it.  Thank you so much.  
> 
> Mark Weston

Re: Guitar Tuner Help

2004-04-13 by weston54

OK, that'd be where I'm having trouble then, I don't have a 
makefile.  Is there a default makefile that can be created for this?

Mark


--- In AVR-Chat@yahoogroups.com, "upand_at_them" 
<upand_at_them@y...> wrote:
> I got it to compile just fine.
> 
> Change your includes:
> #include <avr/io.h>
> #include <avr/signal.h>
> 
> And make sure your makefile has the correct MCU:
> # MCU name
> MCU = at90s2323
> 
> -Mike
> 
> 
> --- In AVR-Chat@yahoogroups.com, "weston54" <weston54@y...> wrote:
> > Jesper Hansen published his schematic and code for a very simple 
> > guitar tuner using an Atmel 2323 chip and GCC code.   You can 
find 
> > it at http://www.myplace.nu/avr/gtuner/index.htm.  And while it 
was 
> > a cinch to assemble, I'm having a bit of trouble with the code.  
He 
> > wrote it using an earlier version of AVR-GCC, and it doesn't 
appear 
> > to compile in the newest version.  I asked Jesper for some 
> > assistance, but he did this several years ago, and I'm sure he 
gets 
> > way too many emails about it already.  Bottom line, he can't 
> support 
> > the code.  
> > 
> > Anyway,  here's my question.  I've installed the latest version 
of 
> > AVR-GCC using all of the default settings.  I load the C code 
from 
> > Jesper's site, and when I attempt to compile it gives me an eror 
> > saying that a file is missing.  Jesper did suggest that I might 
> have 
> > to change the name or path of the include files, but they are 
> > located exactly where suggested by the code.  
> > 
> > As you may have guessed by now, I'm not a C guru, by any stretch 
of 
> > the imagination.  Aside from the fact that I can actually spell 
C, 
> > and I know some syntax and can build a 'Hello World' program I'm 
a 
> C 
> > newbie.   
> > 
> > I was hoping I might convince someone to have a quick look at 
the 
> > code and give me an idea what might need to be changed to work 
with 
Show quoted textHide quoted text
> > the latest version.  I will happily email the code to anyone who 
> > might be willing to have a peek, or you can see it at the URL, 
> > http://www.myplace.nu/avr/gtuner/index.htm.  
> > 
> > I really appreciate it.  Thank you so much.  
> > 
> > Mark Weston

Re: Guitar Tuner Help

2004-04-13 by upand_at_them

I can send you one when I get home this eveing, but if you downloaded 
WinAVR there are plenty of example makefiles with it.

Mike


--- In AVR-Chat@yahoogroups.com, "weston54" <weston54@y...> wrote:
Show quoted textHide quoted text
> OK, that'd be where I'm having trouble then, I don't have a 
> makefile.  Is there a default makefile that can be created for this?
> 
> Mark

Re: Guitar Tuner Help

2004-04-13 by weston54

I found the MFILE utility and created the appropriate makefile, 
thanks for all your help.

Mark Weston

Re: Guitar Tuner Help

2004-04-15 by fnatmed

--- In AVR-Chat@yahoogroups.com, "weston54" <weston54@y...> wrote:
> Jesper Hansen published his schematic and code for a very simple 
> guitar tuner using an Atmel 2323 chip and GCC code.   You can find 
> it at http://www.myplace.nu/avr/gtuner/index.htm.

Take a look on AVRFreaks.net, in the academy.  I did a version of 
the tuner a while back.

http://www.avrfreaks.net/Freaks/freakshow.php?action=2&projectid=128

Project #128

Dean.

Re: Guitar Tuner Help

2004-04-19 by weston54

Fantastic, just what I was looking for, but I wonder if I could ask 
you one thing.  Could you post your schematic?  I don't need to PCB 
this for a one off, I can just build it on perfboard.  Thank you.  

Mark

Studio 4.09???

2004-04-19 by Bruce Parham

I just downloaded Studio 4.09 from AVRFreaks but, after installation, it claims to be ver 4.08.
So, thinking that AVRFreaks has a problem, I attempted to download it from Atmel but ran into
a login (user name / password) popup. What's up???

Bruce

Re: Guitar Tuner Help

2004-04-20 by fnatmed

--- In AVR-Chat@yahoogroups.com, "weston54" <weston54@y...> wrote:
> Fantastic, just what I was looking for, but I wonder if I could 
ask 
> you one thing.  Could you post your schematic?  I don't need to 
PCB 
> this for a one off, I can just build it on perfboard.  Thank you.  

Everything is in the project zipfile, schematics, pcb layout, 
gerbers if you want to make your own boards, the works.  Have at 
it :)

Dean.

Re: [AVR-Chat] Studio 4.09???

2004-04-20 by John Samperi

At 10:32 AM 19/04/04 -0700, you wrote:
>
>I just downloaded Studio 4.09 from AVRFreaks but, after installation, it
claims to be ver 4.08.
>So, thinking that AVRFreaks has a problem, I attempted to download it from
Atmel but ran into
>a login (user name / password) popup. What's up???

I downloaded mine from Atmel last night and it's V4.09. Not much better it
seems that 4.08 with the ICE200, same bugs as before that no one else
can duplicate :-(( and yet they do not exist with 3.56.

Regards

John Samperi

******************************************************
                        Ampertronics Pty. Ltd.
  11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
         Tel. (02) 9674-6495       Fax (02) 9674-8745
               Email: samperi@ampertronics.com.au
                 Website  http://www.ampertronics.com.au
* Electronic Design   * Technical Services   * Contract Assembly
******************************************************

RE: [AVR-Chat] Studio 4.09???

2004-04-20 by Kathy Quinlan

> -----Original Message-----
> From: John Samperi [mailto:samperi@ampertronics.com.au] 
> Sent: Tuesday, 20 April 2004 1:33 PM
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] Studio 4.09???
> 
> 
> At 10:32 AM 19/04/04 -0700, you wrote:
> >
> >I just downloaded Studio 4.09 from AVRFreaks but, after 
> installation, 
> >it
> claims to be ver 4.08.
> >So, thinking that AVRFreaks has a problem, I attempted to 
> download it 
> >from
> Atmel but ran into
> >a login (user name / password) popup. What's up???
> 
> I downloaded mine from Atmel last night and it's V4.09. Not 
> much better it seems that 4.08 with the ICE200, same bugs as 
> before that no one else can duplicate :-(( and yet they do 
> not exist with 3.56.
> 
> Regards
> 
> John Samperi

I downloaded on Sunday from Atmel, still no UART support in Simulator
:o(

Regards,

Kat.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.655 / Virus Database: 420 - Release Date: 8/04/2004

Re: [AVR-Chat] Studio 4.09???

2004-04-20 by David VanHorn

At 03:32 PM 4/20/2004 +1000, John Samperi wrote:

>At 10:32 AM 19/04/04 -0700, you wrote:
>>
>>I just downloaded Studio 4.09 from AVRFreaks but, after installation, it
>claims to be ver 4.08.
>>So, thinking that AVRFreaks has a problem, I attempted to download it from
>Atmel but ran into
>>a login (user name / password) popup. What's up???
>
>I downloaded mine from Atmel last night and it's V4.09. Not much better it
>seems that 4.08 with the ICE200, same bugs as before that no one else
>can duplicate :-(( and yet they do not exist with 3.56.

We're in emulation purgatory it seems. 

That's our experience on the Jtag and ICE-50, the atmel guys look at us like the car repair guys look at the lady with the funny noise..  The problems happen so frequently that I can't believe they don't see them, but they insist that they can't duplicate the problems. 

We aren't having any trouble duplicating them though..

Re: [AVR-Chat] Studio 4.09???

2004-04-20 by Bruce Parham

Kathy Quinlan wrote:
> 
> I downloaded on Sunday from Atmel, still no UART support in Simulator
> :o(
> 
> Regards,
> 
> Kat.
> 

There does seem to be some support... on some machines. I haven't installed 4.09
yet but, on 4.08 simulation, I've found that UART Tx interrupt and status timing is
simulated on my work machine, a 1.7GHz Dell. When I run the same stuff at home
on my 330 MHz AMD K-6 box, the Tx timing vanishes! I haven't tested this on any other
machines so I don't know if it's a speed, memory or CPU type issue. Curious...

Bruce

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.