This is awesome!! Not so awesome - I saw this on an ad on Facebook.. someone is using your video to scam folks. They claim you can buy it.. which you can't. I thought better of it and searched here on YT and found your video. I have been researching this and grabbed a Pimoroni Servo 2040 board. The programming is different. I have servos, but am not even sure that you can move each servo individually with it. There are example py files, but it appears the servos all move in sync. I'm not a programmer, so much to learn I still have :)
This is absolutely amazing. Fantastic job. More importantly thank you so much for being so open about your project. Having your ideas open source is a great way for the making Community to teach each other. Thank you.
LOVE this project! Thank you 68percentwater for showing us how :-D While making my own version, I discovered that driving more than 5 servos (as pictured in the schematic in these comments) would occasionally bring the supply voltage low enough that the Arduino would brown-out and reboot. With 10 servos, it would *always* draw too much power and never recover. (I was running it off a transformer that supplied a USB end with 5V/500mA). However, with a small change to how power was delivered to the servos, I can run all 10 with no issue: I power the entire servo 5V bus off of the Arduino's 5V pin, instead of drawing it off of the Vin pin - that has made all the difference! I also altered the program a little bit. Rather than writing the new locations in three groups, I round-robin to each servo with 100ms spacing between them. And because I had 30 eyeballs in my pack but only 10 servos, I added some mechanical linkages to allow one servo to drive three eyeballs at three different locations around the pumpkin! I'm building it inside one of those hard foam carveable pumpkins, so I can use it year after year without having to rebuild it.
Nice work, good inspiration, thanks for sharing! I made mine this year: Two eyes only made of ping-pong balls with a 10mm LED in each, the pins of which also served as a lever for the servo (with some hot glue it actually looked as an eye nerve if you will) and a neopixel ring inside for more scary light. And of course, sensors, tried both ultrasonic and PIR, to trigger it all. If I had more time to test, I would even have tried a small speaker to generate some growling sound and bluetooth, which, as we all know, makes everything better. A very cool experiment for that matter, i shall recycle it in a cardboard body and reiterate the next year. ;o)
what did you run it with? what servos did you use? mine died in less than 2 minutes with 4 brand new D cells a 5v 20 amp supply would not even turn one single relay, i used SG 90 and they suck these fucking things need a million amps to work
@@andreamitchell4758 I actually had a half beradboard inside with a cheap power shield (like 2 bucks from China) and ran it on wall plug rated for "12V = 1000 mA" pulled thru a small hole in the back. This was powering the arduino, three SG90s (China, ofc), utrasonic sensor, 16-LEDs neopixel ring and three 10mm LEDs. Perhaps some more knowledgeable of the Ohm law could comment if in my case lower voltage drain (some 5V compared to 12) actually allowed for a higher current?
@@liszcgsedt what does the power shield do? what is it? so 1000mA you mean 1A amp right? so you ran the servos at 12v or the shield steps the voltage down to 6 or 7 volts? i am planning on getting another buck converter like this one i have used before www.ebay.com/itm/DC-DC-CC-CV-Buck-Converter-Step-down-Power-Module-7-32V-to-0-8-28V-12A-300W-USA/182602817113 with an old 18v laptop powwer supply and trying that and yeah 3 sg90s i had not that much trouble powering it was when i got over 5 that i had problems
@@andreamitchell4758 Well, Andrea, this one: m.banggood.com/RobotDyn-Breadboard-Power-Supply-5V3_3V-1A-Module-Board-For-Arduino-DIY-p-1128917.html?rmmds=search. You pin it to a breadboard, plug in either the barrel jack (as I have) or an USB male and select if you want to use 3.3V or 5V - a much more convenient proto solution than being on batteries all the time. So my setup was actually powered with 5V And 1A. As for the buck converter, are you sure it also boosts the current? If it does, I assume it will drain the battery faster so you need enuf capacity either way.
Robert, Yes, I used a hole saw from the outside to cut the smaller diameter. Then used a sharpened coupling to cut the larger diameter from the inside.
@@68percentwater wish i remembered this comment ,cutting the inside of the holes was a bitch for me and then the eyes keep on falling out , and my pipes were not close enough on the inside to be hot glued together i tried using extra pieces i i cut from the couplings to glue them but they still kept falling out , so i had to improvise and use teriyaki sticks bracen against the back to the pumpkin and the backs of the pipes , it was a nightmare
@@andreamitchell4758 Hmmm, I took a roll of tolet paper (the core, I mean), which is just about the 40mm wide as are the ping pong balls I used for eyes, did the cutting with knives and then scraped the inside with a spoon to accomodate for the servos.Wit a bit of luch he eyes (only had two) hold quite good.
protip" do not bother wasting your time it is not worth the effort mine ran for less than 2 minutes on 4 D cells after i complete the electronics and mechanical stuff it took me 6 hours to cut the oes and place the mechanism in , they keep falling out from the back and there is not a power source on earth that can run this for more than 3 minutes unless you are from wakanda and have some vibranium on hand do not bother wasting your time on this
@@andreamitchell4758 you can get a power adapter that plugs in to the wall on amazon. ZJchao 9V 1A Power Adapter for Arduino (2-Flat-Pin Plug / 100CM Cable)
@@pierrevanovermeire , I never did this pumpkin project. I did a different one, and I never got the blinking LEDs working, because they had the wrong connections.
Hello, This is an awesome project I have already started to order the items that you have used for this project, but I do have a couple of questions: 1. Did you link the music in with the Arduino and the servos, or did you just play it in the back ground? 2. Have you considered adding LED lights to this project as well? Please let me know as I will be doing this project and a couple of other ones for a truck or treat contest at my wife's work this year. I can only pray that I win first place as well! 🎃 I will have to wait until the last minute to sign up to keep from scaring everyone else off, LOL. Thanks for any help you can give!
@Ted Zimmermann With LEDs (10mm, hi-luminosity) in each eye it looks cool and they legs even serve as a lever moving them (instead of the wooden stick). I have wired them together so they only occupy one output pin together. As for the sound, you can play around with a buzzer and tone() function and see if you can do something beyond beeping. I got myself (but had no time to test) a cheap SD card reader and a speaker, will want to use them for the next year.
Yes you could but the mechanism can get quite complicated because you need two pivots. The simplest I’ve seen is here : learn.adafruit.com/crickit-controlled-animatronic-eyeball/make-the-eye
I am an old Belgian, beyond my use-by-date and no specialist in electronics, a hobbuist so. I wonder if anyone managed to get this to do with 12 servo’s SG90 Mini Micro. Most of these works on 4, 8V with a max. of 6 V. There is here talked about different kinds of batteries of 4 x AA to 4 x D, to itself of rechargeable. If we make a calculation now, 1) normal batteries give 1,5V x 4pcs = 6 V. 2) rechargeable batteries give 1.2 x 4pcs = 4.8 V. They both are possible, but, now we come to the amperes and that is something else. At an average of 5 V and measure of the ampere the servo use between the 400 and 510 mA. This one must now multiply by 12 pieces = 510 x 12 = 6120 mA. Most batteries in circulation have only 4000 mA so that is the failure I guess. Therefore the batteries have to go to 6000 or 8000 mA. There is no one who says she or he are really succeeded. The biggest reason so far because no one has confirmed how many amperes they need and they are already down and out after a few minutes. What I also see is the speculation with possibilities, DC 9 V 1 A, DC 5 V 20 A, etc. The maker himself "68percentwater" speak of 1, 8V batteries, that is 7, 2V, but no specified amperage. That is possible because many of these servo's have indeed the max. to ± 7V. The DC adapters since I was curious, DC 5V 20A is overkill of amperes but there can still all kinds of other things to connected, like those for which the use is 5V servo. DC 9 V 1 A, then murdered (overkill) one the servos by high power surge. Personally, I would think of DC 5 V 6 à 8 A, and this could succeed. If my interpretation is wrong let me know.
Awesome pumpkin! Is there any way you could show a wiring diagram? I have all the building skills, just not sure where / how to hook the wires up. Thanks
No, However I have been making progress with the project. TinkerCAD Circuits has been a huge help in actually being able to simulate the wiring of this. So I have made my own diagram. If you want to see it let me know. This is a pretty cool project.
Tyson, Thanks. I'm please how this turned out. The code is fairly simple. I change the eye position for each eye based on a randomly generated number. I grouped the eyes into three groups and made sure I placed them in the pumpkin so each group was spread out, interlacing the three groups so they didn't all look like they were starting at the same time. while each eye can only move back an forth, I rotated each eye in a way that some were horizontal, some vertical and other somewhere in between. That gave the illusion that they were searching all over and not just scanning back and forth. This was for a contest at my wife's work. This year she has asked for the pumpkin to shake and vomit. Quite a challenge. I'll post that one if I'm successful. // Random multiple // by 68percentwater // This code generates a random position for each of 12 servos, pauses and then repeats. #include //this is a servo library Servo servo1; // create servo objects to control multiple servos Servo servo2; Servo servo3; Servo servo4; Servo servo5; Servo servo6; Servo servo7; Servo servo8; Servo servo9; Servo servo10; Servo servo11; Servo servo12; int pos = 90; // variable to store the servo position with a starting position of 90 degrees // so the eyes go to the middle at startup void setup() { servo1.attach(2); // attaches the servos on pins 2 - 13 to the servo objects servo2.attach(3); servo3.attach(4); servo4.attach(5); servo5.attach(6); servo6.attach(7); servo7.attach(8); servo8.attach(9); servo9.attach(10); servo10.attach(11); servo11.attach(12); servo12.attach(13); servo1.write(pos); // tell all servos to go to middle position (90 degrees) servo2.write(pos); servo3.write(pos); servo4.write(pos); servo5.write(pos); servo6.write(pos); servo7.write(pos); servo8.write(pos); servo9.write(pos); servo10.write(pos); servo11.write(pos); servo12.write(pos); delay(700); } void loop() // for each servo, generate a random number between 10 and 170 and { // assign to pos then write the pos to the servo. This is done in three groups pos =random(10,170); // with a delay to make it appear the eyes are not all starting at the same time. servo1.write(pos); // I use 10 and 170 because the last 10 deg on either side jammed my pos = random(10,170); // mechanism. Depending on you mech, these might need to be other limits servo2.write(pos); // They don't need to be all the same, each eye can have its own range pos = random(10,170); servo3.write(pos); delay(200); pos = random(10,170); servo4.write(pos); pos = random(10,170); servo5.write(pos); pos = random(10,170); servo6.write(pos); pos = random(10,170); servo7.write(pos); pos = random(10,170); servo8.write(pos); delay(300); pos = random(10,170); servo9.write(pos); pos = random(10,170); servo10.write(pos); pos = random(10,170); servo11.write(pos); pos = random(10,170); servo12.write(pos); delay(200); }
Thanks 68percentwater for your sketch. I can't wait to try it out myself! I'm really new when it comes to Arduino coding so this will help a lot. That really is an amazing pumpkin and crafty engineering. Looking forward to your vomiting, shaking pumpkin as well. Be sure to post a video when finished! I've subscribed so I'll get your update.
yup seems to compile and load fine on the pro mini not tested with the relays yet though but why use such expensive relays? i bought SG90 relays they should work fine for this project and i paid 88 cents EA for 2 of them and then i bought another 10 for like $14 the sg51rs are like $6.00 EA ! also what size hole saw did you use for the outside holes?
Here you go // Random multiple // by 68percentwater // This code generates a random position for each of 12 servos, pauses and then repeats. @/include //this is a servo library Servo servo1; // create servo objects to control multiple servos Servo servo2; Servo servo3; Servo servo4; Servo servo5; Servo servo6; Servo servo7; Servo servo8; Servo servo9; Servo servo10; Servo servo11; Servo servo12; int pos = 90; // variable to store the servo position with a starting position of 90 degrees // so the eyes go to the middle at startup void setup() { servo1.attach(2); // attaches the servos on pins 2 - 13 to the servo objects servo2.attach(3); servo3.attach(4); servo4.attach(5); servo5.attach(6); servo6.attach(7); servo7.attach(8); servo8.attach(9); servo9.attach(10); servo10.attach(11); servo11.attach(12); servo12.attach(13); servo1.write(pos); // tell all servos to go to middle position (90 degrees) servo2.write(pos); servo3.write(pos); servo4.write(pos); servo5.write(pos); servo6.write(pos); servo7.write(pos); servo8.write(pos); servo9.write(pos); servo10.write(pos); servo11.write(pos); servo12.write(pos); delay(700); } void loop() // for each servo, generate a random number between 10 and 170 and { // assign to pos then write the pos to the servo. This is done in three groups pos =random(10,170); // with a delay to make it appear the eyes are not all starting at the same time. servo1.write(pos); // I use 10 and 170 because the last 10 deg on either side jammed my pos = random(10,170); // mechanism. Depending on you mech, these might need to be other limits servo2.write(pos); // They don't need to be all the same, each eye can have its own range pos = random(10,170); servo3.write(pos); delay(200); pos = random(10,170); servo4.write(pos); pos = random(10,170); servo5.write(pos); pos = random(10,170); servo6.write(pos); pos = random(10,170); servo7.write(pos); pos = random(10,170); servo8.write(pos); delay(300); pos = random(10,170); servo9.write(pos); pos = random(10,170); servo10.write(pos); pos = random(10,170); servo11.write(pos); pos = random(10,170); servo12.write(pos); delay(200); }
Anthony, I did not use and motor controller board. Each servo is connected to its own pin on the Arduino. I had 11 servos and used pins 2 through 12. The sketch I wrote has spots for 12 servos, I just didn't hook one up to the final position (pin 13).
@@68percentwater Hey electronic major here. I mention that to show my genuine interest. But can you do a video of the commands you wrote for the arduino to work? Thanks
@@johnsmith6974 John, Take a look at the reply I made to Tyson Poppleton (make sure you click the read more button). In it I listed the code I used which has a fair amount of explanation comments included. If you have more questions please feel free to post them, and I’ll try to answer them.
Don, We only operated it for about three hours. It seemed to be going strong still at that point. We did not leave it on until it died, so I can't comment on ultimate life.
you got really lucky getting those servos instead of the SG90's i built this project with the SG90's and it does not run at all with 4 AA's i got it working but i had to use 4 D cells , nothing else would power it i tried battery banks and wall warts and even large 5v 20 amp power supplies nothing got the servos moving except 4 d cells but i am not sure how long it will run for , the SG90's use a shit ton of current you need a small power station to run them
Ok. I fixed the power issue without using D cell batteries. I did some digging and found that all I needed to do was just wire the power cables to the battery pack, and then just power the Arduino separately with the 9v jack that it came with.
you should probably get SG90's though th eones used in this project are expensive and i can not see the need to for paying for beefier servos with added torque just to move nearly weightless plastic eyeballs , just search for sg90 sorth by price low to high, best deal will probably be to get 10 for like $14 or $15
i just want to say that i completed this project with the SG90's but they do use considerably more current than the ones used in the video nothing was able to power it i tried a 4 AA battery box and several wall warts i even tried a large 5v 20 amp power supply nothing would get the servos to move , i finally just taped up 4 D batteries , cheap sunbeam ones from dollar tree but i think duracell would be much better , i am not sure how long this thing is going to run on the 4 dollar store D cells , i also tried this with an arduino pro mini and had trouble but maybe my pro mini is defective but i did test it with other sketches and it runs them but there are hiccups ,i finally switched to a nano and it is working ,although i can not figure out how to power the nano now. it powers fine from my PC but i was planning on using either a USB type A to micro USB cable plugged into a USB power bank but the power bank shuts off after a few seconds , i tried 2 power banks and the same thing happen and it happens with both the nano and the pro mini via my FTDI , it does not stay on , i also tried to power the nano with the 4 AA battery box through it's raw pin and it also does not work for some strange reason so now i finally have the servos powered but it only works if the nano is plugged into the PC i have no portable way to power the nano i.postimg.cc/W4Rw0jrs/IMG-20181016-184904.jpg i.postimg.cc/8PjR3sm1/IMG-20181016-184824.jpg
Thank you 68percentwater for your comment with "likes your comment". I made these with 12 eyes in a candy basket. The result and explanation can be seen at: ua-cam.com/video/aY7x2LaWKfM/v-deo.html
this is cool. I love trying new stuff on Halloween. This year i am keeping it simple with a projector. This will be a nice add on. Here's something i did with servos, arduino, and Vixen software a few years ago. ua-cam.com/video/8XwHbAjMvCQ/v-deo.html
@Pasco Vasda You can always go for Brithey Spears instead of bitching. This guy graciously presented a concept and even provided a sketch. If you cannot do your shit with all that, go buy a complete thing in shop. Oh, except that they probably do not sell these.
This is awesome!!
Not so awesome - I saw this on an ad on Facebook.. someone is using your video to scam folks.
They claim you can buy it.. which you can't.
I thought better of it and searched here on YT and found your video.
I have been researching this and grabbed a Pimoroni Servo 2040 board. The programming is different. I have servos, but am not even sure that you can move each servo individually with it.
There are example py files, but it appears the servos all move in sync. I'm not a programmer, so much to learn I still have :)
Came here to confirm it was a scam as well!
Same, got an ad on Pinterest that led to some sketchy website. Several Amazon sellers have it posted as well.
This is absolutely amazing. Fantastic job. More importantly thank you so much for being so open about your project. Having your ideas open source is a great way for the making Community to teach each other. Thank you.
LOVE this project! Thank you 68percentwater for showing us how :-D
While making my own version, I discovered that driving more than 5 servos (as pictured in the schematic in these comments) would occasionally bring the supply voltage low enough that the Arduino would brown-out and reboot. With 10 servos, it would *always* draw too much power and never recover. (I was running it off a transformer that supplied a USB end with 5V/500mA). However, with a small change to how power was delivered to the servos, I can run all 10 with no issue: I power the entire servo 5V bus off of the Arduino's 5V pin, instead of drawing it off of the Vin pin - that has made all the difference!
I also altered the program a little bit. Rather than writing the new locations in three groups, I round-robin to each servo with 100ms spacing between them. And because I had 30 eyeballs in my pack but only 10 servos, I added some mechanical linkages to allow one servo to drive three eyeballs at three different locations around the pumpkin! I'm building it inside one of those hard foam carveable pumpkins, so I can use it year after year without having to rebuild it.
I would love to see some pictures or video when you are done!
I love the eye mechanism. I'm using it for one of my projects. Thanks for sharing.
So awesome! Great job.
Creepy and awesome! Thanks for sharing 🎃
I had a bag of creepy eyes like that and wanted to do something like this with them. Thanks for all the tips!
Coolest Halloween Project Ever :D
Amazing! 👍🏻👍🏻👍🏻
AMAZING!!
great job!
Nice work, good inspiration, thanks for sharing! I made mine this year: Two eyes only made of ping-pong balls with a 10mm LED in each, the pins of which also served as a lever for the servo (with some hot glue it actually looked as an eye nerve if you will) and a neopixel ring inside for more scary light. And of course, sensors, tried both ultrasonic and PIR, to trigger it all. If I had more time to test, I would even have tried a small speaker to generate some growling sound and bluetooth, which, as we all know, makes everything better. A very cool experiment for that matter, i shall recycle it in a cardboard body and reiterate the next year. ;o)
what did you run it with?
what servos did you use? mine died in less than 2 minutes with 4 brand new D cells
a 5v 20 amp supply would not even turn one single relay, i used SG 90 and they suck these
fucking things need a million amps to work
@@andreamitchell4758 I actually had a half beradboard inside with a cheap power shield (like 2 bucks from China) and ran it on wall plug rated for "12V = 1000 mA" pulled thru a small hole in the back. This was powering the arduino, three SG90s (China, ofc), utrasonic sensor, 16-LEDs neopixel ring and three 10mm LEDs. Perhaps some more knowledgeable of the Ohm law could comment if in my case lower voltage drain (some 5V compared to 12) actually allowed for a higher current?
@@liszcgsedt what does the power shield do? what is it?
so 1000mA you mean 1A amp right?
so you ran the servos at 12v or the shield steps the voltage down to 6 or 7 volts?
i am planning on getting another buck converter like this one i have used before
www.ebay.com/itm/DC-DC-CC-CV-Buck-Converter-Step-down-Power-Module-7-32V-to-0-8-28V-12A-300W-USA/182602817113 with an old 18v laptop powwer supply and trying that
and yeah 3 sg90s i had not that much trouble powering it was when i got over 5 that i had problems
@@andreamitchell4758 Well, Andrea, this one: m.banggood.com/RobotDyn-Breadboard-Power-Supply-5V3_3V-1A-Module-Board-For-Arduino-DIY-p-1128917.html?rmmds=search. You pin it to a breadboard, plug in either the barrel jack (as I have) or an USB male and select if you want to use 3.3V or 5V - a much more convenient proto solution than being on batteries all the time. So my setup was actually powered with 5V And 1A.
As for the buck converter, are you sure it also boosts the current? If it does, I assume it will drain the battery faster so you need enuf capacity either way.
I would also be interested in seeing your code!!
EPIC
Great project. Did you use a hole saw to cut the holes? Looks very neat.
Robert,
Yes, I used a hole saw from the outside to cut the smaller diameter. Then used a sharpened coupling to cut the larger diameter from the inside.
#saw #project #guarden
@@68percentwater wish i remembered this comment ,cutting the inside of the holes was a bitch for me
and then the eyes keep on falling out , and my pipes were not close enough on the inside to be hot glued together
i tried using extra pieces i i cut from the couplings to glue them but they still kept falling out , so i had to improvise and use teriyaki sticks bracen against the back to the pumpkin and the backs of the pipes , it was a nightmare
@@andreamitchell4758 Hmmm, I took a roll of tolet paper (the core, I mean), which is just about the 40mm wide as are the ping pong balls I used for eyes, did the cutting with knives and then scraped the inside with a spoon to accomodate for the servos.Wit a bit of luch he eyes (only had two) hold quite good.
Should use a Servo Driver with that many Servo's running.......
Love the project! My kids asked about the music in the video. What Halloween track is that?
Casey,
The album is called " Halloween Haunted House - 250 tracks of terrifying horror music & spooky scary sounds". The track is "night of terror".
I wish I found this project in time to make it for this year! I am limping through one that has blinking lights for eyes and plays "Halloween" theme.
protip" do not bother wasting your time it is not worth the effort
mine ran for less than 2 minutes on 4 D cells after i complete the electronics and mechanical stuff it took me 6 hours to cut the oes and place the mechanism in , they keep falling out from the back and there is not a power source on earth that can run this for more than 3 minutes
unless you are from wakanda and have some vibranium on hand do not bother wasting your time on this
@@andreamitchell4758 you can get a power adapter that plugs in to the wall on amazon. ZJchao 9V 1A Power Adapter for Arduino (2-Flat-Pin Plug / 100CM Cable)
@@rebeccahumbarger8647 that won't be enough current to power 11 sg90's ,no way i tried a 5v 20 amp supply and it didn't even move one of them
@@rebeccahumbarger8647 And now the work 12 servos on which 9V 1A?
@@pierrevanovermeire , I never did this pumpkin project. I did a different one, and I never got the blinking LEDs working, because they had the wrong connections.
Hello,
This is an awesome project I have already started to order the items that you have used for this project, but I do have a couple of questions:
1. Did you link the music in with the Arduino and the servos, or did you just play it in the back ground?
2. Have you considered adding LED lights to this project as well?
Please let me know as I will be doing this project and a couple of other ones for a truck or treat contest at my wife's work this year. I can only pray that I win first place as well! 🎃 I will have to wait until the last minute to sign up to keep from scaring everyone else off, LOL.
Thanks for any help you can give!
Ted,
No, there is no music linked to the arduino. The only lighting I added was an electronic candle.
@Ted Zimmermann With LEDs (10mm, hi-luminosity) in each eye it looks cool and they legs even serve as a lever moving them (instead of the wooden stick). I have wired them together so they only occupy one output pin together.
As for the sound, you can play around with a buzzer and tone() function and see if you can do something beyond beeping. I got myself (but had no time to test) a cheap SD card reader and a speaker, will want to use them for the next year.
I'm going to try to make one on Saturday! Wish me luck :)
good luck!
@@johnsims6202 you will need it unless you have a nuclear cesium batter on hand, do not expect to get it to run for more than 2 minutes
This is incredible! Most creepy pumpkin prop ever! Did the servo's make a lot of noise?
FlyMario,
Not too much. With the top on, it was hard to hear them unless the room was quiet.
could you attach 2 motors in 2 different positions to get one eye to move up and down and also side to side?
Yes you could but the mechanism can get quite complicated because you need two pivots. The simplest I’ve seen is here : learn.adafruit.com/crickit-controlled-animatronic-eyeball/make-the-eye
Problem with sg90 tower pro servo. Is. Mine will not return to park zero. Even though I put it in the code
I am an old Belgian, beyond my use-by-date and no specialist in electronics, a hobbuist so.
I wonder if anyone managed to get this to do with 12 servo’s SG90 Mini Micro.
Most of these works on 4, 8V with a max. of 6 V.
There is here talked about different kinds of batteries of 4 x AA to 4 x D, to itself of rechargeable.
If we make a calculation now,
1) normal batteries give 1,5V x 4pcs = 6 V.
2) rechargeable batteries give 1.2 x 4pcs = 4.8 V.
They both are possible, but, now we come to the amperes and that is something else. At an average of 5 V and measure of the ampere the servo use between the 400 and 510 mA.
This one must now multiply by 12 pieces = 510 x 12 = 6120 mA.
Most batteries in circulation have only 4000 mA so that is the failure I guess.
Therefore the batteries have to go to 6000 or 8000 mA.
There is no one who says she or he are really succeeded. The biggest reason so far because no one has confirmed how many amperes they need and they are already down and out after a few minutes.
What I also see is the speculation with possibilities, DC 9 V 1 A, DC 5 V 20 A, etc.
The maker himself "68percentwater" speak of 1, 8V batteries, that is 7, 2V, but no specified amperage. That is possible because many of these servo's have indeed the max. to ± 7V.
The DC adapters since I was curious, DC 5V 20A is overkill of amperes but there can still all kinds of other things to connected, like those for which the use is 5V servo.
DC 9 V 1 A, then murdered (overkill) one the servos by high power surge.
Personally, I would think of DC 5 V 6 à 8 A, and this could succeed.
If my interpretation is wrong let me know.
Have done a test with a DC wall adapter from 5V 5A and it works for 12 x SG90 servos.
Nope. Fairly certain I would stomp on it. Freaky AF! :O
Awesome pumpkin! Is there any way you could show a wiring diagram? I have all the building skills, just not sure where / how to hook the wires up. Thanks
did you ever get the wiring diagram John?
No, However I have been making progress with the project. TinkerCAD Circuits has been a huge help in actually being able to simulate the wiring of this. So I have made my own diagram. If you want to see it let me know. This is a pretty cool project.
I received a sketch from Tyson..thanks
If I can not get mine to actually work may I compare my sketch with yours?
Sure
This is awesome! Would you be willing to post your Arduino Sketch?
Tyson,
Thanks. I'm please how this turned out. The code is fairly simple. I change the eye position for each eye based on a randomly generated number. I grouped the eyes into three groups and made sure I placed them in the pumpkin so each group was spread out, interlacing the three groups so they didn't all look like they were starting at the same time. while each eye can only move back an forth, I rotated each eye in a way that some were horizontal, some vertical and other somewhere in between. That gave the illusion that they were searching all over and not just scanning back and forth. This was for a contest at my wife's work. This year she has asked for the pumpkin to shake and vomit. Quite a challenge. I'll post that one if I'm successful.
// Random multiple
// by 68percentwater
// This code generates a random position for each of 12 servos, pauses and then repeats.
#include //this is a servo library
Servo servo1; // create servo objects to control multiple servos
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;
Servo servo6;
Servo servo7;
Servo servo8;
Servo servo9;
Servo servo10;
Servo servo11;
Servo servo12;
int pos = 90; // variable to store the servo position with a starting position of 90 degrees
// so the eyes go to the middle at startup
void setup()
{
servo1.attach(2); // attaches the servos on pins 2 - 13 to the servo objects
servo2.attach(3);
servo3.attach(4);
servo4.attach(5);
servo5.attach(6);
servo6.attach(7);
servo7.attach(8);
servo8.attach(9);
servo9.attach(10);
servo10.attach(11);
servo11.attach(12);
servo12.attach(13);
servo1.write(pos); // tell all servos to go to middle position (90 degrees)
servo2.write(pos);
servo3.write(pos);
servo4.write(pos);
servo5.write(pos);
servo6.write(pos);
servo7.write(pos);
servo8.write(pos);
servo9.write(pos);
servo10.write(pos);
servo11.write(pos);
servo12.write(pos);
delay(700);
}
void loop() // for each servo, generate a random number between 10 and 170 and
{ // assign to pos then write the pos to the servo. This is done in three groups
pos =random(10,170); // with a delay to make it appear the eyes are not all starting at the same time.
servo1.write(pos); // I use 10 and 170 because the last 10 deg on either side jammed my
pos = random(10,170); // mechanism. Depending on you mech, these might need to be other limits
servo2.write(pos); // They don't need to be all the same, each eye can have its own range
pos = random(10,170);
servo3.write(pos);
delay(200);
pos = random(10,170);
servo4.write(pos);
pos = random(10,170);
servo5.write(pos);
pos = random(10,170);
servo6.write(pos);
pos = random(10,170);
servo7.write(pos);
pos = random(10,170);
servo8.write(pos);
delay(300);
pos = random(10,170);
servo9.write(pos);
pos = random(10,170);
servo10.write(pos);
pos = random(10,170);
servo11.write(pos);
pos = random(10,170);
servo12.write(pos);
delay(200);
}
Thanks 68percentwater for your sketch. I can't wait to try it out myself! I'm really new when it comes to Arduino coding so this will help a lot. That really is an amazing pumpkin and crafty engineering.
Looking forward to your vomiting, shaking pumpkin as well. Be sure to post a video when finished! I've subscribed so I'll get your update.
68percentwater 😰😱 vomiting & shaking one yr ago
will it run on a pro mini?
yup seems to compile and load fine on the pro mini
not tested with the relays yet though
but why use such expensive relays?
i bought SG90 relays they should work fine for this project and i paid 88 cents EA for 2 of them
and then i bought another 10 for like $14
the sg51rs are like $6.00 EA !
also what size hole saw did you use for the outside holes?
Although I checked the comments there is no code for it, would you like to share it again please?
Here you go
// Random multiple
// by 68percentwater
// This code generates a random position for each of 12 servos, pauses and then repeats.
@/include //this is a servo library
Servo servo1; // create servo objects to control multiple servos
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;
Servo servo6;
Servo servo7;
Servo servo8;
Servo servo9;
Servo servo10;
Servo servo11;
Servo servo12;
int pos = 90; // variable to store the servo position with a starting position of 90 degrees
// so the eyes go to the middle at startup
void setup()
{
servo1.attach(2); // attaches the servos on pins 2 - 13 to the servo objects
servo2.attach(3);
servo3.attach(4);
servo4.attach(5);
servo5.attach(6);
servo6.attach(7);
servo7.attach(8);
servo8.attach(9);
servo9.attach(10);
servo10.attach(11);
servo11.attach(12);
servo12.attach(13);
servo1.write(pos); // tell all servos to go to middle position (90 degrees)
servo2.write(pos);
servo3.write(pos);
servo4.write(pos);
servo5.write(pos);
servo6.write(pos);
servo7.write(pos);
servo8.write(pos);
servo9.write(pos);
servo10.write(pos);
servo11.write(pos);
servo12.write(pos);
delay(700);
}
void loop() // for each servo, generate a random number between 10 and 170 and
{ // assign to pos then write the pos to the servo. This is done in three groups
pos =random(10,170); // with a delay to make it appear the eyes are not all starting at the same time.
servo1.write(pos); // I use 10 and 170 because the last 10 deg on either side jammed my
pos = random(10,170); // mechanism. Depending on you mech, these might need to be other limits
servo2.write(pos); // They don't need to be all the same, each eye can have its own range
pos = random(10,170);
servo3.write(pos);
delay(200);
pos = random(10,170);
servo4.write(pos);
pos = random(10,170);
servo5.write(pos);
pos = random(10,170);
servo6.write(pos);
pos = random(10,170);
servo7.write(pos);
pos = random(10,170);
servo8.write(pos);
delay(300);
pos = random(10,170);
servo9.write(pos);
pos = random(10,170);
servo10.write(pos);
pos = random(10,170);
servo11.write(pos);
pos = random(10,170);
servo12.write(pos);
delay(200);
}
Next make pumkin with moving worms...
Hello, this pumpkin with many eyes is your invention and design, I want to buy his patent can I?
Need infrared motion sensor controlled eyes.
Awesome! Did you use a servo motor controller or just connect them all to the same pin on the arduino?
Whoops, I just saw the sketch you posted. Thanks!
Anthony,
I did not use and motor controller board. Each servo is connected to its own pin on the Arduino. I had 11 servos and used pins 2 through 12. The sketch I wrote has spots for 12 servos, I just didn't hook one up to the final position (pin 13).
@@68percentwater Hey electronic major here. I mention that to show my genuine interest. But can you do a video of the commands you wrote for the arduino to work? Thanks
@@johnsmith6974 John,
Take a look at the reply I made to Tyson Poppleton (make sure you click the read more button). In it I listed the code I used which has a fair amount of explanation comments included. If you have more questions please feel free to post them, and I’ll try to answer them.
What sort of battery life were you getting with continuous operation?
Don,
We only operated it for about three hours. It seemed to be going strong still at that point. We did not leave it on until it died, so I can't comment on ultimate life.
n
you got really lucky getting those servos instead of the SG90's
i built this project with the SG90's and it does not run at all with 4 AA's i got it working but i had to use 4 D cells , nothing else would power it i tried battery banks and wall warts and even large 5v 20 amp power supplies nothing got the servos moving except 4 d cells but i am not sure how long it will run for , the SG90's use a shit ton of current you need a small power station to run them
I am running into that problem now as I am hooking up & checking the servos.. 4 D cells, wow. I'm using 10 SG90'S.
Ok. I fixed the power issue without using D cell batteries. I did some digging and found that all I needed to do was just wire the power cables to the battery pack, and then just power the Arduino separately with the 9v jack that it came with.
Where do you buy the servo's at? I'm new to arduino and just want to experiment with this. Thanks.
ebay
you should probably get SG90's though th eones used in this project are expensive and i can not see the need to for paying for beefier servos with added torque just to move nearly weightless plastic eyeballs , just search for sg90 sorth by price low to high, best deal will probably be to get 10 for like $14 or $15
banggood.com really cheap stuff
i just want to say that i completed this project with the SG90's but they do use considerably more current than the ones used in the video nothing was able to power it i tried a 4 AA battery box and several wall warts i even tried a large 5v 20 amp power supply nothing would get the servos to move , i finally just taped up 4 D batteries , cheap sunbeam ones from dollar tree but i think duracell would be much better , i am not sure how long this thing is going to run on the 4 dollar store D cells , i also tried this with an arduino pro mini and had trouble but maybe my pro mini is defective but i did test it with other sketches and it runs them but there are hiccups ,i finally switched to a nano and it is working ,although i can not figure out how to power the nano now.
it powers fine from my PC but i was planning on using either a USB type A to micro USB cable plugged into a USB power bank but the power bank shuts off after a few seconds , i tried 2 power banks and the same thing happen and it happens with both the nano and the pro mini via my FTDI , it does not stay on , i also tried to power the nano with the 4 AA battery box through it's raw pin and it also does not work for some strange reason
so now i finally have the servos powered but it only works if the nano is plugged into the PC i have no portable way to power the nano
i.postimg.cc/W4Rw0jrs/IMG-20181016-184904.jpg
i.postimg.cc/8PjR3sm1/IMG-20181016-184824.jpg
can you email me the wiring diagram?
Is there a location on the web I can download the code you used to program the Arduino?
Craig,
The code is in my reply to Tyson Poppleton. Make sure to click “Read more” to display it all. Good luck!
Hi, this is a very cool project. I would like to make it but i m very new in arduino. Can you please post the code you used. Thanks
Thanks Vanessa! Look in the reply I did to Tyson Poppleton (make sure to click the "read more") and the sketch is there. Good luck!
Thanks i didn't see it . Hope it s gonna be easy to do it ;)
I see the code in Tyson's reply but not the sketch
I would give a like but they're currently on 666 so it seems a shame to bump it up
does anyone know where can I buy something like this?
Pumpkin shop?
@68percentwater...can you send me the wiring diagram? sketch?
Phil,
You can find a diagram here: drive.google.com/file/d/1YqJAZiw1RtXxff5Q328xdu97dNvTaBF6/view?usp=sharing
Thank you so much
Thank you 68percentwater for your comment with "likes your comment".
I made these with 12 eyes in a candy basket.
The result and explanation can be seen at: ua-cam.com/video/aY7x2LaWKfM/v-deo.html
this is cool. I love trying new stuff on Halloween. This year i am keeping it simple with a projector. This will be a nice add on. Here's something i did with servos, arduino, and Vixen software a few years ago. ua-cam.com/video/8XwHbAjMvCQ/v-deo.html
I think I was scammed! Just a pumpkin with eyes that do nothing
That much bandwidth used up for a slideshow? if I'm going to be on UA-cam I want video. Don't waste my time don't waste my bandwidth.
@Pasco Vasda You can always go for Brithey Spears instead of bitching. This guy graciously presented a concept and even provided a sketch. If you cannot do your shit with all that, go buy a complete thing in shop. Oh, except that they probably do not sell these.