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 Arduino command
  • 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 10 replies
  • Subscribers 392 subscribers
  • Views 897 views
  • Users 0 members are here
Related

Arduino command

vasi_timis
vasi_timis over 6 years ago

Hey Guys, can you please help me with a projekt of mine. I want to make a digital pin from an arduino Mega to be an output on the minutes 1, 11, 21, 31, 41 and 51. And every hour has another Pin as an output the whole time it's that hour, the pin is on (minutes aren't important). How can I write something like that? Please help me (I'm new in Arduino programming).

Edit:

English is not my first language and It's a litle hard to explain what I want. I want to write a command where a Pin is gone be an output at a wanted minute independant from the hour it is right now. My projekt is called Qlocktwo.

  • Sign in to reply
  • Cancel

Top Replies

  • colporteur
    colporteur over 6 years ago +2
    It appears you are not only new to Arduino but Element14 also. Your approach will need some improvements if you hope to secure some assistance from the members of this site. Hopefully through an information…
  • colporteur
    colporteur over 6 years ago in reply to BigG +2
    NP. I get the glazed eyes when I describe Pi projects to my family. Technology is rarely a table topic with family and friends. Sean
  • clem57
    clem57 over 6 years ago in reply to vasi_timis +1
    Well vasi_timis , it has been made and done. And your in luck here it is. Please show your results here. Thanks colporteur for getting the information.
  • colporteur
    colporteur over 6 years ago

    It appears you are not only new to Arduino but Element14 also. Your approach will need some improvements if you hope to secure some assistance from the members of this site. Hopefully through an information exchange we can flush out your design.

     

    You want to use a Arduino Mega to produce an output at 1, 11, 21, 31, 41 and 51 minute intervals. Is the output for each minute intervals on the same pin or a separate pin for each interval?

     

    You want to produce an output on another pin the whole time its is that hour. Not sure I understand the requirement here. You want a one pin for each hour, to produce output on that hour?

     

    It would be much easier if you describe what you want to build rather than how to build it. (i.e. I want to build a timer. It has to provide output at these intervals. Outputs for minutes and hours is required.) What you are looking to make may already exist.

     

    Sean

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • vasi_timis
    vasi_timis over 6 years ago in reply to colporteur

    Yeah you're right I'm new here. And it's a qlocktwo. I know there are many little boards for it ut I want to do it with my mega. the output for each minute intervals is on the same pin. and you are right with the output for the hour.

    Vasi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 6 years ago in reply to vasi_timis

    Well vasi_timis,  it has been made and done. And your in luck here it is. Please show your results here. Thanks colporteur  for getting the information.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • colporteur
    colporteur over 6 years ago in reply to clem57

    In a former life, did you work at Bletchley park cracking code?

     

    How you arrived at word-clock, from the meager information provided is beyond me. I deserve no credit in the footnotes of your discovery. Other than I suspected some type of clock, the second response to my questions would have brought me no closer to your revelation that the information provided in the original post.

     

    I suspect you may have some exposure to this type of project to suggest the solution with the scant details in the posts. I doff my hat to you.

     

    Sean

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • BigG
    BigG over 6 years ago

    A good place to work out how to do it, is by looking here (look under the "Time" header): https://www.arduino.cc/reference/en/ 

     

    About your Mega board look here: https://www.arduino.cc/en/Guide/ArduinoMega2560

     

    Then assuming you have opened up the Arduino IDE and run through the various available examples for the Mega, then the next step is to work out what which example to start from. In your case I would suggest just looking at examples found in 01. Basics... Blink, and in 02. Digital... Blink without Delay

     

    Then when ready for more advanced stuff look at different libraries to handle timers. E.g. https://playground.arduino.cc/Code/Metro/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 6 years ago in reply to colporteur

    Shh. I had a second life there.image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • colporteur
    colporteur over 6 years ago in reply to BigG

    Your post is equivalent to dumping the contents of a heathkit on a table with a schematic and solder iron saying have at her, there is a AM/FM radio when done.

     

    Google searching "word clock" didn't provide the results I was looking for. I was hoping to find some details on the code. The variants of the human readable word clock project are numerous. Some more accurate than others.

     

    By way of a summary is the code for this just a lookup of the generate time values to be displayed as text (e.g. 20 =Twenty)? My code skills are not developed to read lines to get an understanding.

     

    Sean

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • BigG
    BigG over 6 years ago in reply to colporteur

    ha ha image very good. I suppose if someone asks me for directions on the street, I point them in the right direction. I don't take them there myself... so I took it literally when asked "I want to make a digital pin from an arduino Mega to be an output on the minutes 1, 11, 21, 31, 41 and 51"

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • colporteur
    colporteur over 6 years ago in reply to BigG

    NP. I get the glazed eyes when I describe Pi projects to my family. Technology is rarely a table topic with family and friends.

    Sean

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • BigG
    BigG over 6 years ago in reply to colporteur

    Yes, I can image that at the table it would cause glazed eye syndrome when the ears hear "raspberry pie" but the eyes just see electronics... image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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