USB

Discussions related to MegaDrum Hardware

USB

Postby efbe » Mon Oct 13, 2008 6:26 pm

Synthex,

First thanks for the great job, the PCB was fun to solder.

Everything work from the first time, but now I suddenly get following message.
(See USB.jpg)

LCD works, Midi led and MIDI out works.

Can I use, when needed, USB as alimentation and MIDI out for signal??
Could it be the PIC 18F2550 ?

Also following question.
Which version of the Firmware shoud I use with the ATMEGA32 16 PU

Megadrum32_16_date
Megadrum32_16_32_date
Megadrum32_20_date
Megadrum32_20_32_date

I don't know for sure, with the 20mHZ cristal..

And what is the correct procedure ??

EFBE
You do not have the required permissions to view the files attached to this post.
efbe
 
Posts: 31
Joined: Sun Aug 03, 2008 1:18 pm

Re: USB

Postby Juze » Tue Oct 14, 2008 12:21 pm

I don't know about that USB-issue, but that's Effin nice build!

-Juze aka Ghroath
Juze
 
Posts: 40
Joined: Sun Feb 03, 2008 5:01 pm
Location: Mikkeli, Finland, Europe

Re: USB

Postby Synthex » Tue Oct 14, 2008 5:00 pm

Very very nice !! :)

efbe wrote:Can I use, when needed, USB as alimentation and MIDI out for signal ?

Yes you can.

efbe wrote:Could it be the PIC 18F2550 ?

It can be a short-circuit around the PIC, or a bad USB cable, ...

efbe wrote:Which version of the Firmware shoud I use with the ATMEGA32 16 PU

If you use a 20MHz cristal on my board : Megadrum32_20_32_date

efbe wrote:And what is the correct procedure ?

All is here : http://www.megadrum.info/forums/viewtopic.php?f=3&t=111

"After you programmed the bootloader into Atmega32, reset MegaDrum while holding the key LEFT. It'll ask you to press the key DOWN. If you changed you mind you can reset MegaDrum again without holding any keys and it will boot an old firmware. If you press the key DOWN, it'll erase the old firmware and will wait for the Sysex with a new firmware. Now in MIDI-OX go to Actions->Send->SysEx File... and choose the firmware *.syx file you've prepared beforehand. The update will take around 5 seconds and after it's finished MegaDrum will reset itself and boot the new firmware. "
Synthex
 
Posts: 1471
Joined: Fri Oct 12, 2007 6:06 am
Location: France

Re: USB

Postby dmitri » Tue Oct 14, 2008 6:10 pm

And don't forget this:
dmitri wrote:Note on overclocking. I'm doing most of the development and testing with Atmega32. Although overclocked to 20Mhz it appears to work fine with MegaDrum firmware.
But when I try to program it using the bootloader, most of the time it either fails to finish a firmware update or some regions of ROM become corrupted after an update. I guess the same may happen with Atmega324 and Atmega644 if overclocked to 24MHz. Be warned.
dmitri
Site Admin
 
Posts: 8718
Joined: Fri Aug 03, 2007 8:05 pm

Re: USB

Postby efbe » Tue Oct 14, 2008 6:32 pm

efbe wrote:Could it be the PIC 18F2550
It can be a short-circuit around the PIC, or a bad USB cable, ...?


I tried 2 different cables, replaced the USB connector, use the connector direct on the board, and this on 2 different PC's.
Always the same message.

Now working with ext. alimentation and MIDI out.

The strange thing is that it worked before...


EFBE
efbe
 
Posts: 31
Joined: Sun Aug 03, 2008 1:18 pm

Re: USB

Postby dmitri » Tue Oct 14, 2008 6:46 pm

Can you take Amega32 out of it's socket and try connecting to a USB port after that?
dmitri
Site Admin
 
Posts: 8718
Joined: Fri Aug 03, 2007 8:05 pm

Re: USB

Postby efbe » Tue Oct 14, 2008 8:36 pm

dmitri wrote:Can you take Amega32 out of it's socket and try connecting to a USB port after that?


Yes I did that and without the Atmega32, no error message.
I see in the list of MIDI devices the Megadrum. ??


When I put it back in again, Iget thr error message back.

EFBE
efbe
 
Posts: 31
Joined: Sun Aug 03, 2008 1:18 pm

Re: USB

Postby dmitri » Tue Oct 14, 2008 9:32 pm

Replace your 20Mhz crystal with a 16MHz one and update with a corresponding firmware.
dmitri
Site Admin
 
Posts: 8718
Joined: Fri Aug 03, 2007 8:05 pm

Re: USB

Postby efbe » Tue Oct 14, 2008 10:09 pm

dmitri wrote:Replace your 20Mhz crystal with a 16MHz one and update with a corresponding firmware.


I have to buy one first, and try it.

It funny because it worked before.

EFBE
efbe
 
Posts: 31
Joined: Sun Aug 03, 2008 1:18 pm

Re: USB

Postby efbe » Wed Oct 15, 2008 3:36 pm

efbe wrote:
dmitri wrote:Replace your 20Mhz crystal with a 16MHz one and update with a corresponding firmware.


I have to buy one first, and try it.

It funny because it worked before.

EFBE


I did this and now I try to up-date the firmware with Atmega32_16_32_200909. But no go.
In sysex I configured "low Level output buffers" to 40000 and 60000 but no update. Pass sysex is marked.
What to do with "num", which value to put in there ?

Could it have something to do with VISTA, i gone try on another PC running on XP.

EFBE
efbe
 
Posts: 31
Joined: Sun Aug 03, 2008 1:18 pm

Next

Return to MegaDrum Hardware

Who is online

Users browsing this forum: No registered users and 145 guests