Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Arduino serial monitor crashes when x value gets positive

Status
Not open for further replies.

eagle1109

Full Member level 6
Joined
Nov 20, 2014
Messages
390
Helped
4
Reputation
10
Reaction score
7
Trophy points
1,298
Location
Saudi Arabia
Activity points
5,926
Hello,

I want to express my problem very clear:

I'm developing my own libraries for Arduino boards with Arduino IDE, but I write my codes in C, I may change the library source file extension to .cpp for Arduino compatibility.


What I did until now:
1. Library for I2C.
2. Library for HMC5883L.

And included them in Arduino libraries folder.

Then, I wrote a small program in Arduino IDE to run the HMC5883L and display the values on the Arduino IDE's serial monitor.

So, the code is running well except one little problem! The serial monitor crashes the value of x-axis changes to the positive values, e.g. zero and above.

What could be the problem? And what files should I upload for you to help me?

Regards,
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top