Shop OBEX P1 Docs P2 Docs Learn Events
Basic Stamp 2 — Parallax Forums

Basic Stamp 2

puripuri Posts: 1
edited 2007-04-13 14:40 in BASIC Stamp
Hello,

· I am trying to get Basic Stamp to get /accept numbers and depending on the number output a message to Emic voice synthesizer. My project is dealing with heart rate monitor that receives a pulse . I convert the pulse depending on the speed of the pulse, in PIC microcontroller, for PIc does not read PBASIC language ·and emic works well with· Basic Stamp.Hence I used·two microcontrollers.·I converted the pulse to a number 60-110 . I want Basic to receive· that number as hex· or ASCII.or whatever you suggest .·As each range of number 60-70 outputs a text to emic.

Therefore, I need your help with the program ,maybe you have a sample program that could do that.

Please help

Thank You

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-13 14:26
    The PIC needs to send an asynchronous serial byte (1 start bit - logic low, 8 data bits, 1 or 2 stop bits - logic high, no parity, 2400 Baud or 9600 Baud) with the value you wish (0-255). The Stamp uses the SERIN statement to receive this byte, then does whatever you need with the eMic. For the PIC side, you will need to find examples in the Microchip application notes or, if you are using a compiler, there's probably a library routine that will do this for you.

    The PBasic manual has all the information and examples you will need in the section on the SERIN statement.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-04-13 14:40
    Puri,

    I don’t see any reason why you couldn’t use the BASIC Stamp for the whole project. The BASIC Stamp can measure the pulses depending on pulse width. Or, if you’re looking for BPM you can use the count command. In any event the Emic example code shows how to send information to the Emic properly formatted, so your only real task is getting the code to read the pulses and integrate that with the speech code. Having a single microcontroller (if possible) will greatly simplify things. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.