Free 186 More Best Homemade Tools eBook:  
Get tool plans

User Tag List

Results 1 to 5 of 5

Thread: An Arduino Debugging Tool

  1. #1
    Supporting Member rgsparber's Avatar
    Join Date
    Nov 2012
    Location
    Phoenix, AZ
    Posts
    1,321
    Thanks
    778
    Thanked 2,839 Times in 670 Posts

    rgsparber's Tools

    An Arduino Debugging Tool

    If I am debugging C++ code on an Arduino with USB access to my PC, I use print statements to tell me what is going on. These statements contain information that lets me know where the print came from and when it came. Most of this is done using a macro program so I hit a few keys and get the desired result.

    If you are interested, please, click here.


    Your comments are welcome. All of us are smarter than any one of us.


    Thanks,

    Rick

    186 More Best Homemade Tools eBook
    Rick

  2. The Following 4 Users Say Thank You to rgsparber For This Useful Post:

    highpointpat (Nov 3, 2021), Jon (Nov 5, 2021), nova_robotics (Nov 2, 2021), old_toolmaker (Oct 31, 2021)

  3. #2
    Content Editor
    Supporting Member
    DIYer's Avatar
    Join Date
    Aug 2013
    Posts
    3,055
    Thanks
    793
    Thanked 1,885 Times in 1,682 Posts


    Thanks rgsparber! We've added your Arduino Debugging Tool to our Electronics category,
    as well as to your builder page: rgsparber's Homemade Tools. Your receipt:




    2,000+ Tool Plans

  4. The Following User Says Thank You to DIYer For This Useful Post:

    old_toolmaker (Oct 31, 2021)

  5. #3
    Supporting Member BuffaloJohn's Avatar
    Join Date
    Aug 2019
    Location
    Oregon, USA
    Posts
    851
    Thanks
    309
    Thanked 439 Times in 262 Posts

    BuffaloJohn's Tools
    What is old is new...

    Back in the 70's we did the same thing - in Assembly or Fortran on the Cyber 74 or the Univac 1108 - and we didn't have any kind of fancy development environment, unless you count getting a chair with arms in the room where we punched cards - ah those were the days, submitting a card deck and going away for hours while we waited our turn for the deck to be run and the results printed or plotted and then waiting for the display light to indicate our job was done.

    Also did that on every other computer I worked on - micros, minis, controllers, and on. Why? Shouldn't these fancy IDEs do all that? Well, no, sometimes you were trying to debug a highly sensitive to time code bit, interrupt or driver or whatever. When working on something that is broke, you sometimes need to figure out where it is broken at speed. The old print statement worked well, but sometimes you needed to send the place code off to a port so you could get back to running the real code - a quick write to a port and back to work.

    And then you found out that it worked differently with the debugging statements and it was back to the drawing board trying to figure how to measure without changing the result... all hail Heisenberg!!!

    Ok, that reference might be obscure for some, Heisenberg's Uncertainty Principle states there is a limit to the simultaneous measurement of position and momentum. That same principle applies to the examination of a working machine or code.

  6. The Following 2 Users Say Thank You to BuffaloJohn For This Useful Post:

    old_toolmaker (Oct 31, 2021), rgsparber (Oct 31, 2021)

  7. #4
    Supporting Member hemmjo's Avatar
    Join Date
    Feb 2017
    Posts
    2,662
    Thanks
    251
    Thanked 1,514 Times in 855 Posts

    hemmjo's Tools
    Ok so maybe a bit off topic, but maybe not. I have been fascinated with the Arduino and what is can do for sometime now. I have a need for a controller that will measure temperatures analyze trends then turn various pumps and blowers off and on as required.

    This is related to the geothermal heat pump heating and cooling and domestic hot water system I assembled in my home back in the 80's when it was not a thing around here. People then told me I was crazy. I know it is working well, because one winter when it failed, the back up resistance heating system more than tripled our electric bill for the month it took me to parts to get it back online. I think I can make it better.

    The system has always been controlled with mechanical devices, temp sensors, relays, etc, controlling each function. Currently the controller on one of the heat pumps is going bad. The controller is no available for replacement.

    I would like to integrate all of the functions into one integrated control system. In order to do this I need something that can monitor temperatures at 18-20 locations, process that data and switch off and on 12-14 various devices as required. While displaying status of sections of the system.

    I have been investigating the possibilities and would like to get started trying so thing to see if my old brain can learn what it needs to to attempt this project. From what I have read, it seems the Arduino may be able to handle this task. I have been looking at starter kits that contain various components. Can any of you Arduino veterans suggest a way to jump into this investigation.

    As I have mentioned, I have been called crazy, so I am not unaware of that possibility. But sometimes, my ideas do work out.

  8. The Following User Says Thank You to hemmjo For This Useful Post:

    that_other_guy (Nov 10, 2021)

  9. #5
    Supporting Member rgsparber's Avatar
    Join Date
    Nov 2012
    Location
    Phoenix, AZ
    Posts
    1,321
    Thanks
    778
    Thanked 2,839 Times in 670 Posts

    rgsparber's Tools
    Quote Originally Posted by hemmjo View Post
    Ok so maybe a bit off topic, but maybe not. I have been fascinated with the Arduino and what is can do for sometime now. I have a need for a controller that will measure temperatures analyze trends then turn various pumps and blowers off and on as required.

    This is related to the geothermal heat pump heating and cooling and domestic hot water system I assembled in my home back in the 80's when it was not a thing around here. People then told me I was crazy. I know it is working well, because one winter when it failed, the back up resistance heating system more than tripled our electric bill for the month it took me to parts to get it back online. I think I can make it better.

    The system has always been controlled with mechanical devices, temp sensors, relays, etc, controlling each function. Currently, the controller on one of the heat pumps is going bad. The controller is no available for replacement.

    I would like to integrate all of the functions into one integrated control system. In order to do this I need something that can monitor temperatures at 18-20 locations, process that data and switch off and on 12-14 various devices as required. While displaying status of sections of the system.

    I have been investigating the possibilities and would like to get started trying so thing to see if my old brain can learn what it needs to to attempt this project. From what I have read, it seems the Arduino may be able to handle this task. I have been looking at starter kits that contain various components. Can any of you Arduino veterans suggest a way to jump into this investigation.

    As I have mentioned, I have been called crazy, so I am not unaware of that possibility. But sometimes, my ideas do work out.
    Your project is an excellent application of an Arduino.

    I have developed a Flight Data Recorder that records 8 channels of analog voltages. You wouldn't need to record, just process this data. It uses a Sparkfun Pro Mico. A minor challenge is getting enough analog ports.

    I have also developed a Flow Management and Control system that uses a Pro Micro. It monitors the water flow on 6 irrigation zones and does logic with the data.

    If you like, contact me privately and I can help you figure out how to use an Arduino to control your system. The hard part has been done by you - figuring out what you want done. Recasting this logic into an Arduino is easy, by comparison.

    Rick



    2,000+ Tool Plans
    Rick

  10. The Following 2 Users Say Thank You to rgsparber For This Useful Post:

    Sleykin (Nov 7, 2021), that_other_guy (Nov 10, 2021)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •