<?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=Crazy_Mouse</id>
		<title>Crazy Mouse - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Crazy_Mouse"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Crazy_Mouse&amp;action=history"/>
		<updated>2026-04-21T11:32:35Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Crazy_Mouse&amp;diff=11148&amp;oldid=prev</id>
		<title>1304410487@qq.com：Created page with &quot;{{Language| Crazy Mouse}} {| style=&quot;width: 800px;&quot; |- | ==Objective== Beat the mouse and it will rush forward for some distance.  ==Principle== Use Microduino-Shake sensor to ...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Crazy_Mouse&amp;diff=11148&amp;oldid=prev"/>
				<updated>2015-10-30T07:07:34Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language| Crazy Mouse}} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective== Beat the mouse and it will rush forward for some distance.  ==Principle== Use Microduino-Shake sensor to ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language| Crazy Mouse}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
Beat the mouse and it will rush forward for some distance.&lt;br /&gt;
&lt;br /&gt;
==Principle==&lt;br /&gt;
Use Microduino-Shake sensor to detect the beat and let the motor lead the mouse run for some distance.  &lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Module||Number||Function&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-CoreUSB]]||1||Core board &lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Sensorhub]]||1||Sensor pin board &lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-Shake]||1||Vibration sensor &lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-Robot]]||1||Robot control board  &lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-Motor]]||1||DC motor drive module &lt;br /&gt;
|-&lt;br /&gt;
| [[Motor]]||1||Motor &lt;br /&gt;
|}&lt;br /&gt;
 [[File:_crazy_mouse.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Hardware Buildup==&lt;br /&gt;
*Setup 1：Stack the CoreUSB, Robot, Motor and Sensorhub together. &lt;br /&gt;
[[File:CoreUSB_Robot_Sensorhub.jpg|600px|center|thumb]]&lt;br /&gt;
*Setup 2：Connect the vibration sensor to Sensorhub D2 and the motor to Stepper's OUTIA,OUTIB. &lt;br /&gt;
[[file:Microduino-sensorhub_stepper.JPG|thumb|800px|center]]&lt;br /&gt;
[[File:temp_ir_sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Software Debugging==&lt;br /&gt;
*Description for Control Pin Definition&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#define PIN_SHAKE 2    //The vibration sensor input pin &lt;br /&gt;
#define PIN_MOTOR 6    //Motor output pin &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Judge if the vibration sensor is triggered. If yes, please control the motor and run it for three seconds after the trigger. &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
sensorReading = digitalRead(PIN_SHACK);    //Read the status of the vibration sensor. &lt;br /&gt;
if(sensorReading == HIGH)&lt;br /&gt;
{&lt;br /&gt;
  digitalWrite(PIN_MOTOR,LOW);    //The motor works for three seconds.  &lt;br /&gt;
  delay(3000);&lt;br /&gt;
  digitalWrite(PIN_MOTOR,HIGH);&lt;br /&gt;
}&lt;br /&gt;
delay(1000);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
[[https://github.com/Microduino/Microduino_Tutorials/tree/master/MCookie_Tutorial/MicroduinoCrazyMouse MicroduinoCrazyMouse]]&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
By beating the mouse once, Microduino-Shake can detect vibration and the mouse will rush forward for three seconds. &lt;br /&gt;
==Video==&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>