element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Arduino
  • Products
  • More
Arduino
Arduino Forum What stops your Arduino project?
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Arduino requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 49 replies
  • Subscribers 124 subscribers
  • Views 7889 views
  • Users 0 members are here
  • project
  • arduino
Related

What stops your Arduino project?

cstanton
cstanton 4 months 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.

  • Reply
  • Cancel
  • Cancel

Top Replies

  • ralphjy
    ralphjy 4 months 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…

  • fmilburn
    fmilburn 4 months 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 sources…

  • shabaz
    shabaz 4 months 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
  • Jan Cumps
    Jan Cumps 4 months ago

    A simple debugger. Step, breakpoint and watching variables is a good start. A debugger is available for some boards now as a separate kit.' I've missed IDE debugger integration since day 1. 

    Low power designs. Most Arduino Classic designs run the controller in high power mode, and converting those to low power is not straightforward. Improved with the MKRxxxx family.

    • Cancel
    • Vote Up +6 Vote Down
    • Reply
    • Cancel
Reply
  • Jan Cumps
    Jan Cumps 4 months ago

    A simple debugger. Step, breakpoint and watching variables is a good start. A debugger is available for some boards now as a separate kit.' I've missed IDE debugger integration since day 1. 

    Low power designs. Most Arduino Classic designs run the controller in high power mode, and converting those to low power is not straightforward. Improved with the MKRxxxx family.

    • Cancel
    • Vote Up +6 Vote Down
    • Reply
    • Cancel
Children
  • javagoza
    javagoza 4 months ago in reply to Jan Cumps

    I agree with you, the debugger is something that you'll miss if you were already used to working that way.

    But code debugging in embedded systems is quite complicated. I have seen bad code many times that when you compiled the code without the debug lines the program stopped meeting the timing specifications. Especially in communication problems with many protocols.

    "Step, breakpoint, and watch variables are a good start" to a big mess ;)  I remember that a few years ago when I was debugging a program for a card payment countertop POS in that way, I stopped the program to see some variables of a GPRS communications task that was running in the background when printing the purchase receipt. I was not very lucky I stopped the program when the thermal head of the thermal printer was on... me looking at the debugger on my computer screen while the POS caught fire.

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • Cancel
  • colporteur
    colporteur 4 months ago in reply to javagoza

    OUCH! 

    I chuckled at the predicament you described. I had a similar experience with a maker project containing a  28BYJ48. I stopped the program to work on some code not realizing 5V was applied to all coil windings. I scorched my fingers when I tried to remove the motor it was so hot.

    Programs are the majordomo of the system. Interrupt them from the task, have insufficient safety protocols or none at all and bad things can happen.

    In the eighties, I maintained a dish tracking system for weather balloons. The electronics were tubes. The servo's in that beast could whip the disk antenna around in less than seconds. The safety protocols recommended insertion of the 2inch diameter steel pins in the gear mechanism when performing any maintenance. The pins prevented movement. I respected that recommendation after seeing the mangled trash can the instructor displayed that tried stopping the beast. My spindly legs and arms would be no match for it.

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • Cancel
  • Jan Cumps
    Jan Cumps 4 months ago in reply to colporteur

    I hear both of you :) - but can also compare with dev kits from TI, ST, Renesas, NXP, Silicon Labs, Infineon, ... that have a debugger, on board and in the IDE.

    • Cancel
    • Vote Up +3 Vote Down
    • Reply
    • Cancel
  • fmilburn
    fmilburn 4 months ago in reply to Jan Cumps

    A debugger in the Arduino IDE is long overdue. They have had a debugger in their Beta IDE for some time now - don’t know why it is takng so long to get it stable. I recently tested the Würth Sensor FeatherWing which uses Visual Studio Code and Arduino libraries. It has a debugger and worked well in my limited testing.

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • Cancel
  • phoenixcomm
    phoenixcomm 4 months ago in reply to Jan Cumps

    Oh, come on now. duh its called "printf ie printf("variables LAT %f6, LON%f6, ALT%f6, pitch %f6, roll f6, yaw f6",
    lat, lon, alt, pitch, roll, yaw" );
    if you want to be fancy you can create a function  void debug () { line above; return;}
    in C even if you have a function of a void type you can still add the return statement. 

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • Cancel
  • Jan Cumps
    Jan Cumps 4 months ago in reply to phoenixcomm

    It has the same drawbacks as a debugger - printf influences execution time and makes parallel processes run serial in some cases - 
    without the benefits of a debugger. We're in 2022.

    • Cancel
    • Vote Up +1 Vote Down
    • Reply
    • Cancel
  • phoenixcomm
    phoenixcomm 4 months ago in reply to Jan Cumps

    Jan, get over it, in most cases a printf is all you need. 

    A debugger is used nomally used in assembly code

    If you really want a debugger with breakpoints use Eclipse.

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

  • Facebook
  • Twitter
  • linkedin
  • YouTube