Question about MIDI LED

Discussions related to MegaDrum Hardware

Question about MIDI LED

Postby jerzy » Mon Mar 24, 2008 6:02 pm

Since I don't have LCD, this LED is my only indicator. I have problems with analog board and I would like to know it's normal behavior. Does it lights up on startup for 1-2 seconds? When I hit the pad, again, it lights up for 1-2 seconds?
jerzy
 
Posts: 34
Joined: Thu Feb 07, 2008 1:29 am

Re: Question about MIDI LED

Postby Synthex » Mon Mar 24, 2008 6:07 pm

jerzy wrote:Since I don't have LCD, this LED is my only indicator. I have problems with analog board and I would like to know it's normal behavior. Does it lights up on startup for 1-2 seconds? When I hit the pad, again, it lights up for 1-2 seconds?

This LED lights up on startup for 0.5 second and when you hit a pad, it must lights up less than 0.5 second.
You have a problem with the firmware on Atmega. Check your fuses.
Synthex
 
Posts: 1471
Joined: Fri Oct 12, 2007 6:06 am
Location: France

Re: Question about MIDI LED

Postby dmitri » Mon Mar 24, 2008 6:10 pm

Or a mismatch between crystal and firmware frequencies.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Question about MIDI LED

Postby jerzy » Mon Mar 24, 2008 8:29 pm

So it looks like µC restarts every time I connect +5V to one of pins of AnalogueConnector.1 (and maybe my analog board is fine after all:). I did use firmware file named "megadrum32_20_32_20080209.hex" as I have 20MHz quartz with ATmega32-16PU (maybe mine doesn't like overclocking?) I have used fuse settings from documentation page, but I will check again in a minute.

I did measurement with stopwatch in hand and it appears, that this LED lights for 5 seconds on startup (and also, there is a 2-2.5 second delay, after power-up), so looks like it's 10 times slower than it should.

AC voltage meter shows some activity on Analogue.Connector.2, but I don't have oscilloscope anymore to check what's really going on. Do you think I can use sound card for this? How high is switching frequency on that connector? I'm guessing, that resolution should be about 1ms, so is it around 1kHz?
jerzy
 
Posts: 34
Joined: Thu Feb 07, 2008 1:29 am

Re: Question about MIDI LED

Postby dmitri » Mon Mar 24, 2008 9:55 pm

The switching frequency on pins of this connector may be up to 50KHz.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Question about MIDI LED

Postby jerzy » Tue Mar 25, 2008 12:37 am

4 channels at 50kHz - thats pretty hi-fi sample rate for those poor piezos:)
Syntex: you were right: I had CKSEL bits set wrong. Thanks:)
jerzy
 
Posts: 34
Joined: Thu Feb 07, 2008 1:29 am

Re: Question about MIDI LED

Postby jerzy » Tue Mar 25, 2008 12:43 am

PS.
An ("debug" without LCD) feature request: maybe MIDI LED could blink (lets say) 3 times at boot-up, so there would be visible difference between normal work and one would know if µC just restarts or works fine, without even connecting analog board?
jerzy
 
Posts: 34
Joined: Thu Feb 07, 2008 1:29 am


Return to MegaDrum Hardware

Who is online

Users browsing this forum: No registered users and 78 guests