Sound Module AppMod and BS1
Eugalaz
Posts: 39
Hello,
Can any one tell me if the old Sound Module AppMod works with the BS1? If so can you post a code snippet to show how please.
The BS2 code that I am trying to make work on a BS1 is: SEROUT 4, 188+$8000, [!SMOP",0]
Thanking you in advance
Eugalaz
Can any one tell me if the old Sound Module AppMod works with the BS1? If so can you post a code snippet to show how please.
The BS2 code that I am trying to make work on a BS1 is: SEROUT 4, 188+$8000, [!SMOP",0]
Thanking you in advance
Eugalaz
Comments
I think the top speed for BS1 is 2400.
Can the Sound AppMod be configured for 2400 bps?
Thanks for your reply.
Yes the documentation tells me:
- Simple serial interface 'auto-bauds' any standard baudrate from 2400 to 38K4
Does that help?
You asked about -
I assume there should be leading quote-marks. I wonder if the 0 at the end is so. You have the manual.
So, a BS1 equivalent for SEROUT 4, 188+$8000, ["!SMOP",0]
The BS1 has a 5-character limitation, too.
I guess you could probably break that up.
SEROUT 4, OT2400, ("!SMOP")
SEROUT 4, OT2400, (0)
SEROUT 4, 188+$8000, ["!SMOP",0]
This command tells the Sound Module to play recorded sound from location 0
Try my suggestion.
(Run it up the flagpole and see if it gets a salute.)
SEROUT 4, OT2400, ("!SMOP", 0)
is probably valid.
I have tried your suggestion and tried to improve my chances but to no avail.
Commands tried so far:
SEROUT 4, T2400, ("!SMOP",0)
SEROUT 4, N2400, ("!SMOP",0)
SEROUT 4, OT2400, ("!SMOP",0)
SEROUT 4, ON2400, ("!SMOP",0)
None of these work. Do you think that it could be that the BS1 just can't talk to the Sound Module? Hope not.
The + $8000 in the BS2 baudmode means an open drain is required, only the BS1 OT baudmodes are equivalent.
If you have a PDF for this sound module, please attach it.
It could be helpful if you provide a good quality picture of your setup as well. [I don't want a picture of it, I want to be able to see what you're doing.]
SEROUT 4, OT2400, ("!SM0P",0)
Look at page 2 of the documentation for the module for an explanation of the various characters in the command.
and
Could this be your problem?
http://www.parallax.com/dl/docs/prod/appmod/SoundModManBv1_1.pdf
EDIT: Mike and I where responding at the same time. Is he ALWAYS looking at these forums.
They had to call attention to the 0 being a zero and not an O.
Amazing.
Solved!
Yes it was the O that was the problem. It should be a zero instead.
The correct command as you both know is:
SEROUT 4, OT2400, ("!SM0P",0)
Works beautifully now.
This forum really is amazing, the know how present here is trully phenominal.