Timing of dits and dahs is off

General discussion and support for Iambino and the Iambic Keyer Shield.

Timing of dits and dahs is off

Postby W1SOP » Sat Nov 07, 2015 7:25 pm

Hi,

Timing of both dits and dahs is not correct, at least not the sound that is being generated. I recorded some simple sequences of dits and viewed them in audacity. The first two dits are longer than the subsequent ones and the spacing is shorter than the dits. Dahs sound better than the dits but the first dah is longer than subsequent ones.

I have my keyer in iambic mode B, spacing char.

Are you aware of this issue? If not, can you try to reproduce it? Simply listen to 15 WPM 5 5 5 5 . You can hear the cadence change in the middle of each dit string. My radio is out of action for repair so I can't attach it to hear it generate side tone right now.

On a hunch I made lcd_write() return immediately. Dit pacing is much better now. Sound and silence equally long. Dahs are equally long and spacing between dahs is a dit.

My LCD updates rather sluggishly. Is that expected or is there still something wrong with my LCD? After replacing my Arduino it is at least showing text now.

Thanks,

Sander W1SOP
W1SOP
 
Posts: 9
Joined: Sun Oct 25, 2015 4:02 am

Re: Timing of dits and dahs is off

Postby AE9RB » Sun Nov 08, 2015 12:48 am

What kind of Arduino?
73 David AE9RB
AE9RB
Site Admin
 
Posts: 511
Joined: Thu Nov 15, 2012 5:27 am
Location: Portland, Oregon, USA (CN85ql)

Re: Timing of dits and dahs is off

Postby W1SOP » Sun Nov 08, 2015 4:36 pm

Uno with Mega 328. Could the clock speed be too low?
W1SOP
 
Posts: 9
Joined: Sun Oct 25, 2015 4:02 am

Re: Timing of dits and dahs is off

Postby AE9RB » Sun Nov 08, 2015 6:47 pm

If you think the symptoms look like clock speed, sounds like you have another bad Arduino. This one doesn't have its fuse bits set correctly.
73 David AE9RB
AE9RB
Site Admin
 
Posts: 511
Joined: Thu Nov 15, 2012 5:27 am
Location: Portland, Oregon, USA (CN85ql)

Re: Timing of dits and dahs is off

Postby W1SOP » Mon Nov 09, 2015 1:55 am

I said clock speed because the LCD is so sluggish. Just a guess, nothing more. The fact that disabling the morse decode printing fixes the timing is a clear indication that LCD updates are too slow. What I don't know is if this is normal or yet some other hardware issue. I'll have to look at the code to see how you time the dits. If it makes assumptions about clock speed then clock speed is fine. 15 WPM sounds like 15 WPM.

I'm using the latest Arduino version. Could it be the LCD library broke and is much slower than the version you have? If your LCD is all zippy and without 'rolling' updates I guess I have to take another video to upload.
W1SOP
 
Posts: 9
Joined: Sun Oct 25, 2015 4:02 am

Re: Timing of dits and dahs is off

Postby AE9RB » Mon Nov 09, 2015 7:37 am

"Latest Arduino version" leaves me guessing since they push out hourly updates. As does "Uno" since there's three versions of those. Anyways, try the code I just pushed.
73 David AE9RB
AE9RB
Site Admin
 
Posts: 511
Joined: Thu Nov 15, 2012 5:27 am
Location: Portland, Oregon, USA (CN85ql)

Re: Timing of dits and dahs is off

Postby W1SOP » Tue Nov 10, 2015 8:32 pm

You are right, sorry. I didn't realize hourly updates were provided as I didn't use those. I have 1.6.5 but I see there is a 1.6.6 by now so I wasn't even using the latest release version anymore. I will try your latest code with 1.6.6, thanks.
W1SOP
 
Posts: 9
Joined: Sun Oct 25, 2015 4:02 am

Re: Timing of dits and dahs is off

Postby W1SOP » Tue Nov 10, 2015 10:38 pm

Your latest code with 1.6.5 works great! LCD updates are still slow but that must be a result of how the 4 bit protocol is implemented by the Arduino library. Or maybe a limitation of the LCD itself.

Most importantly the tones sound solid now. The in-lining of the ISR was the right fix, thanks!
W1SOP
 
Posts: 9
Joined: Sun Oct 25, 2015 4:02 am


Return to Iambino

Who is online

Users browsing this forum: No registered users and 2 guests

cron