+ Reply to Thread
Results 1 to 3 of 3

Thread: Bs2 send ASCII code to play mp3 file

  1. #1

    Default Bs2 send ASCII code to play mp3 file

    Dear friends,
    I forgot how to do this! using the Bs2 SEROUT commands to play my mp3 module that accepts serial control mode.
    To play an specific file example song 00001.mp3

    ASCII codes:

    Start code: 7E
    Data length: 07
    Operation code: A0
    Ten thousands digit: 30H
    Thousands digit: 30H
    Hundreds digit: 30H
    Tens digit:30H
    Units digit: 31H
    End code: 7E


    I tried:

    SEROUT 1, 9600, ["7E", "07", "A0", "30", "30", "30", "30", "31", "7E"]

    doesn't work! 42242.pdf

  2. #2

    Default Re: Bs2 send ASCII code to play mp3 file

    The quotes are for ASCII characters. To send your information, you'd need

    SEROUT <pin>,<Baud>, [ $7E, 7, $A0, DEC5 1, $7E]

    Read the chapter on the SEROUT statement and Appendix C of the BASIC Stamp Syntax and Reference Manual to get a better understanding of how this statement works and what the various items like DEC5 do. Also remember that you can't just put the Baud into the SEROUT statement. The 2nd parameter is more complex than that and is explained thoroughly in that chapter.

  3. #3

    Default Re: Bs2 send ASCII code to play mp3 file

    Gracias! Miguel Verde

+ Reply to Thread

Similar Threads

  1. Send a frame of ascii data using a BS2.
    By forbesg in forum BASIC Stamp
    Replies: 10
    Last Post: 05-31-2011, 05:15 AM
  2. How do one send ASCII characters using a serial ogject
    By Siri in forum Propeller 1 Multicore Microcontroller
    Replies: 9
    Last Post: 04-15-2009, 07:29 AM
  3. Send ascii string as parameter?
    By T Chap in forum Propeller 1 Multicore Microcontroller
    Replies: 3
    Last Post: 11-29-2008, 05:12 AM
  4. Can you SEND ASCII strings with this CHIP? HELP PLEASE
    By gth629e in forum Propeller 1 Multicore Microcontroller
    Replies: 21
    Last Post: 02-08-2008, 03:50 PM
  5. UART send ascii value?
    By vlad in forum Javelin Stamp
    Replies: 1
    Last Post: 02-03-2006, 09:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts