Yeah I have to agree with you on that :lol!Today begins the testing, I wrote some basic code, got everything hooked up... realised I forgot to charge the batteries. So now I'm waiting for them to charge.
Time for a disclaimer
At this point I want to say that if anybody uses my methods for Youtube or any social media stuff, please apply full credits to my Facebook page and Youtube Channel: "Candee Geeks" with appropriate links.
It is also worth noting that I do NOT authorise people to use this instructional for personal monetary gain without contacting me first and reaching an agreement. I will likely give full rights on a % per sale basis to any company or person that wishes to install my setup into their commissions.
If you can't do this yourself and want a kit, hit me up directly and I'm sure we can work something out.
If you do find someone using this method for sales, please let me know.
If you do own a prop making business, hit me up, lets talk.
Basically just be fair!
Anyway, looks like the batteries are charged now, so lets have a play.
#include <Servo.h>
Servo rightTop; // Define top right eyelid
Servo rightBottom; // define bottom right eyelid
Servo leftTop; // Define top left eyelid
Servo leftBottom; // Define bottom left eyelid
boolean open = false;
// code for RGB LED's in the eyes:
int red = 2;
int green = 4;
int blue = 7;
void setup()
{
pinMode (green, OUTPUT);
digitalWrite (green, HIGH);
pinMode (blue, OUTPUT);
digitalWrite (blue, HIGH);
pinMode (red, OUTPUT);
digitalWrite (red, HIGH);
rightTop.attach(3);
rightBottom.attach(5);
leftTop.attach(6);
leftBottom.attach(9);
rightTop.writeMicroseconds(0); // set servo to 0 position when mask is powered on
rightBottom.writeMicroseconds(0); // set servo to 0 position when mask is powered on
leftTop.writeMicroseconds(0); // set servo to 0 position when mask is powered on
leftBottom.writeMicroseconds(0); // set servo to 0 position when mask is powered on
delay(1000); // Wait for servos to reach 0 position
rightTop.detach();
rightBottom.detach();
leftTop.detach();
leftBottom.detach();
}
// test code
void loop() {
rightTop.attach(3);
rightTop.writeMicroseconds(0); // Ensure servo is at start point
delay(500);
rightTop.writeMicroseconds(2000); // Take servo to maximum position
delay(500);
rightTop.detach();
delay(3000);
}
//Eyes fully closed, squinting
void closed() {
}
void winkL() {
}
void winkR(){
}
void Open(){
}
//Spidey has seen something cute
void bottomLidsUp(){
}
//Instakill squints both eyes and shines red LED.. Later it will create Karen sound effect "Instakill mode activated"
void instakill(){
}
//Malfunction has both eyes flickering up and down possibly LED's changing colour
void malfunction(){
}
OK here's a demo video of one servo moving using the code above. I'm waiting for Tjacks face shells to arrive now, then I'll just complete the project.
https://www.facebook.com/CandeeGeeks/videos/1201329389973086/
SOMEBODY TALK TO MEEEEEEEEEE :'(
It's lonely in here
Honestly this is my second favourite moving shell with macl34n on the first place but it could really get the first place :thumbsup keep up the good work, you 're truly skilled.
btw don't worry when you don't get any comments, I always keep an eye to this.