element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Simple project for 10-11 year old.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 24 replies
  • Subscribers 393 subscribers
  • Views 2204 views
  • Users 0 members are here
  • arduino_month
  • open-source
  • openhardware
  • lighting
  • diy
  • led
  • Design
  • platform
  • arduino_development_environment
  • engineering
  • electrical
  • arduino
  • opensource
Related

Simple project for 10-11 year old.

patkelly
patkelly over 13 years ago

I'm looking to do a project with some 10-11 year olds in a local school which uses electronics to show how they are feeling. I was thinking about a traffic light system where I can get the children to build the kit and then use it in under an hour. They would move the light to red when frustrated/mad and green for happy etc.

 

I have some of these Multicomp Nano boardsMulticomp Nano boards (1813414) which we can pre-program, and then add the rest of the part to it.

 

Any ideas would be greatfully received

 

Pat

  • Sign in to reply
  • Cancel

Top Replies

  • billabott
    billabott over 13 years ago in reply to patkelly +1
    Did you ask the school if they would be okay with the students building lie detectors? I am opposed to knowledge suppression in all its forms. And your statement certainly set off my alarm bells. Okay…
  • YT2095
    YT2095 over 13 years ago in reply to patkelly +1
    if they`re going to be stand-alone boards, then a 9V batt and some clips would be an idea I also looked at those LEDs and from what I can see, I think you`ll need resistors for them, 330 Ohm or there abouts…
  • patkelly
    patkelly over 13 years ago in reply to billabott +1
    I second that, a massive thank you to Mr Nielsen, and everyone else who has contributed here I really can't believe the support you have all given on this.
Parents
  • billabott
    billabott over 13 years ago

    Well, here is my first go at the software.  It compiles and runs as designed using Arduino 1.0 on the MC-Nano hardware; but is not the final version by any means.  To me it seems incredibly simple.

     

    // How Am I Feeling Indicator Light Project

    // by billabott

    // This code is in the public domain.

    // First publication 14 April 2012.


    int LedRed = 12;

    int LedGrn = 11;

    int LedBlu = 10;

    int DipSwitch3 = 9;

    int DipSwitch2 = 8;

    int DipSwitch1 = 7;

    int DipSwitch0 = 6; 

     

    void setup() {

    pinMode(LedRed, OUTPUT);

    pinMode(LedGrn, OUTPUT);

    pinMode(LedBlu, OUTPUT);

    pinMode(DipSwitch3, INPUT);  

    pinMode(DipSwitch2, INPUT);

    pinMode(DipSwitch1, INPUT);

    pinMode(DipSwitch0, INPUT);

    digitalWrite(DipSwitch3, HIGH);  // required to enable the internal pullup resistor

    digitalWrite(DipSwitch2, HIGH);   // as discussed previously in this post.

    digitalWrite(DipSwitch1, HIGH);   // one side of switchs are wired to ground

    digitalWrite(DipSwitch0, HIGH);  // and other side to the input pins.

    }

     

    void loop() {

    int state0 = digitalRead(DipSwitch0);

    if (state0 == HIGH ) {

    // Call the function to blink the lights

    BlinkLights();

    }

    /* DipSwitch0 (the right most one) is an enable/go/load indicator for

       the other DipSwitches to take control of which LEDs are on or off. 

       So pull it LOW by pushing it up and the blinking stops.  */

    else {              

    int state1 = digitalRead(DipSwitch1);

    int state2 = digitalRead(DipSwitch2);

    int state3 = digitalRead(DipSwitch3);

     

    if (state1 == LOW)

    {

      digitalWrite(LedBlu, HIGH);

    }

    else

    {

      digitalWrite(LedBlu, LOW);

    }

     

    if (state2 == LOW )

    {

      digitalWrite(LedGrn, HIGH);

    }

    else

    {

      digitalWrite(LedGrn, LOW);

    }

     

     

    if (state3 == LOW )

    {

      digitalWrite(LedRed, HIGH);

    }

    else

    {

      digitalWrite(LedRed, LOW);

    }

    }

    delay(1000); // wait 1.0 second

    }

     

     

    void BlinkLights() {       //  attract mode ?

    digitalWrite(LedBlu, LOW);

    delay(200); // wait 0.2 seconds

    digitalWrite(LedGrn, LOW);

    delay(200); // wait 0.2 seconds

    digitalWrite(LedRed, LOW);

    delay(200); // wait 0.2 seconds

    delay(1000); // wait 1.0 second

    digitalWrite(LedRed, HIGH);

    delay(200); // wait 0.2 seconds

    digitalWrite(LedGrn, HIGH);

    delay(200); // wait 0.2 seconds

    digitalWrite(LedBlu, HIGH);

    delay(200); // wait 0.2 seconds

    delay(1000); // wait 1.0 second

    }

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • patkelly
    patkelly over 13 years ago in reply to billabott

    Hi Billabot

     

    This is awesome thank you.

     

    I've got my parts on order, they should be with me in a few days fingers crossed. I'll keep you posted

     

    Pat

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • patkelly
    patkelly over 13 years ago in reply to billabott

    Hi Billabot

     

    This is awesome thank you.

     

    I've got my parts on order, they should be with me in a few days fingers crossed. I'll keep you posted

     

    Pat

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube