arduino motoshield soldering action

After about 2 houres of soldering everything works well :)

Now i can control my servo & dc motor with ease

#include <servotimer1 .h>
 
ServoTimer1 servo1;
ServoTimer1 servo2;
 
void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Servo test!");
  servo1.attach(10);
  servo2.attach(9);
}
 
 
void loop() {
  Serial.print("tick");
  servo1.write(180);
  servo2.write(0);
  delay(1000);
 
  Serial.print("tock");
  servo1.write(0);
  servo2.write(180);
  delay(1000);
}
</servotimer1>

Related posts:

  1. Arduino + Wishield + LED Matrix = a lot of fun! socketapp.c extern char buffer[20]; static int handle_connection(struct socket_app_state *s)...
  2. Arduino iphone Webinterface + Alcohol Sensor Erreichte Ziele Arduino über Webinterface gesteuert (LED an/aus) Alcohol...
  3. Arduino LED Matrix Control Part II With the Arduino app you can control a led...
  4. Arduino LED Matrix Controlling by iPhone Today i ported the mac ArduinoControll app to my iPhone....

Ähnliche Artikel bereitgestellt von Yet Another Related Posts Plugin.

Leave a comment

Your comment