Debugging an Arduino Sketch :: Viewer Question #2

preview_player
Показать описание
🤩 FREE Arduino Crash Course 👇👇

Рекомендации по теме
Комментарии
Автор

Debugging is not writing code, it's stepping through code. Code can sill have bugs and compile correctly. Not having an integrated debugger is the biggest flaw in the Arduino IDE. You should be able to step through your code like you can in Visual Studio when using a Netduino. 

SamFugarino
Автор

Nice to see your methodology in DEBUGGING this code.

TheJimtanker
Автор

Buy a TI MSP430 LaunchPad for 10 bucks (price of original hardware, not clones). It features JTAG interface and it will have the same feature as debugging code in your PC. Watch varibles, see memory, breakpoints, step by step execution, etc. Energia is an Arduino-like interface, but I'm pretty sure it's better going on with the CCS.

mgruber
Автор

Great video Mike, I can't wait till I'm ready for the paid course. thanks mike

snaprollinpitts
Автор

Hi! sir i ask a question.how to count the IR Sensor detection? there is coding relating to IR Sensor.
// IR Obstacle Collision Detection Module
// Henry's Bench
int LED = 13; // Use the onboard Uno LED
int isObstaclePin = 7; // This is our input pin
int isObstacle = HIGH; // HIGH MEANS NO OBSTACLE
void setup() {
pinMode(LED, OUTPUT);
pinMode(isObstaclePin, INPUT);
Serial.begin(9600);
}
void loop() {
isObstacle = digitalRead(isObstaclePin);
if (isObstacle == LOW)
{
Serial.println("OBSTACLE!!, OBSTACLE!!");
digitalWrite(LED, HIGH);
}
else
{
Serial.println("clear");
digitalWrite(LED, LOW);
}
delay(200);
}

muhammadbilalkhan
Автор

awesomem but again how do we suppose to deal with user defined functions?

thomassaook
Автор

How did you get the idea to highlight the errors and bye the way I have been watching your videos they are very helpful

HarrisRubin
Автор

I agree with some others, this is not debugging.

claudiufarcas
Автор

How an arduino can do many thing in one time to get the thing write can make an program the can make understand how you can do it example please

shubhamvivekrao
Автор

Great video as always.  Huge help to many people.  Cheers

MkmeOrg