- This topic has 8 replies, 2 voices, and was last updated 10 years, 8 months ago by
Ashutosh Bhatt.
-
AuthorPosts
-
June 18, 2014 at 10:09 am #3123
varuni
Participanti am not able to build the target for code for overheating alert using arm7 processor given by engineers garage. it gives an error that lcd.h directory or file doesnot exist.pls give me some solution.
June 18, 2014 at 5:05 pm #11837Ashutosh Bhatt
Participantwhat is ur project? what is ur code?
June 23, 2014 at 3:04 pm #11847varuni
ParticipantThe project is “overheating alert in remote areas”, using arm7, which uses gsm modem & temperature sensor ..If the temperature goes beyond the preset value, this gsm,controlled by arm7, is supposed to send the message to the previously stored number
I got the code from this engineersgarage The code contains file inclusions for adc,lcd .It contains “lcd.h” “lcd.c”..similarly “adc.h”,”adc.c”..so while building the target in keilmicrovision4 ,for the main code,i am getting confused ..whether to create the target for “lcd.h and adc.h”?or for “adc.c and lcd.c” and then convert them to hex file and then include those files??!
shall i paste the whole code in this reply column?Am i allowed to paste here? if not ,should i mail it to you? if so pls mention your mail id..
thanks
June 25, 2014 at 9:20 am #11850Ashutosh Bhatt
Participantthese are files required to handle ADC and LCD. there will be one main program file in which the functions of these files are used.
you have to make one main program file in KEIL.
then in the same folder you have to copy-pest adc.c, adc.h, lcd.c and lcd.h all files.
in the main file include lcd.h and adc.h as
#include “adc.h”
#include “lcd.h”
see if this solves your problem
June 25, 2014 at 12:15 pm #11852varuni
ParticipantOk..got to know…thanks
June 26, 2014 at 4:22 pm #11858varuni
ParticipantIn that same code, i am not getting understood ,what is the preset temperature value,over which if it goes ,the gsm needs to send the message.
lm35 is used whose range is -55deg to 150deg and is linear with temp in degree celsius..its sensitivity is .01v/deg
int main (void){...while(1){x=process_adc();//Read ADC value and display it on first line of LCDwait(30);if(x>300){string=”AT+CMGS=”;while(*string != ‘