This has been killing me, so I would really appreciate help on this. I'm trying to send the X and Y axis plot from Processing to an Arduino, each having 3 digits. Bellow you can see the code for the Arduino, I'm simply trying to run a test to see if the Processing is sending X: 123, hence the IF statement.
Then I created a very basic program in Processing in attempt to send (123456) to test the X IF statement. I have also done this where it has myPort.Write(1); followed by 2-3-4-5-6 as well, that is why there is a delay in the Arduino, in hopes to receive all information.
import processing.serial.*; Serial myPort;
int A = 123456;
void setup() { myPort = new Serial(this, Serial.list()[1], 9600); }
So please, kindly point me in the direction I need to go so I can end this problem. If you are wondering about the print code in the Processing, I was using that to figure out what type of signal I was receiving from the Arduino. I have a suspicion that my entire problem is that one is sending in ASCII while the other is doing Binary, Bytes or something else.
I know it is done all the time, but I can't seem to find the resources for it.
My laptop is communicating with my PLC, I can send single integers or Bytes back and forth, but I need to send more at once. How do I write a long string of commands, and then be able to isolate each section based on their position in the string?
In case my terminology is incorrect, I would like to send something like:
1080
1120
0100 and know that the red letters are the direction for my stepper motors, and the black numbers are the steps that they need to go.
I've developed a pretty advanced system using Processing and Arduino, however I need to now make the program in a way where non-technical people can run the program. Which software would you recommend using to create a decent GUI? Preferably under a $500 budget. Thanks