I just began with my course control technology of a microcontroller ( with arduino)
I completed a step of my homework called doing math with serial communication. see the attachment 'doing math'
The next task is to use the serial monitor and type in a value in this case 12 press send and it'll calculate. see the attachment ''uncompleted example'' for what i mean
By using if(serial.available) and serial.parseInt, but i dont have any idea of how to do it.
@Alexlauman,
It must be my day to bitch, so:
If you are in school, college, or whatever, I would expect you could use correct grammar. Sentences start with capital letters, and end with proper punctuations.
Alexlauman:
the only thing that i notice is that it keeps saying ''hello world''
Read my post again.
One should have the Serial.available() loop.
The other Arduino the Serial.println("hello world"); loop.
Will not be doing your homework for you, but as an actual teacher...I will give you a small exercise in order for you to understand the principle out of context for you to apply to another...
Perhaps, the code on the following pages (especially the first one) can also hopefully shed some light on the use of Serial.available(). I think the example for the Uno is quite simple and is well explained...