A time and temperature talking device project


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    3


    Did you find this post helpful? Yes | No

    Default EMIC setting

    Is there any setting has to be made in order to work EMIC? Actually I have connected components according to the given circuit and programmed it all the same accroding the the codes available on the site. I did not do anything. Will you plase tell me how to set the EMIC dip switch because i am really new for those stuffs. In the EMIC, it's said if switch 1 is set to on, it will command to ASCII format but I dunno how to set SW1 on. Is it at the programming or hardwared device itself? I did not see any physical switch at the EMIC. Will you please help me? Thank you.

    Keeble

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Do you have the EMIC data sheet?

    If you don't, I recommend you download a copy. http://www.parallax.com/dl/docs/prod...micModules.pdf

    Unless you have a newer model EMIC, that doesn't have the switch, it should have a 2-position DIP switch
    located just below the Winbond IC.

    Just like the one shown in this photo below towards the center of the Winbond IC.
    http://www.parallax.com/images/prod_jpg/30006.jpg

    These are labeled 1 and 2 on the DIP switch. Move 1 to the ON position (up).

    Page #5 in the data sheet covers the DIP switch.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Sep 2007
    Posts
    3


    Did you find this post helpful? Yes | No

    Default A time and temperature talking device

    As per given suggestion, I have set the EMIC DIP sw1 to ON. But still the EMIC device is unable to produce the sound. Do you think is there any other reason?

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Since this forum is for PicBasic, here's a simple test routine to check out the EMIC module.
    Code:
    DEFINE OSC 20
    
    ' -----[ I/O Definitions ]---------------------------
    
    Tx    VAR PORTC.0   ' wire to EMIC sin pin
    Busy  VAR PORTC.2   ' wire to EMIC busy pin
    Rst   VAR PORTC.1   ' wire to EMIC reset pin
    
    ' -----[ Constants ]---------------------------------
    
    BAUD            CON     0  ' T2400
    Yes             CON     1
    
    ' -----[ Initialization ]----------------------------
      TRISC = %000010100
      
    Setup:
      GOSUB Hard_Reset                 ' restore defaults
      PAUSE 1000
      SEROUT TX, Baud, ["volume=7;"]   ' max volume
      GOSUB Check_Busy
      SEROUT TX, Baud, ["pitch=1;"]    ' adjust voice pitch
      GOSUB Check_Busy
      SEROUT TX, Baud, ["speed=1;"]    ' set speech speed
      GOSUB Check_Busy
      
    Talk:
      SEROUT TX,Baud,["say= I should be using pick basic pro;"] 
      GOSUB Check_Busy    ' wait for busy to release
      PAUSE 10000         ' long pause between message
      GOTO Talk
    
    ' -----[ Subroutines ]---------------------------------
    ' -- wait until Busy line released by Emic
    
    Check_Busy:
      PAUSE 5                      ' allow busy time to activate
      WHILE Busy = Yes : WEND      ' wait until not busy
      RETURN
        
    ' Hard reset
    ' -- good when comm link is lost
    
    Hard_Reset:                      ' reset to default values
      LOW Rst                        ' pull reset line low
      PAUSEUS 200                    ' 200uS pause
      INPUT Rst                      ' let reset float
    
      RETURN
    I've included the .hex file here for you. Wire your 16F876A to the EMIC as shown in the I/O
    Definitions section, and program it with the .hex file attached.

    If it doesn't work, then you may have a damaged EMIC module, bad speaker, or something
    isn't wired properly. If it does work, let me know.
    Attached Files Attached Files
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Write Onewire data toa I2C memory / read ASCI
    By Eugeniu in forum mel PIC BASIC Pro
    Replies: 67
    Last Post: - 16th November 2008, 20:19
  2. A Temperature & Humidity Data Recorder Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 9th July 2008, 19:47
  3. Who can help me checking my Programming
    By slimpeng in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 23rd January 2008, 16:08
  4. Conversion problem
    By eva in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th March 2007, 19:21
  5. Help for decimal conversion
    By eva in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th March 2007, 19:20

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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