Author Topic: Arduino communicating with Processing  (Read 1444 times)

0 Members and 1 Guest are viewing this topic.

Offline electrochem123Topic starter

  • Newbie
  • Posts: 1
  • Country: gb
Arduino communicating with Processing
« on: December 18, 2016, 06:04:00 pm »
I am using an Arduino to move a stepper motor a number of steps based on data from processing however i am having some problems. I am struggling to send 2 bytes at a time, the code works with one byte but not two. I wrote an Arduino program that read a buffer of 2 bytes this worked but the number of steps the motor moved was not consistent with the value processing was sending it. I think this is due to arduino using either char or byte buffers and not int, how do i do this while keeping everything in int. if anyone could help me send two bytes from processing to arduino.
 

Offline kiran_shrestha

  • Regular Contributor
  • *
  • Posts: 62
  • Country: 00
Re: Arduino communicating with Processing
« Reply #1 on: December 20, 2016, 05:48:50 am »
Why dont you leave your code .. I cant see whats there in the code creating problem...
-------------------------------------------------------------
Thats all
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->