i am using Arduino Mega 2560, LCD Keypad Shield and DHT11 Temperature and Humidity sensor..
my project need to detect the temperature and humidity for surrounding.
i cant upload the code that i download...anyhow if i did a mistake can anybody show me how to fix it?..
by the way this is my first time using Arduino...
I have a couple of suggestions: 1) if this is your first time using Arduino do not begin with a temperature humidity project with a keypad and an LCD... that's crazy.
start simple: basics with blink.
Now to your error. Your compile error tells you what is wrong, explicitly. Its not a problem with uploading your code... its a problem with the 'syntax' of your code. Take a look at the setup () function... because its coded wrong.
void setup{void} {
There should not be {} curly braces around your set parms... try using () parenthesis instead.
Thanks Marcus..
but may i know anything else in my code there got wrong?..
because i just trying to upload it again and it show me there is another mistake... im sorry if im asking too much..because i'm just learning this program..
DHT.ino: In function 'void loop()':
DHT.ino:19:3: error: 'humudity' was not declared in this scope
DHT.ino:23:12: error: expected ';' before '{' token
DHT.ino:23:14: error: statement cannot resolve address of overloaded function
um, well, again, your error tells you explicitly what is wrong; so 1) either you can't read, or 2) you're just jerking around with the people on this forum... I suspect the latter.
You spelled humidity ... h u m u d i t y ... the second 'u' is an error. Since you did not declare hum'u'dity you get a declaration error in void loop().
Stop playing games and get some sleep. If you are on the level (and I think you are not) then you might want to take a class or two in C, C++, and then take a look into some other people's code and try to figure some things out on your own before you post silly questions like these to this forum.
That's because you do not know what you are doing... in fact... you do not have a void clue(). So, either you are 1) playing games (probable), or 2) you are genuinely trying to build a sophisticated project without the slightest idea how to 'sketch' in C or C++... and yet you want someone on this forum to debug you 'sketch' for you... how rude. Get a book, get a void clue(), and try to work things out for yourself before you bother someone else... go to bed!
Wah.....mr Marcus...
im newbies in this thing....and i need some guider to guide me to help me to teach me...can u walk while u a baby? without learning how to crawl?...
i had face this problem about a month and i already meet 5 people who know how to do C++ but they can help me because they never use Arduino...if this forum cant help me (or u) its ok...its open to everybody to sincere to help me...i dont ask for only your help....i asking this thing because i almost give up on this project...and what i guess is all the excellent programmer here can help me to correct what i wrong....not condemn my project or my mistake..every people must did a mistake...not even u...im not rude in asking...im asking nicely....teach me ...correct me...not condemn me....its not your only responsibility to answer my question there....if u cant help thanks and go....dont let me down...
for your information....this is my 1++ trial and fails....im not programmer...i am Mechanical Engineering (Designer) student...not automation student....so i face this problem in fact i dont even learn this before..
so...im asking nicely here,....if u cant help me its ok and thanks for giving advice just now......and u can go if u cant help...
to others programmer i really need your help to correct me which i got wrong....
all the help only god can repay what the kindness you help for me....
please dont condemn me....
##sorry for being rude...just express what i need think im not wrong....
SYAHRiEL:
Wah.....mr Marcus...
im newbies in this thing....and i need some guider to guide me to help me to teach me...can u walk while u a baby? without learning how to crawl?...
Hi, the problem with your question is that you're not at a level with C|C++ to even have the conversation. You will be frustrated, as well your counter-part. The best advice I can give you, honestly and without prejudice, is to take a class in C first. Get a C|C++ tutorial on-line and study it 'slowly' ... don't dive into an advanced project with no knowledge of C|C++ coding and then jump on the forum and ask people to help you with it. Read the section on this forum, "How to use this forum". It will help you with the etiquette.
Please, its ok to be a newbie. We've all been there. But in this age of information overload and time management issues for all of us, we ALL must take the responsibility to teach ourselves as much as possible. Don't expect people on a forum (any forum, by the way) to help you when you won't take even the basic steps to help yourself.
There are also many good C|C++ books available. I will tell you this... Yes, the Arduino makes things a easy as possible (sketching, right...) but in the end this is still about electrical engineering, and its still about software engineering... and its technical. There is a basic knowledge set that is required to proceed. If you don't have the basic knowledge set, you will be totally frustrated. I am a C|C++ expert... been coding it since Bjarne Stroustupe invented it ... and today I found a bug in my own code that took me three hours to find... AND I WROTE the DAMNED THING! The compiler errors were not helpful (and it was a very difficult scoping issue. I finally found it (but, its not for newbies... and its certainly not for this forum!)