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 15205 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

    From some of the discussions on the Arduino forum that crop up, I think videos or other info teaching users how to structure their code design could help. Sometimes beginners use a hundred lines of code when they could have collapsed it all into a 5-line 'for' loop for instance, or creating functions. Also, how to troubleshoot code - from blinking an LED or two for status, to using a multimeter or 'scope to check activity on pin(s), and using the console for debug print statements.

    Also, how to test algorithms using a PC, Pi etc., before placing that code into the Arduino IDE. Using #ifdefs, etc.

    I think a lot of people could concentrate more on the end application if they can get through the coding basics, before working with the Arduino libraries.

    Also, some example code structures/patterns, for instance how to accept user input, maybe debounce it, and also do some processing in the background, how that could be implemented with timers or interrupts or any other service provided by the Arduino system to achieve such real-time tasks.

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

    From some of the discussions on the Arduino forum that crop up, I think videos or other info teaching users how to structure their code design could help. Sometimes beginners use a hundred lines of code when they could have collapsed it all into a 5-line 'for' loop for instance, or creating functions. Also, how to troubleshoot code - from blinking an LED or two for status, to using a multimeter or 'scope to check activity on pin(s), and using the console for debug print statements.

    Also, how to test algorithms using a PC, Pi etc., before placing that code into the Arduino IDE. Using #ifdefs, etc.

    I think a lot of people could concentrate more on the end application if they can get through the coding basics, before working with the Arduino libraries.

    Also, some example code structures/patterns, for instance how to accept user input, maybe debounce it, and also do some processing in the background, how that could be implemented with timers or interrupts or any other service provided by the Arduino system to achieve such real-time tasks.

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

    "...Sometimes beginners use a hundred lines of code when they could have collapsed it all into a 5-line 'for' loop for instance, or creating functions..."

    I think that sometimes happens because beginners don't realise how quickly things tend to grow out of control. Also because they are often working from small snippets of example code from beginners guides and chaining it together into something a bit larger without always considering the overall program design. After several hours and once they get to a few 1,000 lines of something that appears to be working, it can be daunting to hack it all apart to try and tidy it up, with a good chance of breaking it in the process.

    For a beginner it can also often be difficult to firstly identify well-written code and then secondly to understand it.

    I think there is room for a more structured course based around Arduino as the platform. The official starter kit is great for getting people interested in Arduino but there ideally needs to be something that follows on from that which helps develop better programming and interfacing skills.

    If anyone has seen David Beazley's Python Programming Language Live Lesson course, then a lot can be learned from that style. He starts with the basic way of doing stuff but then is always revealing a better way, whilst talking you through as to why it is better each time. He also adds context by using useful everyday examples where you can use these techniques. 

    Perhaps slightly controversial, but another course worth mentioning is Atmel's Getting Started with AVR by Glen Nilsen. It uses the Atmel ATmega 328P Xplained/Atmel Studio instead of the Arduino Uno/IDE but it leverages the hardware side of the ATmega 328P. Most of the main program loop is empty as the on-chip peripherals have been set up to do all the heavy lifting in the initial setup routine.

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