processing write several time to arduino

edited April 2017 in Arduino

I have a problem is that when i use serial.write() in processing to send value to arduino it actually send it several times which leads to problems with my project is there any idea how to fix such problem?


  • edited April 2017

    You need to show your code in order to provide feedback. You need to remember draw is executed 60fps so if you are sending data in draw without any control, then you are writing to your arduino 60 times per second.

    Consider revising:

    Also check previous posts:


  • edited April 2017

    i guess u are correct draw is the problem as i am new to this so i wasn't aware of the 60fps so what suggestions u can advice me to take?

            void draw(){
                     if(keyPressed) {
                       if (key == 'some letter') {
                         myPort.write ("some letter");
  • edited April 2017

    i just tried to put the myPort.write in setup function but it does still write it several times. actually this doesn't happened when i use tera term or an android app but just with processing

  • Answer ✓

    changed framerate to 10 instead of 60 seems to fix it, thanks

Sign In or Register to comment.