I got a problem and i need your help!?

im pretty new so i jsut started with arduino and i can't find out what the problem is so ill post it under here and hopefully you guys can help me ^^

void setup()
{
Serial.begin(9600);
}

void loop()
{
Serial.print('H');
delay(1000);
Serial.print('L');
delay(1000);
}
Send Command Expected Response
ATID 3332

Send Command Expected Response
ATID3331 OK

Send Command Expected Response
ATID 3331

Send Command Expected Response
ATWR OK

Send Command Expected Response
ATRE OK

Dear Wolfie,

you're a very confused boy. Instead of creating meaningless poll, you should explain what your program is supposed to do, what it does and what relation it has to the text you pasted below it. The explanation should be written in a way so that even your grandmother will understand it. That way, we also have a chance to understand it and perhaps help you. A nice side effect might be, that the confusing mess swirling between your ears clears up a little and you'll find out on your own what's the problem.

While you're at it, please use the # icon in the middle of the icon bar under the subject to enclose code you post. It makes it easier to read and gives it a cool grey hue.

Have fun.

Korman

ups forgot that ^^

it should be like a bot i type a question and it answers nothing els :slight_smile:

it should be like a bot i type a question and it answers nothing els

Please in more details. What does it answer? How do you enter questions? Why do you think the program should do what you want? Why do you think the program does what is does?

Writing programs isn't magic with incomprehensible ritual and arcane incantations randomly copied from the internet. It's reproducible cause and effect. You tell it to do something, it does it. If it doesn't do what you tell it, you didn't do tell it right. If you don't understand what happened, you probably didn't understand what you told it to do. So the crucial part is that you understand what you want the program to do and how to tell it right.

As to your code, it seems to work fine and do what it should.

Korman

It answers me in a bat file where i can type in some questions like "Whatday is it today" and it writes back to me that "its Monday" its a projekt im working on in school. and i hoped my teacher would tell me what to do but the taecher goes you have to figure it out urself -.- and its hard when i know nothing about this i know that Arduino can be used to many things now.

Oh boy, what an interesting situation you have at hand. I have to admit, your teacher has a good sense of humour. Even worse, he's absolutely right, you need to figure that out on your own.

On last information before I leave you to do your own research: The code your posted has nothing to do do with the question you ask. It's like I ask you what colour your car is and you show me the timetable of the Piccadilly Line.

Have fun.

Korman