×

We will be closed on November 25, 2021 and November 26, 2021 in observance of the Thanksgiving holiday. We will resume normal operations on November 29, 2021. Wishing you a safe and happy holiday from all your friends at SparkFun!

×

Receive a free SparkFun USB Thumb Drive with every order this weekend. Details.

Member #724593

Member Since: October 1, 2015

Country: United States

  • To all the members in here that been having problems communicating Processing with Arduino. I've been breaking my head all day and I finally figured out what was wrong. You just have to check in what serial port is Arduino connected to. Here's what I did (Mac):

    Apple logo/About this Mac/More information or System information/Hardware/USB

    There, you will see all the connected devices to the USB Port, for me it appears Arduino Leonardo. Down under are all the specifications from the port, just look where it says something like ID location (I have it in spanish). You will see a large number followed by a slash and a single number. Ex:

    ID de la ubicaciĆ³n: 0xfd130000 / 5

    So I just changed in my processing code, instead of using 0, used 5.

    As described above:

    arduinoPort = new Serial(this, Serial.list()[0], 9600);    // Set arduino to 9600 baud
    

    My piece of code

    arduinoPort = new Serial(this, Serial.list()[5], 9600);    // Set arduino to 9600 baud
    

    Hope this is useful. I've seen a lot of comments with this problem. Thank you for this amazing tutorial, looking forward to control my motors with my cellphone.

No public wish lists :(