Go Down

Topic: High Speed Actuator (Read 1 time) previous topic - next topic

zoomkat

Quote
All you need is a threaded rod of the desired length, a captive nut that the rod drives, and a geared-down DC motor to rotate the threaded rod.


Don't forget you also have to mount the rod with radial support bearings and an axial thrust bearing.
Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.

ScottA1

Thank you very much everyone. I've gone with a servo. It is so much easier to program. Check out the code...

Code: [Select]
#include "Servo.h"

Servo miservo;
int inBy;

void setup() {
  // attaches a servo connected to pin 10
  miservo.attach(10);  //attach servo to adafruit motor shield
  Serial.begin(9600); //open serial port
  miservo.writeMicroseconds(1450); //set beginning angle
}

void loop() {
  if (Serial.available() >0) {
    inBy = Serial.read();
  if (inBy == 'H') {
    miservo.writeMicroseconds(1900); //turn servo to the LEFT
      }
  if (inBy == 'L') {
    miservo.writeMicroseconds(1000); //turn servo to the RIGHT
   
  }
  if (inBy == 'C') {
    miservo.writeMicroseconds(1450); //turn servo to the CENTER
   
  }
  }
}

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy