Iron man motorised faceplate electronics tutorial!!!

Yeah I'm hoping for some real world examples of people who have theirs done. I have mine planned out as well, but seeing other people's completed results helps a lot more than anything else.
 
So...... I've tried a few things, one time it actually worked. And for quite some time too... then it conked out so i deceided to rewire it all. Now its not working. Not sure if it's the code or not, I'd really appreciate it if anyone could tell me if they see any obvious errors.

#include <Servo.h>

// Set digital pin numbers:
const int servoPin = 9; // The number of the Servo1 pin
const int servo2Pin = 8; // The number of the Servo2 pin
const int buttonPin = 11; // The number of the Pushbutton pin

int buttonState = 0; // Variable for reading the pushbutton status
int directionState = 0; // Variable for reading direction of the servo

Servo myservo1; // Create servo object to control servo1
Servo myservo2; // Create servo object to control servo2

int pos = 0; // Variable to store the servo position


void setup() {
myservo1.attach(9); // attaches the servo on pin 7 to the servo object
myservo2.attach(8); // attaches the servo on pin 8 to the servo object
pinMode(buttonPin, INPUT); // initialize the pushbutton pin as an input

}

void loop(){
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);

if (directionState == 0){
//The button is pushed
if (buttonState == HIGH) {
directionState = 1;// The direction for the servo is clockwise
for(pos = 0; pos < 180; pos=pos+9) // goes from 0 degrees to 180 degrees in steps of 1 degree
{
myservo1.write(pos); // tell servo to go to position in variable 'pos'
myservo2.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}

} else if (directionState == 1) {
// The button is pushed
if (buttonState == HIGH) {
directionState = 0; // The direction for the servo is anti-clockwise
for(pos = 180; pos>=1; pos=pos-9) // goes from 180 degrees to 0 degrees in steps of 1 degree
{
myservo1.write(pos); // tell servo to go to position in variable 'pos'
myservo2.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
}

}
 
Please do a google search for xrobots plastic coating foam method. It's VERY VERY nacky but the results are amazing. This was my most recent build using this method. It's not perfect but it's a hell of a lot quicker than pepping and body filling. This suit is just foam and smooth-on 65d and it is SOLID!

View attachment 219301

http://img.tapatalk.com/d/13/08/13/7aba5uny.jpg

Here's my suit so far.
Check out my site

IRONMANOFMAINE.WEEBLY.COM
a8ahyhah.jpg
 
Hey guys, im just about ready to program my helmet and get this all started.... one problem, i have no idea where to even begin!!!!!! i currently have 2 Hi-tec hs-85bb servo motors a switch and an arduino micro and 6 L.E.D.'s . my question is, can i skip the whole breadboard stage and if so maybe somebody can tell me what to begin with here for the love of ****** in heaven!?!?!?!?! any help is much appreciated
 
1.) I wouldnt skip the breadboard stage.. it will help you understand.. and possibly avoid mistakes until you are comfortable with what you are working with.
2.) I dont see any mention of the battery pack/type you are using
3.) I dont see any mention f voltage regulators..etc.
4.) I dont see any mention of transistor to swtich/control that many leds (unless you a planning on using 3-6 pins just for the eyes?)

my suggestion is follow mine or members wiring diagram and code...
 
Last edited:
1.) I would skip the breadboard stage.. it will help you understand.. and possibly avoid mistakes until you are comfortable with what you are working with.
2.) I dont see any mention of the battery pack/type you are using
3.) I dont see any mention f voltage regulators..etc.
4.) I dont see any mention of transistor to swtich/control that many leds (unless you a planning on using 3-6 pins just for the eyes?)

my suggestion is follow mine or members wiring diagram and code...


yea i understand im leaving alot out here, i couldn't even tell you the answer to what you are asking.. i just wanna know if theres a dummy proof way of plugging the wires from a-b and thats it. its complete noob logic but again, even after ready everything in this thread i am still completely lost.
 
Hey guys, im just about ready to program my helmet and get this all started.... one problem, i have no idea where to even begin!!!!!! i currently have 2 Hi-tec hs-85bb servo motors a switch and an arduino micro and 6 L.E.D.'s . my question is, can i skip the whole breadboard stage and if so maybe somebody can tell me what to begin with here for the love of ****** in heaven!?!?!?!?! any help is much appreciated

I think xI97 meant "I WOULDN'T skip the bread board stage". This is important for making sure all your components work and you have everything set up correctly. If you solder all the parts together to find that you missed a step or something is wrong, then unsoldering will be a pain in the ballbag!
The easiest method of starting out is by simply using the guide in the very first post. Step by step this gives you pretty much everything to start out. I'm not really sure how this could be made any easier without someone coming round and doing it for you bud.
 
Ergh! One of my servos has died!
Proof alone in the accuracy of: "if you buy cheap, you buy twice"

Anyone care to suggest some decent quality servos around £10-£20? UK preferred.
 
I think xI97 meant "I WOULDN'T skip the bread board stage". This is important for making sure all your components work and you have everything set up correctly. If you solder all the parts together to find that you missed a step or something is wrong, then unsoldering will be a pain in the ballbag!
The easiest method of starting out is by simply using the guide in the very first post. Step by step this gives you pretty much everything to start out. I'm not really sure how this could be made any easier without someone coming round and doing it for you bud.

haha guys im sorry for the mass histeria that i caused, i blew up this thing waaaayyyy more then i should have. i put my big boy pants on and got through the breadboard stage!!!! the only problem im having right now is trying to stop my servos from vibrating. ive been skimming through this thread and i can seem to find an answer. Ive tried setting the angle of the servos from 180 to 177 but it doesnt seem to do anything, maybe something ive missed??
 
try a large 'decrease' in the servo range..

3 degrees isnt much..

considering most of these hobby servos only have 'around' 150-160 degrees of movement :)


try very SMALL.. movement.. and only de/increment by 10's until you are comfortable with the range *(and no sound/buzz)
then the other way...

try 30 & 150 for your range seem what happens..
 
try a large 'decrease' in the servo range..

3 degrees isnt much..

considering most of these hobby servos only have 'around' 150-160 degrees of movement :)


try very SMALL.. movement.. and only de/increment by 10's until you are comfortable with the range *(and no sound/buzz)
then the other way...

try 30 & 150 for your range seem what happens..


I will ill try it and see what happens, I'll let you know the end result. Thank you, this thread is saving my life:$
 
Back
Top