arduino uno - DC motor speed control by aurdino using processing -


i have attached video link. in dc motor speed controlled using aurdino uno , processing software moving cursor of laptop. want control laptop aero keys. please send me modified program if possible.

https://youtu.be/sqdawycrfu0

you can find program on this:http://www.instructables.com/id/speed-control-of-dc-motor-from-laptop-using-arduin/

please consult the reference , you'll find handy input functions, including keypressed() function. can use input arrow keys.

void keypressed(){     if (keycode == up) {       //up     }      else if (keycode == down) {       //down     }      else if(keycode == left){       //left     }     else if(keycode == right){      //right      } } 

more info can found in this tutorial on user input in processing. (note: wrote tutorial.)

by way, it's hard answer general "how do this" type questions other pointing reference , google. stack overflow designed more specific "i tried x, expected y, got z instead" type questions. need research (googling "processing arrow keys" have gotten pretty far) , post mcve (not external link) if stuck. luck.


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -