Jump to content

Recommended Posts

hello :

 

my graduation project is called "voice speech synthesizer" i'll read temprature from LM35 sensor then send it to 16F877 pic then it will convert the voltage into ASCII and send it to the EMIC module to say the temprature

but am lost and i cant focus how to start ,the code the interfacing ...

can anyone guide me how to write c code ?..

i tested the pic and send the result through MAX232 and read it from PC..

then wut should i do????!!!! i dont have much time really

Link to post
Share on other sites

Your doing a partially embedded project for your graduation and you do

not know how to program in C?

 

How did you send data from the PIC to the PC if you did not write any code?

Link to post
Share on other sites
hello :

 

my graduation project is called "voice speech synthesizer" i'll read temprature from LM35 sensor then send it to 16F877 pic then it will convert the voltage into ASCII and send it to the EMIC module to say the temprature

but am lost and i cant focus how to start ,the code the interfacing ...

can anyone guide me how to write c code ?..

i tested the pic and send the result through MAX232 and read it from PC..

then wut should i do????!!!! i dont have much time really

 

60% of your project is already here...programming pic micro in BoostC for beginners.

Atleast for the rest of the project you need to make some effort. Use my code as a template & make adjustments by adding serial routines. You can use the same wiring circuit details i have mentioned. I did it on a bread board. You too can do the same. Good luck!

 

Regards

Raghunathan.

Link to post
Share on other sites
emte

 

for sure i write a simple code to test the PIC ,but now i want to know the hints for the LM35 sensor so i can write a code for my project

 

That is a bit more sensible question and there are many examples how to setup

and use the ADC but most people struggle with conversion logic.

 

Basic outline of what you need to do to convert is(this is for the TC1047 which is simular):

(Vref/2^nbits)-SensorSlope=hex value

Then it is simply converting that hex value to the format you need to transmit.

Edited by emte
Link to post
Share on other sites

I thought the whole point of a senior or graduation project is to prove that you can take an abstract idea and implement it by doing research and design. Asking for help on the web just proves that you should not graduate. I would not hire a person if I knew they did what you are doing as it just proves they are not able to do the job.

 

Why don't you try reading the data sheet on the LM35. It is not very complicated. You would figure out how to implement this project quicker by reading the data sheet than by asking others to do your work.

 

Here is the only help you should receive from this forum. You could have done this yourself with a google search.

 

http://www.national.com/pf/LM/LM35.html

Edited by trossin
Link to post
Share on other sites
I thought the whole point of a senior or graduation project is to prove that you can take an abstract idea and implement it by doing research and design.  Asking for help on the web just proves that you should not graduate.  I would not hire a person if I knew they did what you are doing as it just proves they are not able to do the job.

 

Why don't you try reading the data sheet on the LM35.  It is not very complicated.  You would figure out how to implement this project quicker by reading the data sheet than by asking others to do your work.

 

Here is the only help you should receive from this forum.  You could have done this yourself with a google search.

 

http://www.national.com/pf/LM/LM35.html

 

 

If you do a google search for the OPs name he started asking for C advice on a BASIC forum.

 

(and he sent me message asking how to do it)

 

I predict no immediate requirement for cap and gown.

Link to post
Share on other sites

data sheets cant help in programmin the pic ,u know wut is the datasheets,right?

i asked for a hints on a c code i did the circuit by my own ,i dont know how to program in c langauge ,i dont think that u have a company to hire coz if u were a manager non of ur employees will stay in ur company..

thnx alot if u wana help ..

Link to post
Share on other sites

Then it sounds like poor project managment and design implementation if you

did not have someone in your team who knew how to program for the device

you planned to use.

 

The programming is 90%+ for your project, the circuit design

is trivial with the only complicated part being running a DRC

for the fabrication house.

 

i hope this is not a technologist or engineering final project.

Link to post
Share on other sites

i was refering to reading datasheets and looking at existing code examples,

all i did was type "Microchip LM35" into google.

 

But if you want more ideas, lets see, full X10 voice control system, VOIP voice

control system for the handicapped, voice control for grps or gprs navigation,

etc etc.

 

All those are fairly simple, you can probably even find the articles on design,

programming, and construction on the internet. They were all final projects

over the last 3 years for the local college and all were published.

Link to post
Share on other sites
  • 2 weeks later...

hello:

 

the problem is when EMIC says the results it stops without completing the sentence

my statement to be clear: printf("say=temperature is %s degrees",x);

the word "degrees" will not appear EMIC stops before saying it..

i tried to separate printf but also same

printf("say=temperature is %s",x);

printf("say=degrees");

also ot work..

wut should i do???

Link to post
Share on other sites

i did evry thing ,am using c lang,

the emic cant say the whole sentence..

printf("say=temperature iz %s degrees",x);

the word degrees is not appear the delay is enough

i tried to separate it

printf("say=temperature iz %s",x);

printf("say=degrees");

also not working !!!!!!!!!!!!!!!!!!!!!!

Link to post
Share on other sites

Are you sure your issue is not due to the variable substitution?

 

i am supprised you can use that function at all with hardware,

or should i say, that your EMIC is fast enough to keep up with

printf().

 

You may want to look at the sourcecode for that function and

verify that your variable subsitution will work.

... Also make sure that you have a null char at the end of your

x string, it may freakout if it does not know where to stop.

 

( i never use boxed functions like printf, so i am guessing )

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...