Go Down

Topic: Arduino Serial Comm Issues (Read 4162 times) previous topic - next topic

SuperSteve

Quote
The pin to set HIGH or LOW might be coming from the serial port, but the fact that certain pins have hardware associated with them doesn't change, while the Arduino is running, does it?

The pin mode should be set in setup(). The setting of the pin HIGH or LOW should be done in loop(), based on the serial data.


Since we are going to be using the device on different configurations we are passing what Pin's are designated to Input and Output via the Serial.

I think I've resolved the problem. Although the Serial Input is 9 digits I've increased the array it's reading into to 10 fields and it seems to be working now, is there any reason for this???

paulypopex

are you sending a carriage return?

PaulS

Code: [Select]
     a=a+1;
Have you ever considered that the language used to program the Arduino is not called C=C+1?
The art of getting good answers lies in asking good questions.

mromani


Code: [Select]
     a=a+1;
Have you ever considered that the language used to program the Arduino is not called C=C+1?


:D :D

Go Up