<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Dashboard</id>
		<title>Dashboard - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Dashboard"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Dashboard&amp;action=history"/>
		<updated>2026-04-22T16:28:34Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Dashboard&amp;diff=2956&amp;oldid=prev</id>
		<title>Pkj：Created page with &quot;{| style=&quot;width: 800px;&quot; |- | ==Objective==  The course will show you how to achieve a dashboard through Processing to display the inductive magnetic field change of Microduin...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Dashboard&amp;diff=2956&amp;oldid=prev"/>
				<updated>2014-06-09T09:19:51Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective==  The course will show you how to achieve a dashboard through Processing to display the inductive magnetic field change of Microduin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
&lt;br /&gt;
The course will show you how to achieve a dashboard through Processing to display the inductive magnetic field change of Microduino. &lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-FT232R]]'''&lt;br /&gt;
*'''[[Microduino-10DOF]]'''&lt;br /&gt;
&lt;br /&gt;
*Other Hardware Equipment &lt;br /&gt;
**A USB cable &lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
&lt;br /&gt;
Just use the HMC5883L magnetic field strength sensor of Microduino-10DOF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Processing/MicroduinoDashboard&lt;br /&gt;
&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Processing/ProcessingDashboard&lt;br /&gt;
&lt;br /&gt;
==Debugging==&lt;br /&gt;
&lt;br /&gt;
Step 1：Build the hardware environment according to the schematic, just like:  &lt;br /&gt;
[[File:processingDashboardConnectionDiagram.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
Download the library function of HMC5883L: &lt;br /&gt;
https://github.com/manifestinteractive/arduino/tree/master/Libraries/HMC5883L&lt;br /&gt;
&lt;br /&gt;
Step 2: Here is the code：&lt;br /&gt;
&lt;br /&gt;
The code of the two ends(Processing and Microduino)&lt;br /&gt;
&lt;br /&gt;
Microduino:&lt;br /&gt;
&lt;br /&gt;
Initialize HMC5883L in “setup()”  &lt;br /&gt;
&lt;br /&gt;
Calculate the angle of the magnetic induction &lt;br /&gt;
&lt;br /&gt;
//Output() used to output the calculated angle to the serial port &lt;br /&gt;
  // Output the data down the serial port.&lt;br /&gt;
  void Output(int RoundDegreeInt)&lt;br /&gt;
  {&lt;br /&gt;
    //Serial.println();&lt;br /&gt;
    Serial.println(RoundDegreeInt);&lt;br /&gt;
    delay(150);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Processing:&lt;br /&gt;
&lt;br /&gt;
//Get the data of the first serial port. &lt;br /&gt;
  myPort = new Serial(this, Serial.list()[0], 9600);&lt;br /&gt;
&lt;br /&gt;
//The code below in drawCube() is used to acquire the serial data&lt;br /&gt;
&lt;br /&gt;
  while (myPort.available() &amp;gt; 0) {&lt;br /&gt;
    myString = myPort.readStringUntil(lf);&lt;br /&gt;
    if (myString != null) {&lt;br /&gt;
  //print(myString);  // Prints String&lt;br /&gt;
    angle=float(myString);  // Converts and prints float&lt;br /&gt;
    println(angle);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
Function Reference：&lt;br /&gt;
&lt;br /&gt;
//Draw the center point of the dashboard &lt;br /&gt;
buildpoint()&lt;br /&gt;
&lt;br /&gt;
//Draw the dashboard and the pointer scale  &lt;br /&gt;
builddashboard()&lt;br /&gt;
&lt;br /&gt;
//Receive the serial data and draw the center point &lt;br /&gt;
drawCube()&lt;br /&gt;
&lt;br /&gt;
//Draw the whole dashboard &lt;br /&gt;
drawCube1()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3：Download the code and get it compiled successfully. &lt;br /&gt;
&lt;br /&gt;
Step 4：Use a magnet to change the magnetic field to see if the pointer changes after the system goes well. &lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
&lt;br /&gt;
A little compass will be displayed on the scree, which goes along with the change of the magnetic field, just like: &lt;br /&gt;
[[File:processingDashboardResult.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Video==&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	</feed>