# Movie PKE updates

**URL:** <https://forum.gbfans.com/t/movie-pke-updates/13147>\
**Category:** PKE Meters\
**Created:** [June 8, 2010, 10:54pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147 "2010-06-08T22:54:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 8, 2010, 10:54pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/1 "2010-06-08T22:54:22Z")

</div>

I’ll be posting updates in this thread for the movie PKE kits I’m working on, which you can read about here:

[http://www.gbfans.com/community/viewtopic.php?f=31&t=20125](http://www.gbfans.com/community/viewtopic.php?f=31&t=20125)

As for current progress, I’ve finished 95% of the research I needed to do for the circuits, and have picked out all the ICs, LEDs, lenses, & switches I’ll need.

Also did the final bit of research I needed to do on the servos last night, and have purchased a couple which I think will be much more reliable than the ones Hyperdyne sells with his kit. They’re a well known brand name, have got excellent reviews from RC plane enthusiasts regarding their reliabiltiy and accuracy, are just as fast, and have twice the torque.

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 11, 2010, 9:51pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/2 "2010-06-11T21:51:42Z")

</div>

Got the servos in today! Haven’t had a chance to try them out, but I’ve already tested a different brand with the Arduino and didn’t have any issues.

Also placed an order with Sparkfun for the ATMega chip I’ll most likely be using in place of the Arduino Pro Minis.

Will be placing another two orders later this evening with other vendors for more parts Once I get that done, I can give the new servos a test run. I’ll post another update afterwards.

---

<div class="post-metadata">

**Author:** ![abaka](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@abaka](https://forum.gbfans.com/u/abaka)\
**Post date:** [June 11, 2010, 11:47pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/3 "2010-06-11T23:47:25Z")

</div>

Looking forward to seeing this progress

Any more word on the yellow flat head leds that you mentioned using for the wings?

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 12, 2010, 4:18am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/4 "2010-06-12T04:18:44Z")

</div>

> [@abaka](#):
>
> Any more word on the yellow flat head leds that you mentioned using for the wings?

Sadly, no. I just spent another hour and a half searching, but I’ve still been unable to find any… at least, none which are clear and are readily available from a reputable online distributor that I can be sure will have a constant supply of them. I know such an led exists… I found one brand by Toshiba which is used for backlights on LCD screens… but the problem is finding a distributor that carries them and will sell in small quantities to hobbyists.

The search will continue, but for now, I’ve got 100 water-clear 3mm yellow LEDs and 100 clear cylindrical 3mm LED lenses in my shopping cart which I am mere hours away from purchasing. If I can’t find some source for cylindrical leds at a later date, those will look the part.

Here’s what the lenses look like btw. They’re super tiny:

![image](http://www.superbrightleds.com/images/products/led/lens.jpg)

---

<div class="post-metadata">

**Author:** ![abaka](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@abaka](https://forum.gbfans.com/u/abaka)\
**Post date:** [June 12, 2010, 10:42am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/5 "2010-06-12T10:42:54Z")

</div>

Sounds good…Looks like progress is very close with this project

---

<div class="post-metadata">

**Author:** ![ChapterMasterTuShan](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/c/6bbea6/32.png) [@ChapterMasterTuShan](https://forum.gbfans.com/u/ChapterMasterTuShan)\
**Post date:** [June 13, 2010, 3:40am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/6 "2010-06-13T03:40:16Z")

</div>

I’ve had no issue finding flat 3mm yellow LEDs. I happen to have a pile of 100 sitting here I bought after 5 minutes with Google.

Lens caps are extremely brittle, and tend to break very easily, not to mention they have a texture along the side. You’d be better off using acrylic rod.

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 13, 2010, 5:25am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/7 "2010-06-13T05:25:10Z")

</div>

Are those leds water clear, or yellow tinted?

I’ve found plenty of yellow tinted ones, but it would look more accurate to have dome shaped clear ones than yellow tinted cylinders.

Also, did you buy them off ebay or some case-modder site?

I’ve found a few on those places, but I’m not willing to purchase from those sources because they’re unreliable. First, I can’t be assured of a steady supply. They don’t list their inventory, or when they expect to get more stock in. They also don’t list the part number or even the manufacturer so I could source them elsewhere when they run out. And second, they don’t provide links to data sheets, so even if they list information like how wide the beam is, the millicandella rating, the color, or the forward voltage, I can’t verify that it is accurate. So who knows what I’ll actually get. Dudes on ebay are notorious for exaggerating the millicandella ratings of their leds.

The fact is, I’ve spent hours looking for a reliable source for these leds. I’ve been over Mouser, Digikey, Newark/Farnell, Allied, and Octopart with a fine toothed comb, and had no luck.

If you care to tell me where you found these leds, I’ll be happy to take a look. And if it looks like a reliable vendor I can use, I’ll reciprocate by telling you why you were having problems reading your touch switches and how to correct the issue without resorting to using a digital pin as a votlage source.

Now, regarding the acrylic rod…

Acrylic rod and light pipes are essentially the same thing, and I’ve already looked into those. The reason I’m not using light pipes is they’re too transparent. They’re designed to efficiently channel the light to the tip, and as such, very little light would leak out the side.

I’m not certain what they used on the original PKE because the only photos we have of it are rather blurry, but if the fellow who dismantled the pke is correct and they did use bits of rod, I’m gonna go out on a limb here and say those bits of rod were either frosted or milky. They certainly don’t look water clear in the pics. And the fact that the leds are quite visible from the side in the film lends validity to that. Unfortunately, nobody seems to make frosted light pipes, and I’m not willing to risk burning myself with acid to etch them myself.

If I can find some frosted 3mm acrylic rod then maybe I’ll go with that, but right now I’m more focused on getting the prototype up and running than worrying about what I’ll do with the leds. Those can be changed later.

Lastly, as far as the lenses go, I’m gonna have to disagree wirh you there as well. Extremely brittle is an extreme overexaggeration. I just dropped a large tape measure on one from 3", and it was undamaged. I’m sure I could shatter it if I hit it with a hammer a little too hard, or snap off one of the tabs if I applied too much pressure to it, but that’s the lens by itself. Once there’s an led in there providing additional support, the thing would be virtually indestructible to any reasonable level of force one might expect it to be subjected to.

Now, might one go flying off if you drop the PKE on the sidewalk? I suppose. Would it be easily replaced? Most certainly.

But anyway the lenses at this point are hardly a foregone conclusion. If I find a suitable replacement which I can get in steady supply, I’ll go with that instead. It would be cheaper anyway.

---

<div class="post-metadata">

**Author:** ![ChapterMasterTuShan](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/c/6bbea6/32.png) [@ChapterMasterTuShan](https://forum.gbfans.com/u/ChapterMasterTuShan)\
**Post date:** [June 14, 2010, 9:26pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/8 "2010-06-14T21:26:14Z")

</div>

The original PKE used incandescent bulbs with acrylic rod, IIRC.

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 14, 2010, 11:40pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/9 "2010-06-14T23:40:35Z")

</div>

Ugh… I am exhausted. I’ve been up nearly 24 hours trying to get this part order finished.

But I am happy to report that just a few short minutes ago, I finally placed the order. Well, the largest and last of three orders actually. $422 worth of components from Mouser, Sparkfun, and Pololu. That’s on top of everything else I already bought.

This order contains all the parts I need to finish up the RGB PKEs, as well as develop the prototype for the movie PKE kit, and some parts I needed for the RGB trap.

I’ll go into more detail later this evening after I get some sleep. If you ordered an RGB/EGB meter you’ll definitely want to check that update out. 🙂

Now it’s time for bed!

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 15, 2010, 10:19am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/10 "2010-06-15T10:19:30Z")

</div>

(Reposted from the RGB thread, since it is relevant here as well.)

Hey guys,

Now that I’m well rested, I can tell you about those parts I ordered!

First, here is the list of parts I purchased. This list comes from a much larger list that included every part I need and have, alternatives for the parts I needed in case any are every out of stock, additional parts that I thought I might use, and tons more data including part numbers, price per part, how many are actually needed for each pke, and all sorts of notes on stuff like what size resistors I need for vbarious leds given various voltages and current, and what exactly each part is for, like “Smoothing capacitor C1”. So basically, this is about two weeks worth of work compressed down into an easily digested format for ya.

The number before each part is the quanity purchased. A few parts, like the connectors come in groups of 10, 25, or 50, and those part quantities should be multiplied by those numbers. In other words, Qty 3 of a 2 pin connector housing is actually 150 of them.

You may also notice I bought a metric assload of resistors. Turns out, while all components are cheaper in bulk, resistors are super cheap in bulk. So they might be ten cents apiece if I bought 10 of them, but only 1 cent apiece if I purchased 200. So any value of resistor I thought I might need a lot of I just bought 200. Beats paying $2.50 for a package of 10 down at the local electronics surplus store. 🙂

Anyway, here’s the list:

> [@](#):
>
> 200 3mm green LED - clear, 150MCD @ 20mA, 35deg, 41mlm, 568nm, 2.2v
> 
> 10 2" 7-conductor ribbon cable w/ pretinned leads
> 
> 8 Yellow 5mm LED lens
> 
> 10 2" 8-conductor ribbon cable w/ pretinned leads
> 
> 2 Green 3mm LED lens
> 
> 1 ATmega328 28-DIP with Arduino Bootloader
> 
> 1 DIP Sockets Solder Tail - 28-Pin 0.3" row spacing (narrow)
> 
> 1 3-pin 16mhz resonator
> 
> 6 TPIC6B595 500mA shift register
> 
> 6 20 DIP IC socket, 0.3" row spacing (narrow)
> 
> 1 4051 16dip 8-bit multiplexer
> 
> 1 16 DIP IC socket for 4021/4051 (kinked solder tail)
> 
> 1 DIP switch 8pos
> 
> 2 4x2 right-angle header pins
> 
> 200 3mm Green LEDs - clear, 150MCD @ 20mA, 35deg, 41mlm, 568nm, 2.2v
> 
> 1 3M 2" 9 conductor ribbon cable w/ tinned leads
> 
> 1 DPDT slide switch (requires .465" long, .217" wide slot)
> 
> 30 Red LED - 5x2mm rectangular - 2.0typ 2.5max fv, 625nm, 110°, 5mcd & 13mlm @ 10mA
> 
> 10 Green LED -5x2mm rectangular - 2.2typ 2.5max fv, 568nm, 110°, 5mcd & 13mlm @ 10mA
> 
> 10 Yellow LED - 5x2mm rectangular - 2.1typ 2.5max fv, 588nm, 110°, 4mcd & 13mlm @ 10mA
> 
> 30 Red LED 5x2mm rectangular - 2.0typ 2.5max fv, 635nm, 110°, 10mcd & 27mlm @ 20mA
> 
> 10 Green LED 5x2mm rectangular - 2.2typ 2.6max fv, 565nm, 110°, 10mcd & 27mlm @ 20mA
> 
> 10 Yellow LED 5x2mm rectangular - 2.1typ 2.5max fv, 585nm, 110°, 10mcd & 27mlm @ 20mA
> 
> 2 Futaba sub-micro servos
> 
> 1 LM317 adjustable voltage regulator - 1.5A
> 
> 2 10K trimpot - 0.5 watt, single turn, top adjust, 3/8" round
> 
> 2 10K trimpot - 0.5 watt, single turn, top adjust, 1/4" square
> 
> 2 SPST slide switch (requires .465" long, .217" wide slot)
> 
> 1 MCP4921-E/P 12 bit DAC
> 
> 1 TS922IN High Current OPAMP
> 
> 2 8 pin kinked solder tail IC socket
> 
> 1 6" 10 conductor ribbon cable w/ tinned leads
> 
> 5 Arduino Pro Mini 5v
> 
> 3 24pin IC socket 15.24mm row spacing - kinked solder tail
> 
> 6 40 breakaway machine pins
> 
> 5 Round illuminated SPDT switch On-On
> 
> 2 Clear red switch lens
> 
> 1 Solid red switch lens
> 
> 3 Red Switch LED
> 
> 2 Selector knob (top of RGB PKE)
> 
> 6 Rotary switch (2 pole, 2 pos, 60 degree index)
> 
> 1 Green 5mm LED hat
> 
> 3 10K Linear Potentiometer w/ 0.33" long shaft & solder lugs
> 
> 10 25K Audio Potentiometer w/ 0.33" screwdriver shaft & solder lugs
> 
> 50 3mm Yellow LED - Clear, 320mcd @ 20mA, 45deg, 153mlm, 2.05fv (2.4fv max)
> 
> 16 Clear 3mm LED hat
> 
> 5 Piezo 4,000hz
> 
> 4 Hard 9v battery snaps
> 
> 2 40 breakaway right angle headers
> 
> 6 40 breakaway headers
> 
> 10 Electrolytic Capacitor - 47uf 5mm dia, 2mm lead spacingsupply. Optional.
> 
> 10 Ceramic Disc Capacitor .01uF 2.5mm lead spacing
> 
> 20 Multilayer Ceramic Capacitor .1uF 2.5mm lead spacing 20% tolerance
> 
> 10 Electrolytic Capacitor - 1uf 2mm lead spacing
> 
> 10 100uf Electrolytic capacitor
> 
> 200 Resistor - 220 ohm
> 
> 20 Resistor - 240 ohm
> 
> 200 Resistor - 270 ohm
> 
> 200 Resistor - 330 ohm
> 
> 200 Resistor - 560 ohm
> 
> 20 Resistor - 620 ohm
> 
> 200 Resistor - 680 ohm
> 
> 200 Resistor - 1K ohm
> 
> 20 Resistor - 1.5K ohm
> 
> 200 Resistor - 10K ohm
> 
> 2 0.100" (2.54 mm) Breakaway Male Header: 1x40-Pin, Right Angle
> 
> 10 0.100" (2.54 mm) Breakaway Male Header: 1x40-Pin, Straight
> 
> 1 Premium Jumper Wire 50-Piece Rainbow Assortment M-M 6"
> 
> 1 Premium Jumper Wire 50-Piece Rainbow Assortment M-M 12"
> 
> 2 830-Point Breadboard
> 
> 6 0.1" (2.54mm) Crimp Connector Housing: 1x2-Pin 25-Pack
> 
> 2 0.1" (2.54mm) Crimp Connector Housing: 1x3-Pin 25-Pack
> 
> 2 0.1" (2.54mm) Crimp Connector Housing: 2x4-Pin 10-Pack
> 
> 1 Wires with Pre-crimped Terminals 10-Pack F-F 6" Green
> 
> 2 Wires with Pre-crimped Terminals 10-Pack F-F 6" Blue
> 
> 2 Wires with Pre-crimped Terminals 10-Pack F-F 6" Black
> 
> 2 Wires with Pre-crimped Terminals 10-Pack F-F 6" Red
> 
> 2 Wires with Pre-crimped Terminals 10-Pack F-F 12" Red
> 
> 1 Wires with Pre-crimped Terminals 10-Pack F-F 12" Black
> 
> 1 Wires with Pre-crimped Terminals 10-Pack F-F 12" Green
> 
> 3 Wires with Pre-crimped Terminals 5-Pack F-F 24" Black
> 
> 1 Wires with Pre-crimped Terminals 5-Pack F-F 24" Red

---

<div class="post-metadata">

**Author:** ![abaka](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@abaka](https://forum.gbfans.com/u/abaka)\
**Post date:** [June 15, 2010, 11:25am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/11 "2010-06-15T11:25:30Z")

</div>

Interesting to know…but it’s technobabble for me and probably alot of others! Hehehe

How long before you have the prototype PKE movie lights? Not so worried about a prototype with servos…Just a prototype with the all the lights!!

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 15, 2010, 11:57am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/12 "2010-06-15T11:57:00Z")

</div>

Now then…

The parts above are being shipped 2nd day air, so they should be here by thursday. Also, you may want to check out this post in the RGB thread regarding the connector housings in the above list, as they are relevant to the movie PKE circuit as well:

[http://www.gbfans.com/community/viewtopic.php?p=238564#p238564](http://www.gbfans.com/community/viewtopic.php?p=238564#p238564)

I went over some of the RGB specific parts in the other thread, so here I’ll go over some of the parts above which apply to the movie PKE, which is a whole mess of 'em.

First the major chips which may make up the thing:

“ATmega328 28-DIP with Arduino Bootloader”

This is the microcontroller which will be the brains of the PKE. This is the same chip as that found on the Arduino Pro Minis which I used in the RGB pkes, but in a different package. Using this chip will reduce the vertical height of the board, reduce the cost of the board by $20, and will avoid the need to use jumper wires to bring out two of the analog pins to the edge of the board where I can use them. It wiill also ensure I don’t have any supply issues down the road if Sparkfun stops making the Pro Mini.

“TPIC6B595 500mA shift register”

This is the chip which will allow me to control the screen and wing leds. This chip can sink 150mA per pin, and 500mA total continously, which is just a massive amount of current. That’s enough to power 25 leds at their maximum current rating at once, with up to 7 leds on each pin. To put this in perspective, the PKE only needs to power three LEDs at once for the screen and wings, and the wing LEDs will likely only need to be run at a quarter of their rated current.

Why use such a massively overpowered chip? Well, there aren’t a lot of in-between chips out there. You can either get a chip like this which is way more than you need, or you can get a chip that can barely supply enough current to power one LED from each pin, let alone three. And, while there are ways to make those wimpy chips capable of supplying more power to your LEDs through the use of transistors or chips with arrays of transistors, you’d then be stuck using two chips or a chip and a handful of transistors. That would increase the size of the board, and the complexity. This chip on the other hand is a simple shift register, the use of shift registers with the Arduino is well documented. So this setup is basically idiot-proof.

“4051 16dip 8-bit multiplexer”

“DIP switch 8pos”

This chip may or may not make it onto the board.

A multiplexer is a chip which allows you to select between eight different inputs (or outputs) using three digital pins on the arduino to select the input, and one more to read from it. In other words, with this chip, using only four pins on the Arduino, I can read 8 dip switches.

Why would I want to read 8 dip switches? I’m glad you asked!

Imagine for a moment that you could select the behavior of the touch switches on the PKE simply by toggling a switch on the board. Imagine if you could select between 4-8 different sounds by doing the same. And imagine you could select whether the green mode led blinks or not, or whether the wing leds animate in the GB1 or GB2 patterns.

That would be pretty cool, right? Well, that’s why I got this chip. The plan is to make the PKE configurable by the end user, so I don’t have to customize them for everyone, and nobody has to decide if they want the meter to have one sound or the other at the time they purchase the meter.

Now, will I have enough space on the board to fit this chip and the dip switches? I dunno. The board is gonna be pretty small. But I’m gonna try, damnit!

“MCP4921-E/P 12 bit DAC”

“TS922IN High Current OPAMP”

These chips are the driving force behind the Wave shield for the Arduino. One major item on my wish list for this PKE is to give it movie accurate sound. That’s probably not going to happen. However, I’ve analyzed the sound from the movie, and investigated several methods of sound generation, and I’ve determined that this is the only one that has any chance of working.

There’s several issues with generating the sound from the film. First, the sound is so complicated there’s very little chance of recreating it in software with FM synthesis. So a sample of the actual sound would need to be used. Second, the sound has a lot of high frequency elements. As a result, at any sampling rate below 22,000hz, it sounds like total crap. That sets a lower bound on how small I can make the sample.

It also means that I cannot generate the sound without this chip by using Pulse Code Modulation. PCM is turning a speaker on and off really fast so the cone can’t keep up and it behaves as if you’re feeing it an analog voltage. It requires no additional hardware, but unfortunately is incapable of handing sounds sampled any higher than 8000hz, because to play a sound with PCM you have to update the speaker many hundreds of times faster than your sampling rate. Another strike against PCM is that the sound it outputs is rather noisy, and really quiet. So even if I could get it to sound decent, I’d still need an amp to make it audible.

The DAC on the other hand is a Digital to Analog Converter. It takes serially input data and converts it to analog voltages. They’re found in virtually every device that generates sounds these days. With one of these, the Arduino can output 22khz sound. The main problems with the DAC solution are that it takes up space on the board, and the Arduino has very limited ram, and a 22khz sound, even at 8bit mono, takes up a lot of space. I have some tricks up my sleeve for reducing the size of the sample, but at this time I don’t know if the Arduino could handle them, and I can’t spend a month experimenting.

So, movie accurate sound: not very likely. But I haven’t given up on it completely just yet. And even if nothing comes of this, I can still use the DAC to experiment with adding sounds to other props.

Well, I guess that covers it. To summarize: Still on track to get all the functionality I promised in there & working on some other goodies.

Oh, and I almost forgot. Servo trim. There’s four trim pots in that parts list. Picked out a couple I liked, one set square, one set larger, but low profile, with a thumbwheel. Those are to allow you to adjust how far the servos swing from side to side. That way you can make sure you don’t have a situation where one arm swings out 90 degrees and the other 95.

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 15, 2010, 12:03pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/13 "2010-06-15T12:03:19Z")

</div>

> [@abaka](#):
>
> Interesting to know…but it’s technobabble for me and probably alot of others! Hehehe
> 
> How long before you have the prototype PKE movie lights? Not so worried about a prototype with servos…Just a prototype with the all the lights!!

Soon! Once I get the parts in, I should have it up and running within a week or so. I already know where all the parts go, it’s just a matter of hooking them up on the breadboards and writing the code. I may build the first prototype with the Arduinos I’m using on the RGB meters just to speed things up a bit.

---

<div class="post-metadata">

**Author:** ![cpu64](https://forum.gbfans.com/user_avatar/forum.gbfans.com/cpu64/32/104792_2.png) [@cpu64](https://forum.gbfans.com/u/cpu64)\
**Post date:** [June 15, 2010, 2:51pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/14 "2010-06-15T14:51:44Z")

</div>

Why not use one servo for both arms? That’s the design I always had in mind when doing PKE brainstorms.

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 15, 2010, 4:25pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/15 "2010-06-15T16:25:11Z")

</div>

> [@CPU64](#):
>
> Why not use one servo for both arms? That’s the design I always had in mind when doing PKE brainstorms.

I’ve wondered that myself. Here’s my thoughts:

Doing that would ensure that the wings move in perfect sync. But it would double the amount of torque the servo needs to deliver.

However, without knowing how much torque is needed, there’s no way to know if that would be an issue. But who cares you need to double the torque, when you can use a bigger servo. You could probably fit a full sized servo in there if you laid it down flat in the center. That would deliver tons of toqrue.

On the other hand, a bigger servo might need more juice. But since we’re only using one, it might actually use less power than the two smaller ones would use together. I don’t have enough data to be sure of that though. I only know what the peak current usage of the servos is, like when you reverse direction or physically prevent the wings from moving while trying to extend them.

Also, a big servo requires a lot more space. Space the circuit board and batteries are competing with. I’m considering sticking 3 AAA’s in there to supply 4.5v instead of a 9v and a voltage regulator, because those would supply ample juice to the servos, and could power the Arduino directly with only some capacitors to reduce ripples and noise in the current induced by the servos. Plus, their voltage would drop much slower than the 9v when high current is drawn, potentially translating into hours of runtime instead of 30 minutes to an hour. Those batteries may take up most of the space in the center of the meter.

A center mounted servo also might more easily get bound up on the wires for the screen or the circuit board itself.

Lastly, there’s the fact that Gunthakela’s wings aren’t designed to be moved with a pushrod. There’s no mounting point for a pivot. You’d have to get a couple extra servo horns and stick em on there. and even then the wings might collide with the pushrods depending on how they’re mounted. And, people simply expect two servos. So regardless of whether I think using one servo would be better, (and that is totally up in the air at the moment) I’m gonna design the kits so they can handle two.

---

<div class="post-metadata">

**Author:** ![ChapterMasterTuShan](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/c/6bbea6/32.png) [@ChapterMasterTuShan](https://forum.gbfans.com/u/ChapterMasterTuShan)\
**Post date:** [June 15, 2010, 10:51pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/16 "2010-06-15T22:51:39Z")

</div>

Servos are digital…I don’t think potentiometers will work with them the way you think. Since the chip needs to interpret the variable input, and you’ll have to code it anyhow, using pots to adjust servos is only going to cause a deal deal of electronic noise, not to mention that things like humidity and temperature can change a pot’s value. Also, it seems that you have way more resistors than needed. From what I can tell, only around 8 are needed for the entire board.

Also, I don’t think you are going to gain anything dimensionally from using a DIP instead of just the complete Pro Mini, especially if you use a 16 pin socket, which you should.

I also think you are greatly underestimating how long it takes to lay out, code, re-layout, alter code, and prototype this circuit. You’re looking at more like a month.

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 15, 2010, 11:43pm UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/17 "2010-06-15T23:43:12Z")

</div>

> [@ChapterMasterTu'Shan](#):
>
> Servos are digital…I don’t think potentiometers will work with them the way you think.

And I don’t think I’ll be using them the way you think.

Why would you assume I’m going to connect the pot to the servo? That wouldn’t even work, unelss your goal was to make the servo rotate more slowly, rather than adjust the travel. The pot is going to be connected to the Arduino, and I’ll be reading the value to decide how far to move the pot, in code.

> [@](#):
>
> Since the chip needs to interpret the variable input, and you’ll have to code it anyhow, using pots to adjust servos is only going to cause a deal deal of electronic noise, not to mention that things like humidity and temperature can change a pot’s value.

Servos have pots in them too you know. If you’re concerned about drift due to the resistance changing, setting fixed values in code isn’t going to solve that problem. At least with trim pots, the end user could quickly and easily make adjustments. And this setup really isn’t any different from what they use on model airplanes. All radio controllers have little slide pots to adjust the trim.

> [@](#):
>
> Also, it seems that you have way more resistors than needed. From what I can tell, only around 8 are needed for the entire board.

I explained why I ordered so many resistors: They’re so much cheaper in bulk I would have paid the same price to buy a handlful.

I probably won’t be using more than three for the 28 leds which make up the wings and screen.

> [@](#):
>
> Also, I don’t think you are going to gain anything dimensionally from using a DIP instead of just the complete Pro Mini, especially if you use a 16 pin socket, which you should.

Why would I use a 16 pin socket for an IC with 28 pins?

As for dimensional gains, maybe I won’t gain anything there. But as I already explained, it’s also far cheaper, and I don’t have to solder on jumper wires tto get at analog pins A4 and A5.

> [@](#):
>
> I also think you are greatly underestimating how long it takes to lay out, code, re-layout, alter code, and prototype this circuit. You’re looking at more like a month.

We’ll see. 🙂 The timer doesn’t start till I actually have the parts in hand though!

So, just so we’re clear… when you say prototype, you mean getting everything up and running on a breadboard, right? LEDs, piezo, touch switches? Are you including the dip switches and trim pots in your estimate?

---

<div class="post-metadata">

**Author:** ![ChapterMasterTuShan](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/c/6bbea6/32.png) [@ChapterMasterTuShan](https://forum.gbfans.com/u/ChapterMasterTuShan)\
**Post date:** [June 16, 2010, 2:09am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/18 "2010-06-16T02:09:50Z")

</div>

There’s no need for dip switches, at all.

We’ve already prototyped the entire thing and written code for it, including the functional touch switches, correct wing sweep, and correct lighting sequences.

There IS no need for pots in the circuit, save the one on the bottom of the PKE. Like I’ve said (and this is from the fact that I am a gainfully employed Aerospace Engineer) pots add noise to a system. Electrical noise + servos = twitching and premature failure. Everything you are claiming to do with a pot is far more easily done using 3 lines of code. This also translates to the end user being able to adjust things to fit their application. Not everyone will be installing the exact same servos in the exact same spot in the exact same shell.

The only way you will get this thing fully functional is if you are going to use the schematics and code that was posted a while ago; in that case, you aren’t designing anything, just charging exorbitant amounts for something that is not yours, and is open source.

As for the socket, 16 was an arbitrary number. Then fact is, if you don’t use a socket, I foresee you burning up chips left and right.

I’ve looked at your parts list, and factoring in the labor and needs for quality and troubleshooting, you aren’t going to save any money. The only possible way to save money is to sell a substandard product to unsuspecting people, which, given your reputation is highly likely.

I don’t think most intelligent members of this board are impressed with the amount of technical information you can copy-paste from places like Wikipedia or Sparkfun.

While I applaud you for trying to figure things out on your own, it’s pretty obvious you are way over your head. For your sake though, I hope you aren’t planning on trying to turn a profit based on others’ development and time, involving such things as code for an Arduino chip.

---

<div class="post-metadata">

**Author:** ![cpu64](https://forum.gbfans.com/user_avatar/forum.gbfans.com/cpu64/32/104792_2.png) [@cpu64](https://forum.gbfans.com/u/cpu64)\
**Post date:** [June 16, 2010, 2:49am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/19 "2010-06-16T02:49:22Z")

</div>

I still think I can create a one servo setup to work more efficiently than two. Or even a worm gear, even better actually.

---

<div class="post-metadata">

**Author:** ![GhostGuy](https://forum.gbfans.com/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@GhostGuy](https://forum.gbfans.com/u/GhostGuy)\
**Post date:** [June 16, 2010, 11:42am UTC](https://forum.gbfans.com/t/movie-pke-updates/13147/20 "2010-06-16T11:42:17Z")

</div>

> [@](#):
>
> There’s no need for dip switches, at all.

Have you even read anything I’ve written? The dip switches are there to allow the end user to select the way in which the tocuh switches function and the sounds the PKE makes.

What you propose is that the end user purchase a $15 device, a $4 USB cable, and pay $10 in shipping to connect the PKE to their PC, then download the Arduino development environment, reconfigure their com port, select the specific type of Arduino being used, find the appropiate lines of code, and edit them.

That sounds _so_ much easier than asking them to flip a switch!

> [@](#):
>
> Like I’ve said (and this is from the fact that I am a gainfully employed Aerospace Engineer) pots add noise to a system. Electrical noise + servos = twitching and premature failure.

Dude… you wanna talk premature failure?

This is the 4017 you’re using:

[http://www.st.com/stonline/books/pdf/docs/1960.pdf](http://www.st.com/stonline/books/pdf/docs/1960.pdf)

These are the green LEDs you’re using:

[http://www.lumex.com/specs/SSL-LX3044LGD.pdf](http://www.lumex.com/specs/SSL-LX3044LGD.pdf)

And you’re using 150ohm resistors to limit the current through them.

That alone would be bad enough. At 5v, with 150ohm resistor and the 2.2 foward voltage on those LEDs, you’re putting 20mA through each of the pins on the 4017, which is its ABSOLUTE MAXIMUM RATING. Any electrical engineer worth his salt would tell you you shouldn’t even approach absolute maximum ratings, and that if you wish to prolong the life of your components, that you should in fact run at 20% below the recommended values. (This process is called derating.)

But you’re not simply powering the LEDs with the 4017. You’re also powering the piezo buzzer:

> **[Shop Now RadioShack Products | RadioShack Official Website](https://www.radioshack.com/c?source=redirect&productId=2062403)**
>
> Start exploring all RadioShack original products from it's official website, powering technology, then, now and always. Shop now durable & high quality products.

And the one you’ve purchased uses 7mA. So on one of the pins of your 4017, you’re drawing 27mA of current, which is greater than the absolute maximum rating for the device.

But don’t take my word for it. Here is a quote from a highly respected electrical engineer with 40 years of experience whom I have discussed the designs of my circuits with, on this very subject of using the 4017 to drive leds:

> [@](#):
>
> I would say 20mA is pushing it. I know there is an attitude that says “well it works so it’s OK” but that does not auger well for a long life of these components. There is also package power dissipation issues that are difficult to address as this chip is not designed for driving LED loads.

When pressed on whether the chip might be able to do the job by say, running the LEDs at only 15mA, he then had this to say:

> [@](#):
>
> No. It was not designed as a driver and was not meant to be used [in that way]

PS:

Running the buzzer off the 4017 is just sloppy. The long beeps you get when you’re running your PKE slow because you’ve chosen to do this, are annoying. And you’re only doing it because you screwed up the design of your touch switches which forced you to use a digital pin on the Arduino to proivide a noise-free source of power, and give up the use three of the five analog pins on the Arduino. All as a result of one little mistake.

Don’t talk to me about noise in my circuit when you can’t even figure out why your touch switches are so susceptible to it.

> [@](#):
>
> As for the socket, 16 was an arbitrary number. Then fact is, if you don’t use a socket, I foresee you burning up chips left and right.

I’ll have you know I’m quite adept at soldering and am perfectly capable of mounting an IC without destroying it.

That said; I intend to use sockets, and if you actually had looked at my parts list, you’d have seen that the socket for the ATMega is listed immediately after it:

ATmega328 28-DIP with Arduino Bootloader

DIP Sockets Solder Tail - 28-Pin 0.3" row spacing (narrow)

And you know, it’s funny… for someone who’s so concerned about burning chips up, you sure seem fine with offering a kit to folks with no soldering experience that will require them to attach pins or wires to an Arduino board which is chock full of surface mount components a hairs-width away from the solder pads.

> [@](#):
>
> The only way you will get this thing fully functional is if you are going to use the schematics and code that was posted a while ago; in that case, you aren’t designing anything, just charging exorbitant amounts for something that is not yours, and is open source.

Schematics? You never posted any schematics. Show me where you posted schematics. I’m sure if you did post any, you’ve deleted the file by now, in a sad attempt to prevent me from learning THE SECRETS OF THE 4017 DECADE COUNTER, which I’ve already used to great success in my previous PKE circuits. But you show me the post where you linked to these schematics. You can’t delete posts, so it must still exist, even if the link is broken.

Also, mister AREOSPACE engineer, I’d like to point out that I am a SOFTWARE engineer and have over twenty years of programming experience. I have written graphics applications, hardware testing applications, and several video games. I don’t need to steal your code to set a few pins on the Arduino. You’re talking about maybe a fifty to a hundred lines of code. I’ve written software libraries with over 10,000 lines of code in a single month. Plus, as I am not using the 4017 decade counter in my circuit, most of your code wouldn’t even work.

This ‘concern’ over my stealing code written by a dude who hasn’t programmed since he was in high school and four months ago was asking on the Arduino forums how a delay() statement works because he couldn’t figure out how to make lights blink and update a servo at the same time is probably the most ridiculous ‘concern’ you’ve had yet.

> [@](#):
>
> I don’t think most intelligent members of this board are impressed with the amount of technical information you can copy-paste from places like Wikipedia or Sparkfun.

And I don’t think most intelligent members are being fooled by your shenanigans. In fact, I know they’re not because they’ve been voicing their support in private messages and have told me I shouldn’t stoop to your level. (Sorry guys, the dude cannot abide!)

> [@](#):
>
> The only possible way to save money is to sell a substandard product to unsuspecting people, which, given your reputation is highly likely.

Excuse me? My reputation? What reputation would that be?

This reputation?

_\*_

 

“I bought his (The Videogame stylized RGB) [PKE meter](https://www.gbfans.com/shop/mattel-pke-meter) about a week ago. Kept in contact with me at every step of the way after purchasing (an email when he shipped it, checked if I received it, etc). He does very good work that is worth the money. Well-made and painted, this PKE is ready to turn some heads at the birthday party this coming Sunday! I have experience with eBay sellers for more than 7 years. He’s one of the ones to trust. I definitely recommend him to anyone if he plans on selling anything else!”

"I recently purchased one of GhostGuy’s PKE Meter kits (minus the antennae). The kit arrived today safe and sound, and I’m very pleased with it, especially as he included a clear piece for the screen which I wasn’t expecting.

Great transaction and keep me updated on the order. :)"

_“I don’t know where to start when it comes to this thing. It truely is a work of art. When I saw the first one he made I had to get in contact with the man. We worked out some things I wanted to add/change, and it came out so flipping sweet. Its weird cause this is the first prop that I had bought and I wasn’t sure at first but in the end it was worth every single penny. Ghostguy is a great craftsman. I am still worried about the day I have to paint this thing cause I don’t want to ruin it. Wish me luck and like Ghostguy said I’ll post pictures, most likely in the early spring. Thanks again man, it really is one of my favorite gb items.”\*_

I have never sold a substandard product to anyone.

> [@](#):
>
> While I applaud you for trying to figure things out on your own, it’s pretty obvious you are way over your head. For your sake though, I hope you aren’t planning on trying to turn a profit based on others’ development and time, involving such things as code for an Arduino chip.

And for your sake, I hope I fail, because otherwise you’re going to have to eat a very large portion of crow for all the ■■■■ you’ve given me.

[Next page](https://forum.gbfans.com/t/movie-pke-updates/13147.md?page=2)
