Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Hoping someone will help me with code concerning timer

Status
Not open for further replies.
"The last parameter is timeout...."
Yes, well, moving on...
What does the 136 do in your code? Why is it there?
 
I find the ratio of the dit/dah time to be correct but otherwise useless.

This is what the scope sees on the collector of the mic preamp.
This point goes to D7 on the Arduino.
Scope shows one cycle ~2.3 ms. However tone freq. is 1029 Hz. and wpm = 20.
scope on mic preamp1.jpg
I could re-bias the transistor but will wait till the NE567 (s) arrive and then play with the preamp.
 
Last edited:
Then your results are ok.. Your dit's are three times shorter than your dah's.. Why do you deem them useless..

If you are trying to receive 20WPM with an average of 5 characters per word... around 1 and 1/2 characters per second... If the timeout in pulsein() was reduced to 250mS you should be able to receive characters and process them..
 
Interesting! I've downloaded the code.
**broken link removed**
So far, I've wasted time correcting the comments in morse_codec.c and morse_codec.h.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top