EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / I am new and i need to know the programming for led ON and OFF by timing

I am new and i need to know the programming for led ON and OFF by timing

|

Microcontroller › 8051 › I am new and i need to know the programming for led ON and OFF by timing

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 3 months ago by narasimha.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 11, 2013 at 8:33 am #2108
    narasimha
    Participant

    The main theme of the project is to run 6 leds in which each valve should run about 11 seconds one after the other valve

    1. First led 11 seconds ON then 66 seconds OFF
    2. Second led after 11 seconds ON for 11 seconds then 55 seconds OFF
    3. Third led after 22 seconds ON for 11 seconds then 44 seconds OFF
    4. Fourth led after 33 seconds on for 11 seconds then 33 seconds off
    5. Fifth led after 44 seconds on for 11 seconds then 22 seconds off
    6. Sixth led after 55 seconds on for 11 seconds then 66 seconds off

    The process should continue till the system is switched off

    There will be another led to be controlled in which it should run i.e. 66 seconds ON and 11 seconds OFF

     

     

     

    basic the project run as shown above just help me with a piece of code for on off and on of a system

    February 11, 2013 at 4:54 pm #9119
    AJISH ALFRED
    Participant

    Hi Narasimha,

    Please post the circuit of the project so that we can help you with the code for the same.

    February 12, 2013 at 3:52 am #9120
    narasimha
    Participant

    actually the microcontroller is STM8s i have to do circuit for 8051

    February 17, 2013 at 10:21 am #9148
    AJISH ALFRED
    Participant

    Alright, always keep in mind that your code will work only if it is written for the particular hardware. Hence I suggest you to do the hardware first and then proceed with the code.

    April 5, 2013 at 6:41 am #9430
    narasimha
    Participant

    hi sir

     

     

    if we activate one port and in which we need to make a delay in that port for each pin of about 12 seconds

     

    can u help me in the coding side

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Does US electric code allow branching ? July 19, 2025
  • Faulty heat air gun (dc motor) - problem to locate fault due to Intermittent fault July 19, 2025
  • Fun with AI and swordfish basic July 19, 2025
  • Sump pit water alarm - Kicad 9 July 19, 2025
  • turbo jet fan - feedback appreciated. July 19, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise