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 What stops your Arduino project?
  • 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 49 replies
  • Subscribers 389 subscribers
  • Views 15217 views
  • Users 0 members are here
  • project
  • arduino
Related

What stops your Arduino project?

cstanton
cstanton over 3 years ago

Say you want to create a solution to a problem you have, like automating the door on a chicken coop with the time of day...

What tends to stop you from developing it? Do you find that you encounter a problem part way through the project? Is it some knowledge you're lacking or is it the software?

Would you benefit from help with circuit design? Or is it something else?

We're looking at expanding our introduction videos and guidance on using Arduino products, and I'm interested in what you need help with, so reply and let us know, regardless of knowledge level.

  • Sign in to reply
  • Cancel

Top Replies

  • ralphjy
    ralphjy over 3 years ago +7
    I run into problems when sensors or peripherals that I want to use don't have libraries available for the Arduino IDE and it is necessary to port a library or develop one from scratch. I also have problems…
  • fmilburn
    fmilburn over 3 years ago +7
    I find the Arduino libraries helpful for most of my simple projects. Unfortunately, there is much poor Arduino code on the internet and care must be taken to find a good source. So, a list of reputable…
  • shabaz
    shabaz over 3 years ago +7
    I just fired up Arduino and it printed this: void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } Which is ok, there…
Parents
  • shabaz
    shabaz over 3 years ago

    I just fired up Arduino and it printed this:

    void setup() {
      // put your setup code here, to run once:
    
    }
    
    void loop() {
      // put your main code here, to run repeatedly:
    
    }

    Which is ok, there's some help, but maybe needs a structure to help. For instance (this is just a crude example I just typed now, but there must be better examples out there):

    /*********************************************
     * My Application Name
     * revision 1.0 - date - name - description
     * 
     *********************************************/
    
    // Includes
    #include <Wire.h>
    
    // **** Definitions *****
    // general
    #define LED_PIN 0x01
    // I2C addresses
    
    // other GPIO registers
    
    // convenient values, states
    
    //******* typedef structs ********
    
    
    // ******* consts ****************
    
    
    // ****** global variables *******
    
    // ****** function prototypes ****
    
    // ****** setup function runs at startup *****
    void setup() {
    
    }
    
    // ****** loop runs forever after setup *****
    void loop() {
    
    }
    
    
    // ****** other functions *******************
    
    

    And then when people start with a neat template with comments etc., then that kind of makes them want to continue to write neat code for the remainder, and just seeing the different sections makes one realize to read up on those sections because they are probably there for a reason! : )

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • Cancel
  • javagoza
    javagoza over 3 years ago in reply to shabaz

    I am thinking of my little son of 10 years, this year he has gone from programming in Scratch to start programming with Arduino. In scratch he already had a good level, conditionals, loops, passing messages between objects, variables and use of semaphores, understanding races and critical sections.

    With Arduino and that "sketch" mini-skeleton it hasn't cost him anything to start. With a more complex template or or force to define function prototypes first I think he would have been scared and given up.

    I remember my beginnings with BASIC and the ZX81, with the GOTOs and the GOSUBs, reading the code was a pain but in return it was easy to switch to the assembly language of the Z80. I don't take Arduino programming seriously, I see it more as a diversion to do inelegant and fast things. I am still looking forward to how PRO boards can evolve and what response they have in the industry.

    I think it's a great platform to introduce younger and not so young people to embedded systems.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 3 years ago in reply to javagoza

    Hi Enrique,

    I agree, but there comes a point when some extra help is needed, otherwise even the basics for real-time, such as button-debouncing, display updating and so on, are in a long unmaintainable loop. The single loop() is fine to begin with, without the clutter.

    But for next steps, without a template or reminder of how to organize code may be hard.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 3 years ago in reply to shabaz

    I suppose I should add, technically a long loop can be fine : ) I worked on a communications product where the code (not written by me) was in fact a long loop.. one function call after the next, there must have been 40 of them in the loop : ) It was in equipment intended for mission-critical purposes : ) It was certainly hard adding new features, and today things can be done differently (there was no OS in use in that product) but good code can be written in a long loop, my comment above was very general.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago in reply to shabaz

    With all these additional comments you want to add then your loop could potentially get even longer Slight smile

    However it sounds like a good topic for further discussion.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • beacon_dave
    beacon_dave over 3 years ago in reply to shabaz

    With all these additional comments you want to add then your loop could potentially get even longer Slight smile

    However it sounds like a good topic for further discussion.

    • Cancel
    • Vote Up +2 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