PIC18F2550 "problem"

Discussions related to MegaDrum Hardware

Re: PIC18F2550 "problem"

Postby dmitri » Thu Apr 21, 2011 9:35 am

germtangc wrote:Dmitri, when using Windows XP, megadrum is detected as "USB Audio Device", right?

Right

I have a new problem. I tested MD with two piezos. When tapping a piezo, it takes 2-3 seconds before vu meter returns to zero. Could this be because I use an ATMEGA32L?

Please watch this vid: http://www.youtube.com/watch?v=AIqcaGtt8qY

It could be because of
1. Incorrect fuse settings
2. Too old firmware version.
3. Mismatch between the firmware version and crystal's frequency.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: PIC18F2550 "problem"

Postby germtangc » Thu Apr 21, 2011 10:05 am

It could be because of
1. Incorrect fuse settings
2. Too old firmware version.
3. Mismatch between the firmware version and crystal's frequency.


1. Can you point me to the correct fuse settings for ATMEGA32 at 16MHz?
2. I used the last unencrypted firmware for testing purposes. If all goes well I will get an ATMEGA644.
3. I'm pretty sure I used a 16MHz crystal and the firmware megadrum32_16_32_20100516.hex.


Another thing, I used 1N4937 instead of BAT's.
germtangc
 
Posts: 31
Joined: Fri Feb 18, 2011 10:11 pm

Re: PIC18F2550 "problem"

Postby dmitri » Thu Apr 21, 2011 10:19 am

germtangc wrote:
It could be because of
1. Incorrect fuse settings
2. Too old firmware version.
3. Mismatch between the firmware version and crystal's frequency.


1. Can you point me to the correct fuse settings for ATMEGA32 at 16MHz?
2. I used the last unencrypted firmware for testing purposes. If all goes well I will get an ATMEGA644.
3. I'm pretty sure I used a 16MHz crystal and the firmware megadrum32_16_32_20100516.hex.

viewtopic.php?p=251#p251

Another thing, I used 1N4937 instead of BAT's.

You will definitely have problems.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: PIC18F2550 "problem"

Postby germtangc » Thu Apr 21, 2011 11:27 am

WOW! The fuse settings really solved it. Thanks Dmitri!
germtangc
 
Posts: 31
Joined: Fri Feb 18, 2011 10:11 pm

Re: PIC18F2550 "problem"

Postby germtangc » Thu Apr 21, 2011 11:34 am

Are there similar fuse settings I should be wary about concerning PIC programming?
germtangc
 
Posts: 31
Joined: Fri Feb 18, 2011 10:11 pm

Re: PIC18F2550 "problem"

Postby timekeeper » Fri Apr 22, 2011 10:05 am

germtangc wrote:Are there similar fuse settings I should be wary about concerning PIC programming?


Hi there. From my experience, try to avoid the on board ICSP header. I spent more time trying to program the pic in such a manner than building Megadrum itself... I think it's better to use a dedicated programmer. You can build one yourself (I propose ART2003 for it's simplicity) or build/buy a pickit2 clone. By the way, I like your design! Could you give us the PCB?
Going on means going far. Going far means returning...
timekeeper
 
Posts: 136
Joined: Sun Sep 26, 2010 6:11 pm
Location: Greece

Re: PIC18F2550 "problem"

Postby germtangc » Fri Apr 22, 2011 11:39 am

Sure. But I have to make one correction in the pcb design in eagle pcb first.

After a busted cap, erased track in pcb design, and crystal replacement in my PIC18F2550, I finally got my megadrum to work!
http://www.youtube.com/watch?v=FKQE8z50gb8

Dmitri, it seems to work even with 1N4937. But I have to construct the pads first to be sure. Thanks a lot!
germtangc
 
Posts: 31
Joined: Fri Feb 18, 2011 10:11 pm

Re: PIC18F2550 "problem"

Postby germtangc » Fri Apr 22, 2011 12:00 pm

More pics of my megadrum "router":

Image
Image
Image
Image
Image
Image
germtangc
 
Posts: 31
Joined: Fri Feb 18, 2011 10:11 pm

Re: PIC18F2550 "problem"

Postby Johnfreeth » Fri Apr 22, 2011 5:01 pm

I am sure that 1N4937s are not Schottky diodes, it will still work but you have a good chance of "burning out" your ATMEGA chip

This link gives some details

http://www.edrum.info/forum/index.php?t ... sg3496#new
Johnfreeth
 
Posts: 18
Joined: Tue Feb 23, 2010 5:23 pm
Location: Birmingham UK

Re: PIC18F2550 "problem"

Postby kupooglop » Fri Apr 22, 2011 5:46 pm

1N4937 instead of bat85? That doesn't sound like a good idea at all...
kupooglop
 
Posts: 116
Joined: Wed Aug 25, 2010 10:33 pm

PreviousNext

Return to MegaDrum Hardware

Who is online

Users browsing this forum: No registered users and 86 guests