arduinocc
Published © GPL3+

Portable Web Debugger for All Platforms

Serial Web Debugging can be used with shared sessions, breaks, watches and charting, you can share your project anywhere with one solution..

BeginnerShowcase (no instructions)3,480
Portable Web Debugger for All Platforms

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
** Or ANY board with a Serial Interface **
×1

Software apps and online services

Arduino IDE
Arduino IDE
Visual Studio 2017
Microsoft Visual Studio 2017
Visual Micro

Story

Read more

Schematics

No Additional Wiring for Serial Debug

Just to show how nothing is needed beyond the USB lead to the PC from your board.

Code

SerialDebuggerExample.ino

Arduino
Main Sketch - just code to use with the Serial Debugging Tool in the examples shown
double currentSinVal = 0.0;
double currentCosVal = 0.0;
int randomVal = 0;

void setup() {
	Serial.begin(115200);
	randomSeed(millis());
	pinMode(13, OUTPUT);
}

void loop() {
	currentSinVal = getSinValue(millis());
	currentCosVal = getCosValue(millis());
	randomVal += random(0, 100);	
	Serial.print(F("Random:"));
	Serial.print(randomVal);
	delay(100);   
}

Calcs.ino

Arduino
Secondary INO file for use in the examples
// Calculations kept in seperate ino 

double getSinValue(unsigned long millis) {
	double newSin = 1+ sin(millis / 200);
	return newSin * 90;
}

double getCosValue(unsigned long millis) {
	double newCos = cos(millis / 200);
	return newCos * 90;
}

Credits

arduinocc
5 projects • 13 followers
Arduino compatible IDE for Microsoft Visual Studio and Atmel Studio 7 with unique USB Debugger, Trace, Pin Viewer and Plotter, GDB Debugging
Contact

Comments

Please log in or sign up to comment.