2013年10月27日 星期日

Chrome App (3) - Arduino Servo Motor

RCサーボモータをArduinoとChromeAppで制御
Chrome App to control Arduino Servo Motor
以Chrome App 控制 Arduino 伺服馬達

From Google ChromeApp samples, there is a servo motor.sample code. So I base on that sample, and modify a little bit to my previous Arduino-test-led demo.
  In this demo,  you can just use the slider in the Chrome App to control the servo motor attached to the Arduino. In order to make the code simpler, the range of the slider is only 10(0 to 9). Whenever you change the slider, a character of '0' to '9' will be sent to Arduino.
  This is a rather simple demo, but it is the preparation to my next small project. Hopefully it will make you feel more interesting.

Here you can find my source code for both Chrome App and Arduino.
https://github.com/winghackerspace/chromeapp_sample/tree/master/arduino_test_servo

The reference Chrome-app-samples is
https://github.com/GoogleChrome/chrome-app-samples/tree/master/servo


2 則留言:

  1. Great articles!
    Will you have YouTube videos to demonstrate the interactions between your Chrome apps and the motor?

    回覆刪除
  2. Mr. Ant, since this is only a simple test preparing for next project, and it is too simple to demonstrate (just click the slider on chrome app, then the servo rotate...), so I will not make a videos. But I am now preparing the second servo motor project, and there will be video this time, wait a couple days.

    回覆刪除