Andover TownCentral Homepage
Forum Home Forum Home > ANDOVER FORUM > ANDOVER ROBOTICS
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Automatic traffic light sequence.

 Post Reply Post Reply
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
moonshadow View Drop Down
Forum Member
Forum Member


Joined: 28 Aug 2008
Location: Andover
Online Status: Offline
Posts: 56
  Quote moonshadow Quote  Post ReplyReply Direct Link To This Post Topic: Automatic traffic light sequence.
    Posted: 29 Aug 2009 at 09:21
Using only the commands HIGH, LOW, PAUSE and END I would like you to write a program that will simulate the complete traffic light sequence on three LED's. If you have not got your hardware yet, you can test it in the simulator.

First you have to know what the traffic light sequence is .....

RED
RED and AMBER
GREEN
GREEN and AMBER
 ...... Then back to the beginning again !

If you have any problems email me at science@ntlworld.com , but do try to solve it yourself first. Start off by making symbols of the three pins you intend to connect to the LED's.  If you select the 14M chip I suggest you put the red led on output 0,  The amber LED on output 1 and the green LED on output 2. Have fun !.

jk


Back to Top
Anubis View Drop Down
Forum Addict!
Forum Addict!


Joined: 06 May 2008
Online Status: Offline
Posts: 2512
  Quote Anubis Quote  Post ReplyReply Direct Link To This Post Posted: 29 Sep 2009 at 14:13

Software

The program listing below will perform the flash LED0 function. You can

type the program in or you can download it off the included disk.

' *** Main program loop ***

main: ' main loop label

high P0 ' Turn LED on

pause 1000 ' Delay for 1 second

low P0 ' Turn LED off

pause 1000 ' Delay for 1 second

goto main ' Loop back to main label and do it again

end ' End of the program

Back to Top
Cloud View Drop Down
Forum Junkie
Forum Junkie
Avatar

Joined: 24 Jul 2009
Location: Andover
Online Status: Offline
Posts: 852
  Quote Cloud Quote  Post ReplyReply Direct Link To This Post Posted: 29 Sep 2009 at 21:14
Thats got nothing to do with robots thats programming...
Back to Top
moonshadow View Drop Down
Forum Member
Forum Member


Joined: 28 Aug 2008
Location: Andover
Online Status: Offline
Posts: 56
  Quote moonshadow Quote  Post ReplyReply Direct Link To This Post Posted: 03 Oct 2009 at 19:44
@ Anubis. Well done Anubis.  Picaxe syntax is 'High 0' etc.. How about the traffic light sequence  using the symbols Red, Amber and Green ?.

@ Cloud.  Robots are controlled by microprocessors so one has to learn to program, in order to make ROBOT's work. Of course a ROBOT is just a machine and therefore if you know how to program a ROBOT, then you also know how to control a thousand other things.


Back to Top
20170719yueqin View Drop Down
Forum Newbie
Forum Newbie


Joined: 19 Jul 2017
Online Status: Offline
Posts: 19
  Quote 20170719yueqin Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jul 2017 at 11:46

pandora outlet

michael kors outlet clearance

fake rolex

dansko outlet store

ralph lauren uk

ralph lauren sale clearance

christian louboutin outlet

cheap jordans

true religion jeans

cheap jordans

louis vuitton outlet

adidas trainers

pandora outlet

ugg outlet

longchamp bags

jordans

mlb jerseys wholesale

pandora jewelry

kd 9 shoes

adidas nmd

hermes birkin

adidas nmd

fitflops

kate spade handbags

cheap nfl jerseys

coach outlet online

adidas uk

christian louboutin sale

tory burch outlet

birkenstock shoes

kate spade outlet

salomon shoes

mulberry outlet

timberland boots

adidas outlet

toms shoes

coach factory outlet

valentino

birkenstock sandals

nike air max

giuseppe zanotti sneakers

cheap mlb jerseys

michael kors outlet

coach outlet

birkenstock pas cher

michael kors outlet

dansko outlet

nike outlet store

mulberry handbags

pandora charms

steph curry shoes

nike outlet online

michael kors handbags

cheap jordans

hermes bags

ray ban sunglasses

christian louboutin outlet

nike shoes for men

birkenstock shoes

coach outlet store

fit flops

yeezy boost 350

pandora jewelry

coach outlet

adidas yeezy

michael kors canada

parker pens

michael kors handbags

christian louboutin shoes

coach outlet online

michael kors outlet clearance

hollister co

coach factory outlet

coach outlet

coach outlet

houston texans jerseys

cheap mlb jerseys

coach factory outlet

michael kors uk

true religion outlet

pandora jewelry

cheap nike shoes

christian louboutin

coach outlet store

new england patriots jerseys

marc jacobs handbags

ugg outlet

ralph lauren outlet

celine outlet store

pandora charms

michael kors outlet

vans outlet store

coach outlet

moncler

ralph lauren outlet

cheap nfl jerseys wholesale

michael kors outlet clearance

air max 95

nike air max 90

polo ralph lauren

discount ray ban sunglasses

longchamp handbags

dolce and gabbana outlet

pandora charms

rayban

fit flops

coach factory outlet

polo ralph lauren outlet

mont blanc

kate spade handbags

adidas superstar

pandora charms sale

adidas superstar shoes

jordan shoes

pandora charms

oakley sunglasses

nike air max 90

yeezy boost

adidas shoes

170719yueqin

111

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.031 seconds.