G'day All,
I have a program that I wish to use with and without a serial output, ie. I plug a into a port to do diagnostics or changes to the code but want it to run alone without connection to the PC. How would be a way to do that please?
(The program runs Ok when connected to the PC but stops when I pull out the plug on the serial connection. The communication is one way, out to the PC display putting aside uploading the program.)
Cheers ............ Mike B
The program runs Ok when connected to the PC but stops when I pull out the plug on the serial connection.
Without electricity the board is not going to run very well.
Right of course! sorry I did not mention the arduino 328 chip is embedded in the PCB in the project and is powered from the device ( fridge) it controls. I am interfacing with another arduino board less chip via the coms terminals of the embedded chip so it is always powered up..
Cheers ........... Mike B
There should be no problem running a sketch on the Arduino that does serial output without anything to output the data to.
Serial.available() indicates how much data has been received.
If your code doesn't run when the serial port is not available, there is something wrong with it, or with your "not really an Arduino".
You are right of course and I have done this with similar programs.
Since I am using similar methods as those that work I don't know what it is causing the problem and was hoping for a few hints at areas to look at.
Froggins:
You are right of course and I have done this with similar programs.
Since I am using similar methods as those that work I don't know what it is causing the problem and was hoping for a few hints at areas to look at.
Hints are forthcoming, but they don't come spontaneously. They come as response to input. Feed us code, and we'll regurgitate hints, advice, and even some example code.
I found the cause!
Basic error - left off the reset pullup resistor on my "similar to an Arduino" project.
Thank you for the follow up.