Powered by Invision Power Board


Forum Rules Forum Rules (Please read before posting)
  Reply to this topicStart new topicStart Poll

> Simple Robot(traffic Light) Led Project.., Helping out with a school project
gremlinsa
Posted: November 01, 2012 08:12 am
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




So the grandson called me up a few nights ago and said he has a school project for next Wednesday.. he has to build a working Robot/Traffic light..

So i've already pulled out a few parts, Got a 555 for clock, and was looking for a 4017 Decade counter, however low/no stock and got the 4022 Octal counter..

Mostly because this has to be simple, i worked this out for the final connections.. (ignoring the 555 in Astable mode for clock)..

user posted image

comments ??

BTW. Remember it has to be built/assembled by a 13 year old in class.. I got parts to build 4 units, and will sample build one for him first...


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
CWB
Posted: November 01, 2012 12:36 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 19,519
Member No.: 15,154
Joined: May 15, 2008




good idea on whipping one up first . wink.gif
sure beats him telling you that it was a fail and yer getting lumps of coal for christmas . laugh.gif tongue.gif

man ... if you had a multi pole deck switch it would go well with the diode logic .


--------------------
"Know how to solve every problem that has been solved"
R. Feynman '88
PM
Top
Geek
Posted: November 01, 2012 01:38 pm
Reply to this postQuote Post


Moderator
Group Icon

Group: Moderators
Posts: 8,909
Member No.: 62
Joined: July 23, 2002




I was building Heathkit tranceivers at 13.... how advanced is the grandson? wink.gif


--------------------
-= Gregg =-
"Ratings are for transistors.....tubes have guidelines"
(please do not PM me for advice. Non-forum business messages will be ignored)
PMUsers Website
Top
gremlinsa
Posted: November 01, 2012 02:13 pm
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




QUOTE (Geek @ November 01, 2012 02:38 pm)
I was building Heathkit tranceivers at 13.... how advanced is the grandson? wink.gif

His third Electrical task....

Still learning to solder....

Not my Fault Dad is a welder, and only knows steel... blink.gif rolleyes.gif


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
MacFromOK
Posted: November 01, 2012 05:17 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 12,956
Member No.: 5,314
Joined: June 04, 2006




You might check out this UK version (yellow both ways). It uses a 4017 (which I assume is a moot point), but also has fewer parts. And omitting one yellow is simple enough if required.

http://www.kpsec.freeuk.com/projects/trafficlight.htm

It has both schematic and stripboard layouts btw. beer.gif


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
gremlinsa
Posted: November 01, 2012 05:55 pm
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




QUOTE (MacFromOK @ November 01, 2012 06:17 pm)
You might check out this UK version (yellow both ways). It uses a 4017 (which I assume is a moot point), but also has fewer parts. And omitting one yellow is simple enough if required.

http://www.kpsec.freeuk.com/projects/trafficlight.htm

It has both schematic and stripboard layouts btw. beer.gif

I originally was looking for the 4017(Stock Shortage), but got the 4022...

Also it's only more parts because doing the LED lights for both directions..

Now the issue i'm Having is that on the breadboard the output used for yellow O3(pin 7) oscillates

See this Vid
Note: I only setup the first set of lights, Second set once bugs worked out..

Also looking at the number of different example circuits using the 4017, and 4022, i see that Enable & reset sometimes is connected directly to GND, Some it only has a ~10K Pull down, and some it includes a 10uf across the pull down and VCC... So which is ideal??

Next thing, Supply is 9V (150mA) and with 0 load the Outputs pullup to ~8.6.. once load is on, the outputs pullup to ~4V.... Normal or not..


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
MacFromOK
Posted: November 01, 2012 06:02 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 12,956
Member No.: 5,314
Joined: June 04, 2006




QUOTE (gremlinsa @ November 01, 2012 11:55 am)
Also it's only more parts because doing the LED lights for both directions..

Since red/green are on at the same time, can't you just add more leds and resistors for the other view? There's no need to re-diode everything. mellow.gif


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
gremlinsa
Posted: November 01, 2012 07:42 pm
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




QUOTE (MacFromOK @ November 01, 2012 07:02 pm)
Since red/green are on at the same time, can't you just add more leds and resistors for the other view? There's no need to re-diode everything. mellow.gif

You right .. there is a less parts way..

Was rethinking the number of diodes and came up with this..

user posted image

Might have to adjust some resistor values (R3 & R6) because of the Additional V drop on second Diode.. (maybe not !!)

but its 4 less 4148's...

However still a little quizzed to the Oscillation on Q3 output, tried another chip just in case-- Same.. Will have to Scope it...


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
MacFromOK
Posted: November 01, 2012 07:57 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 12,956
Member No.: 5,314
Joined: June 04, 2006




I'm no counter wizard, but won't the 4017 circuit I linked to also work for the 4022 with minor changes (mostly re-arranging the counting outputs to end at Q7 rather than Q9)? huh.gif

If so, it might save a few headaches. beer.gif


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
gremlinsa
Posted: November 01, 2012 08:17 pm
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




QUOTE (MacFromOK @ November 01, 2012 08:57 pm)
I'm no counter wizard, but won't the 4017 circuit I linked to also work for the 4022 with minor changes (mostly re-arranging the counting outputs to end at Q7 rather than Q9)? huh.gif

If so, it might save a few headaches. beer.gif


user posted image.. I pretty much have done just that.. (my 555 circuit runs smooth, Adgustable 1.5hz to ~15hz) it seems the prob may be the 4022..

i'm gonna user posted image this circuit wink.gif


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
MacFromOK
Posted: November 01, 2012 08:28 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 12,956
Member No.: 5,314
Joined: June 04, 2006




QUOTE (gremlinsa @ November 01, 2012 02:17 pm)
I pretty much have done just that..

If you say so. I'm still seeing twice the diodes and 8 pins (rather than 7) connecting the LEDs in your last diagram... mellow.gif

Did you use the same setup (1uF/22k) for the reset pin?


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
gremlinsa
Posted: November 02, 2012 07:55 am
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




Okay so i found most of the problems...

#1) The Q3 occilation.... Hmmmm the store suplied my with self blinking Yellows instead of std yellows.. (need to find some replacements as we only have High bright reds in store)

#2) Current draw is a little high, Datasheet lists 36mA as high level current. (think i may be pulling a little more.) will use a slightly higher val resistor on the LED's..

QUOTE (MacFromOK @ November 01, 2012 09:28 pm)

If you say so. I'm still seeing twice the diodes and 8 pins (rather than 7) connecting the LEDs in your last diagram... mellow.gif
In that circuit they using CO (Carry over) to drive the Red LED, cutting out 4, Also here in South Africa, the Traffic lights only do yellow before red, not before green...

Also because i'm doing both directions on one board, i need a extra set...

Will Upload A vid of the Proto a little later...


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
gremlinsa
Posted: November 02, 2012 08:40 am
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




Right so here is the Final Proto running..

\o/ Woot \o/

BTW: found a few old yellows in the stores (Pre used, but WTF, they still work).


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
CWB
Posted: November 02, 2012 09:21 am
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 19,519
Member No.: 15,154
Joined: May 15, 2008




cool ...
pre-used = pretested . wink.gif


--------------------
"Know how to solve every problem that has been solved"
R. Feynman '88
PM
Top
MacFromOK
Posted: November 02, 2012 10:48 am
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 12,956
Member No.: 5,314
Joined: June 04, 2006




QUOTE (gremlinsa @ November 02, 2012 01:55 am)
#1) The Q3 occilation.... Hmmmm the store suplied my with self blinking Yellows instead of std yellows..

Hehe, sabotaged by the vendor... biggrin.gif

QUOTE (gremlinsa @ November 02, 2012 01:55 am)
QUOTE (MacFromOK @ November 01, 2012 09:28 pm)
If you say so. I'm still seeing twice the diodes and 8 pins (rather than 7) connecting the LEDs in your last diagram... mellow.gif
In that circuit they using CO (Carry over) to drive the Red LED, cutting out 4, Also here in South Africa, the Traffic lights only do yellow before red, not before green...

I think with the 4017, CO is 5 ticks. Your 4022 should be 4, and would eliminate that many diodes.

QUOTE (gremlinsa @ November 02, 2012 01:55 am)
Also because i'm doing both directions on one board, i need a extra set...

I don't think an extra set of diodes is necessary. You can connect red/green from one view to green/red on the other view following the same diode set.

Also, they get yellow both ways by combining two outputs. I think you could use those outputs separately to get yellow before red on both views.

You requested it be simple, and I've just been trying to reduce the component count. But I'm happy if you are. beer.gif


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
gremlinsa
Posted: November 02, 2012 11:15 am
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




QUOTE (MacFromOK @ November 02, 2012 11:48 am)
QUOTE (gremlinsa @ November 02, 2012 01:55 am)
#1) The Q3 occilation.... Hmmmm the store suplied my with self blinking Yellows instead of std yellows..

Hehe, sabotaged by the vendor... biggrin.gif
Sucks... never mind that they gave me 14 pin sockets instead of 16 pin sockets for the IC's.. Managed to swap out from the work's store...

QUOTE (MacFromOK @ November 02, 2012 11:48 am)
QUOTE (gremlinsa @ November 02, 2012 01:55 am)
Also because i'm doing both directions on one board, i need a extra set...

I don't think an extra set of diodes is necessary. You can connect red/green from one view to green/red on the other view following the same diode set.

Remember that a 13 year old has to explain this circuit to the class, so the best is three lines to each set, and he can show.. this is for red, Yellow, Green.. and this one line is the common..

And the other thing is we physically going to build the traffic lights, pole's 'n all, and run a 4 core line to each pole, GND, red, yellow & green. With the 'controller' boxed to one side..

Also I want it to be easy to assemble in class, everything will be partially prebuilt, in class all he has to do is insert the chips into the sockets, connect up the wires ( color coded for convenience, Black, Red, White, Blue), and plug in the 9V battery..

Also this is the first chipped project he's doing, trying to keep the connections simple. His original idea was to simply use switches to turn on/off the 6 lights in sequence..

Project is due on Wednesday, so i will report back after then on what happened in class..


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
gremlinsa
Posted: November 04, 2012 06:51 pm
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




Today spent the day with my grandson, He let me know it's okay to bring it in fully built, just he has to have built it himself, No ready made Models etc allowed..

Now with the build, last night I built these Mini light posts...
user posted image
shaped some veroboard andpainted it black, put the three LED's on it, and attach the 4 core cable behind.. Instant Traffic poles. smile.gif ...

This morning, went over to the kids place, and sat with him so that we could build it together..

Here he is cutting tracks on the veroboard with a drill bit...
user posted image

and obviously after soldering, long legs need to be clipped..
user posted image

We put copies of these pics on his celly, so that he can provide proof of physically building the project to his teacher...

Time to end off...

Here is the final running project..
Note: the box is what he's taking the project to school in..

BTW: as he's explained it, most will be bringing a robot built similar to this one


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
Sch3mat1c
Posted: November 04, 2012 10:14 pm
Reply to this postQuote Post


Forum Addict ++
Group Icon

Group: Moderators
Posts: 18,146
Member No.: 73
Joined: July 24, 2002




Cool!


--------------------
Answering questions is a tricky subject to practice. Not due to the difficulty of formulating or locating answers, but due to the human inability of asking the right questions; a skill that, were one to possess, would put them in the "answering" category.
PMEmail PosterUsers Website
Top
MacFromOK
Posted: November 04, 2012 11:03 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 12,956
Member No.: 5,314
Joined: June 04, 2006




Nice job, both of you. beer.gif


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
gremlinsa
Posted: November 08, 2012 08:12 am
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 387
Member No.: 3,112
Joined: August 25, 2005




Right so yesterday was Project day, and my grandson was smart about it too. He made sure not to let anyone see it till it was his turn to demo..

Firstly, It was the smallest project to be handed in,(next smallest was twice the size of this one). He pulled it out, and started to describe what resistors, Diode, and IC's do, a few flashcards included.. and then turned it on, for the class to see a automatic traffic light in operation...

Well needless to say, after showing the pics of him physically building it, the Teacher gave him Full marks for the project...

The best part of it all that made him Proud, in all the years that the teacher has been handing out this project, His is the first fully automated(ie IC controlled), and first with both sets of lights, that has ever been handed in...

And of course me drilling him about what Resistors, diodes and capacitors basic functions are. as well as the basic function of the 555 and 4022 in this circuit, we was able to pull of the perfect presentation. I even gave him the schematic and Board layout printouts from the 4017 proto, so he can explain how the circuit works..

Needles to say, i have now painted myself and possibly him in a corner, and will have to better this one for the next project...


--------------------
What i know about Electronics is dangerous...
Why cant i use a 7812 on the supply line to get my +12V ??? ;)
PMEmail PosterUsers Website
Top
MacFromOK
Posted: November 08, 2012 06:59 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 12,956
Member No.: 5,314
Joined: June 04, 2006




Victims of your own success... biggrin.gif

Hopefully your grandson will develop a serious interest in electronics. beer.gif


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 


:: support us ::




ElectronicsSkin by DutchDork & The-Force