I think LED lit rockers just use power going through the switch to light the led. I have the LEDs programmed to indicate which program is running
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Easily. The regular Arduino uno can control up to 12 servos. Obviously changes to program will have to happen.And would it be ok to run four servos off of the board?
Understood. But they are cheap so I'll just buy extras.Just as an FYI to everyone. Servo motors will wear out. The position feedback within a servo is provided by an internal potentiometer. Eventually the wiper or resistor surface will wear out and the servo will stop functioning. Some servos are more durable than others, and as of now I have no idea how long this will last with the servo I specified. Please consider that servos might be a consumable in this system.
I can try to help. I don't know if attaching to a single pin would work. A separate pot for each servo will not work with the coding method I'm using. More complex codes using millis instead of delay can make this work.I think it would be really cool to have a separate pot and set of switches for each servo if possible.
I would just hate to buy a separate board for each powerhead since there would be fourI can try to help. I don't know if attaching to a single pin would work. A separate pot for each servo will not work with the coding method I'm using. More complex codes using millis instead of delay can make this work.
Check the link below for some hints on how to implement more than one servo.
Or you can always just buy another board...
https://forum.arduino.cc/index.php?topic=363365.0
Well, I guess I could. Not like the boards are that big. I was just concerned about space but I have plenty of room. Maybe I'll do that. Just to keep the programming simple and not have them all not work if a board goes bad or something.I would just hate to buy a separate board for each powerhead since there would be four
I would just like to be able to control each powerhead separately. I don't want them all moving in an identical pattern/speed in unison. I think I'll just order 4 boards and 4 servos and have them each set just slightly different.Are you just trying to achieve multiple sweep speeds?
Ok, slow it down a bit. I think we can figure it outI would just like to be able to control each powerhead separately. I don't want them all moving in an identical pattern/speed in unison. I think I'll just order 4 boards and 4 servos and have them each set just slightly different.
Haha, alright. It's not all that expensive though to have 4 separate boards so they can do different speeds and delays. And I like your idea of using the box the kit comes in as a case!Ok, slow it down a bit. I think we can figure it out
Very beautiful work . Don't you afraid aluminium rusting, inside salt water?
to move the servant I was helped by "mstockmaster" finding the codes to use. I opted for a code with a temp of 600 ms trying to keep the movement quite fluid and constant.
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int point of sale = 0; // variable to store the servo position
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
for (point of sale = 50; point of sale <= 140; point of sale += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(point of sale); // tell servo to go to position in variable 'point of sale'
delay(600); // waits 15ms for the servo to reach the position
}
for (point of sale = 140; point of sale >=50
; point of sale -= 1) { // goes from 150 degrees to 90 degrees
myservo.write(point of sale); // tell servo to go to position in variable 'point of sale'
delay(600); // waits 15ms for the servo to reach the position
}
}
for now it seems good to me as a result.