Warning: Use of undefined constant DB_CHARSET - assumed 'DB_CHARSET' (this will throw an Error in a future version of PHP) in /home/forge/floriansweb.com/wp-content/plugins/wordpress-flickr-manager/FlickrManager.php on line 109
arduino motoshield soldering action | Floriansweb

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>

Leave a comment

Your comment