Please read below. Because this is how I feel.
I have been doing embedded systems for a while and have been coming across posts from this forum (typically through a google search) for several years now. My take away from reading threads on here is almost always that I would not want to be part of that community because it appears to discourage people from learning this technology?
Why does it appear that there is a large population of members who's only contribution is pouncing on new members to assert their knowledge of forum etiquette in a condescending tone? Why do so many posts contain a member demanding that the poster provide the full code and schematics then the member never contributes to the original request, even when it is pretty obvious that the entire code and schematics are not necessary to help the poster with their request?
I get it. This is how people act everywhere to some degree. But why does it seem to an outsider like me that this behavior is more prevalent on this site than others similar sites?
Is that truly how this community wants to be portrayed and represented? Is it really in the best interest of this community to treat new members badly because they did not follow rule #142 correctly or something?
As I alluded to before, I get the impression that the goal of this community is to discourage newcomers from learning and adopting the arduino platform. I don't really believe that, but it sure seems that way to an outsider and I can only imagine how it feels to someone who is struggling to learn a new technology and on the brink of giving up when they come here for guidance and community but instead find rude nerds trying to display their dominance in forum rules knowledge.
Many will not return for a second dose of abuse and for those who do join, a precedent has been set that impolite behavior towards new members is tolerated and accepted/expected.
I personally suspect that this community would flourish if the negative and rude attitudes towards new members were reigned in. You have no way of quantifying how many people read those posts from google search results and decide that they are better off without joining forum.arduino.cc.
Thanks for reading.
Ian
All of you that responded to my original post should take a moment to read the above members thoughts. I'm just trying to interact. I thought I was just being helpful. I took the time and effort to edit a sketch that I found. I made mention in both the post and the sketch the name of the person who made the original sketch. I wasn't trying to piss people off.
With that said, I have been working on the 5 Servo Robotic Arm DIY. I only have 2 of the 5 servos built onto the arm. I'm awaiting additional potentiometers to arrive to complete the build. I will post the project in it's entirety once I have it up and running. Just wanted to see if anyone might be working towards the same pursuit. "Black Flag" me or what ever! Just remember when you started out. And how you were treated.
What comes around, goes around! Everyone have a great day.
// Controlling 5 servos using 5 potentiometers (variable resistor)
// by Daniel Wright 2010-01-14 (Original)
// Updated by Richard Feist 2023-10-29
// based on the Daniel Wright sketch
#include <Servo.h>
Servo myservo1; // create servo object to control the first servo
Servo myservo2; // create servo object to control the second servo
Servo myservo3; // create servo object to control the third servo
Servo myservo4; // create servo object to control the forth servo
Servo myservo5; // create servo object to control the fifth servo
int potpin1 = 0; // analog pin used to connect the first potentiometer
int val1; // variable to read the value from the first analog pin
int potpin2 = 1; // analog pin used to connect the second potentiometer
int val2; // variable to read the value from the second analog pin
int potpin3 = 2; // analog pin used to connect the third potentiometer
int val3; // variable to read the value from the third analog pin
int potpin4 = 3; // analog pin used to connect the forth potentiometer
int val4; // variable to read the value from the forth analog pin
int potpin5 = 4; // analog pin used to connect the fifth potentiometer
int val5; // variable to read the value from the fifth analog pin
void setup()
{
myservo1.attach(3); // attaches the first servo on pin 3 to the servo object
myservo2.attach(5); // attaches the second servo on pin 5 to the servo object
myservo3.attach(6); // attaches the third servo on pin 6 to the servo object
myservo4.attach(9); // attaches the forth servo on pin 9 to the servo object
myservo4.attach(10); // attaches the fifth servo on pin 10 to the servo object
}
void loop()
{
val1 = analogRead(potpin1); // reads the value of the first potentiometer (value between 0 and 1023)
val1 = map(val1, 0, 1023, 0, 180); // scale it to use it with the first servo (value between 0 and 180)
myservo1.write(val1); // sets the first servos position according to the scaled value
delay(15); // waits for the first servo to get there
//
val2 = analogRead(potpin2); // reads the value of the second potentiometer (value between 0 and 1023)
val2 = map(val2, 0, 1023, 0, 180); // scale it to use it with the second servo (value between 0 and 180)
myservo2.write(val2); // sets the second servos position according to the scaled value
delay(15); // waits for the second servo to get there
//
val3 = analogRead(potpin3); // reads the value of the third potentiometer (value between 0 and 1023)
val3 = map(val3, 0, 1023, 0, 180); // scale it to use it with the third servo (value between 0 and 180)
myservo3.write(val3); // sets the third servos position according to the scaled value
delay(15); // waits for the second servo to get there
//
val4 = analogRead(potpin4); // reads the value of the forth potentiometer (value between 0 and 1023)
val4 = map(val4, 0, 1023, 0, 180); // scale it to use it with the forth servo (value between 0 and 180)
myservo4.write(val4); // sets the forth servos position according to the scaled value
delay(15); // waits for the second servo to get there
//
val5 = analogRead(potpin5); // reads the value of the fifth potentiometer (value between 0 and 1023)
val5 = map(val5, 0, 1023, 0, 180); // scale it to use it with the fifth servo (value between 0 and 180)
myservo5.write(val5); // sets the fifth servos position according to the scaled value
delay(15); // waits for the second servo to get there
}
Have I posted the code above correctly? Trying to learn!