Questions tagged [debugging]

The process of finding and resolving problems ('bugs') in a hardware and/or software system.

92 questions
15
votes
4 answers

My code seems to be a train wreck

I am new to programming and I thought a simple project to do would be to create an ammo counter. I have been troubleshooting this code for several hours now, and can not figure out why my code is riddled with errors. Below is my program. Please give…
pvGuy
  • 183
  • 1
  • 9
9
votes
4 answers

How to use breakpoints for debugging

Breakpoints are a great way to see how the compiler runs to your code. Now my question is, is there a possibility to use breakpoints when you debug your code?
H. Pauwelyn
  • 207
  • 1
  • 2
  • 10
2
votes
0 answers

LED not lighting up despite digitalRead displaying 1

As part of a project, I created a simulation of a juncture with 4 traffic signals. The time for the green signal is set based on a function that calculates it based on an algorithm (and it takes the no. of cars, motorcycles, buses and trucks as…
satan 29
  • 169
  • 1
  • 9
2
votes
2 answers

Extract arduino collected data periodically

I'd like to extract data collected by a battery powered arduino for example once a day without stopping it and not using SD card. It's posible, when I want to extract the collected data, to connect a laptop through the USB and then get data because…
user4502
  • 21
  • 1
1
vote
0 answers

Lilygo TTGO T-Beam Guru Meditation Error

I have recently purchased a lilygo ttgo t-beam (868Mhz version) on which I try to run the "DeviceInfo" example code provided by TheThingsNetwork. When executing ttn.ShowStatus(); I see in the Serial Monitor an error stating that "core 1 panic'ed"…
George Sp
  • 153
  • 1
  • 9
1
vote
1 answer

Help with debugging code

This is NOT my code; was posted on Project Hub. I tried to use the code (humidity controller) but it returns an error on line 270: else if (DHT.humidity >= setpoint + 3 and syson == true) { //if humidity is 3% above setpoint Error: expected…
kwhunter
  • 23
  • 10
1
vote
1 answer

don't save on tab

Ok, I made some changes to the code and I wish they would see it. At the moment the program has a bug, it is not saving the contents of the txt file to the table, can someone give some lights? #include #include #include…
1
vote
2 answers

Debugger for Code::Blocks + Arduino

I am not very experienced in this, but I was wondering if Code::Blocks has a way of getting a debugger that runs for Arduino chips, specifically. I understand there is Arduino IDE for but does it allow debugging specific to those microcontrollers…
Blizzard
  • 121
  • 3
1
vote
3 answers

Problems stopping an if loop, and starting it as well

I want my code to run my motor for a specific amount of time at a specific speed and then stop and not do anything else. I'm having trouble here, I think with my switch and the if loops running on repeat. What is a good way for me to stop the code…
Team One
  • 23
  • 3
0
votes
1 answer

How do I write a debugger for Arduino?

I want to write my own debugger. I've found Visual Micro plugin for Visual Studio provides Arduino Debug. So, does anyone have ideas how it works? I just desire make the same plugin in Eclipse IDE.
ztrn
0
votes
3 answers

Why is this spitting giberish instead of serial numbers?

#include void setup() { char* ss= (char*)TrueRandom.random(111111111,999999999); char* finalss; Serial.begin(9600); finalss[0] = ss[0]; finalss[1] = ss[1]; finalss[2] = ss[2]; finalss[3] = '-'; finalss[4] = ss[3]; …