NerdKits - electronics education for a digital generation  
Did you know that NerdKits has a TV commercial, seen on MythBusters and the Science Channel? Learn more...

You are not logged in. [log in]

Customer Testimonials » Thought for additional component to NerdKit

November 22, 2009
by Rick_S

Have you guys tossed around the idea of adding a N/O tactile switch and 10K resistor to the kit for a reset circuit.

You have the reset tied high. By adding the resistor and switch, you can program the chip without having to disconnect power. Just slide the program switch over, press the reset and it's now ready to load. This little addition came in very handy when I was testing my code for my marquee.

You can see the reset button and resistor in this photo.

Just thought this may be an inexpensive but valuable addition to future kits.

Rick

November 23, 2009
by tech20

yes, that would be pretty useful on the nerdkit, but on the subject of additional components, wouldn't a few chips from the 7400 series and a LM358 be useful, just in themselves, those chips would be great, in use with the nerdkit, a few chips (even one) of each main logic type(and, or, nand, nor, xor) would be worthwhile, especially on the way to explaining on how logic works out.

November 24, 2009
by Rick_S

While I agree that some additional I.C.s may be nice for some. They may not be applicable for many. There are several people who don't care to dabble in the world of analog signals and would have no use in an LM358 op amp. Basic AND, OR, NAND, NOR, and XOR logic can all be performed in the micro-controller program. While the use of these externals can come in handy at times, they would also require much more breadboard space as well as a higher current draw on the standard 9v battery.

That was one of the reasons that I only suggested a simple reset button. This is a component that everyone with a Nerdkit could use right out of the box. It requires no learning curve. It's simple and straightforward. It requires virtually no additional breadboard space. It vastly simplifies programming.

I agree the components you suggested would make a great addition. I think however, that maybe adding them to the store as an accessory pack would be a better option. That way those who are interested in expanding could make the purchase and those who have no need of them wouldn't have to pay extra for parts that will sit in a drawer.

JM2C :D

Rick

November 24, 2009
by tech20

Oh yes, a additional pack would be better, and possibly a larger breadboard for sale with it. The switch is probably the best addition though, if it was the only one. A additional kit though, for those who want to learn more about the logic, or just use for other projects would be good to.

November 24, 2009
by mcai8sh4

I'll throw my thoughts in... I think an additional pack, containing useful/fun/informative items would be a nice addition to the store, then people who want to take it further can, plus since the parts are coming from Nerdkits (so everyone gets the same part), it will be easier for other members of the forums to help people like me (...what do I do with this?...)

However it would also then lead to our fine hosts, Mike and Humberto, addressing these parts in some new tutorials.

Anyway, the main reason I wanted to post to this thread... Rick_S : I really must congratulate you on your LED display - fantastic. Could you please explain the switch system to me a little more? I think I get the idea, but not 100%. Close-up pic may help with the wiring, but the general 'why' it works has me puzzled.

Thanks

-Steve

November 24, 2009
by Rick_S

Pin one is the reset line of the micro-controller. With the default wiring of the kit, a wire is placed from the +5v bus to pin on thus pulling it high at all times. If that wire is replaced with a 10K resistor and a N/O (Normally Open) momentary (only contacts when pressed) switch is placed between pin one and ground then any time you press the switch, the CPU will reset. Thus to program the controller all you have to do is flip the program switch to program mode and press and release the reset button. This eliminates the need to disconnect and re-connect the power to program.

The little red pushbutton switch you see in the photo above actually came off an old cable box control panel. These are all over the place in old electronics and can normally be easily removed and re-purposed.

I'll see if I can get a pic up after I get home from work. (on lunch now :) )

November 24, 2009
by mcai8sh4

Rick : Thanks for the info - I get it now (almost)... why the 10K resistor?

There's no need for the photo now, I appreciate your time and can picture the setup without you having to go to the trouble.

Thanks again, nice idea that!

November 24, 2009
by Rick_S

The 10k resistor is the pullup. Without that, when you pressed the button, you would short your 5v directly to ground. The pullup resistor reduces the current flow through the switch when pressed.

November 24, 2009
by Farmerjoecoledge

Okay, what position is the switch in? I mean the one that comes with. For programing normally, up to program, down to run. I appreciate this idea, so all you do is keep the switch up, leave it powered and just press the reset. No, you would flip the switch up and then hit reset, and then down again to run? Sorry for being so trivial, but i'm programmer less so can't test it.

For anyone who doesn't quite understand pullup resistor, they "call" it a pullup not because of what it looks like, but because of where the 10k "regular" resistor is "placed" in the circuit.In this case it's before the switch, hence pull-up.

November 25, 2009
by Rick_S

The program switch would stay in it's run position until you were ready to program. At which point, you would slide the program switch into the program position and press reset. This would re-boot the micro-controller in programming mode. Once programming is finished, you would slide the program switch back to the run position, again press the reset button and then the chip would re-boot in run mode. The reset eliminates having to power down/up to re-boot the chip.

January 12, 2010
by Phrank916

I simply used the extra switch the kit came with to give my breadboard an on/off switch. I do like the idea of using the M/O switch though on the reset pin. My setup just has the positive lead of my old re-purposed LG phone charger going into one side of the switch then a wire from the middle post to the +5 rail. The other side of the switch is connected to nothing of course.

I placed an order with Sparkfun yesterday and ordered 6 of their little M/O switches which fit breadboards perfectly. I'm gonna set one up as a reset when they arrive for sure. It's really only a smidgen easier than sliding my on/off switch, but I think it might be a better option and possibly a little easier on the MCU.

You can sorta see my on/off switch in the top right of my breadboard in this pic.

Ted

January 12, 2010
by Rick_S

Switches like the ones you are getting are just what I was speaking of in my initial posting. That combined with a 10K pullup resistor on the reset line makes re-programming of the Micro-Controller much simpler. At least is is for me... :D I'm sure you'll find them useful as well. I snagged a half dozen or so of those off an old cable box control panel. I love harvesting parts off old electronics... it's amazing what you can find sometimes.

Rick

January 12, 2010
by BobaMosfet

If there was one component that should be added, I think that would be of the most benefit to noobs and experts alike, it would have to be a diode.

Yes, a humble diode to put between the power-supply and the regulator input pin (PIN 1). I'm thinking something along the line of a 1N5818.

The point being to prevent someone's circuit getting torched if they get polarity backwards on the power-supply-- something all to easy to do, for someone who doesn't know anything about power, and just as easy to do by those of us who are confident in our abilities as well.

I know it's saved me TWICE. I keep telling myself I know what I'm doing.... :D

January 13, 2010
by Rick_S

Excellent point. The humble diode can be a life (or chip) saver!

January 13, 2010
by Phrank916

I did that very thing the other day. Reversed the polarity of my power source when I was trying to move my little two position on/off switch to the other side of the breadboard. Luckily I caught myself before plugging in the wall wart!

Rick, I had a question of clarification with the reset switch setup. So, if I understand correctly you replaced the wire from the +5 rail to PIN 1 with a 10k resitor. But then the button is connected one side to the ground rail and the other side ALSO to PIN 1? So when the momentary on switch is pressed the ground rail is connected too?! I guess I'm not understanding why you'd connect both rails to PIN 1. I know the 10k resistor is somehow preventing a short across that PIN but is enough current getting through the resistor when the switch is open to keep that pin high? Or am I totally confused and over thinking this?

Ted

January 13, 2010
by Phrank916

Oh, and I am with you on the part salvaging! I've totally been looking at old pieces of electronics and boards from old computers differently now. I'm now looking at them trying to see if there's anything interesting that I can put to good use. I can't wait to get a decent soldering iron and get to work with that and my solder wick pulling things apart. Sounds like good fun! Maybe someday I'll be able to afford a hot-air rework station :)

Ted

January 13, 2010
by Phrank916

P.S. - I'm so jealous of your "very recent model" digital Weller I can see in the background of the photo above!

January 13, 2010
by Rick_S

You are correct that the 10K resistor replaces the jumper wire to the 5V rail. The N/O Momentary switch then goes from pin 1 to ground. This way when the button is not pressed, pin1 is pulled high with the resistor, when the button is pressed, pin one is pulled low through the switch. The purpose for the resistor is so that when you press the button, you don't create a direct short between the 5V and ground rails. The resistor restricts the amount of current flow.

Pin 1 is a hardware reset line for the micro-controller. This line will reset the chip when pulled low. The reason for keeping it pulled high whether through a straight jumper or a resistor is to prevent it from floating. Which in theory could cause random re-boots of the chip.

As for the soldering station, it was a very generous gift from my boss at work for doing some side electronic work for him. I never would have purchased a station like that myself but WOW... is it nice. Heats up in seconds, holds it's heat well, couldn't ask for more. :D

Rick

January 21, 2010
by Phrank916

Thanks Rick, I got the switches the other day that I had ordered and set it up just like your picture. Works great!

Post a Reply

Please log in to post a reply.