GMU:Tutorials/Performance Platform/Controlling an Arduino with The Captury: Difference between revisions

From Medien Wiki
No edit summary
Line 72: Line 72:

<br style="clear:both">

== Second Part ==
== Second Part ==

Revision as of 02:54, 30 July 2016


This is a tutorial about how to control Arduino by Captury. A vibration motor will be used in Arduino as a trigger. So it’s mainly about how to control the motor by using the received data of Captury. In Arduino, there is also a small tutorial about how to trigger the vibration motor by using the photocell sensor, which is related to my project module, Wool's World.

Basically, the tutorial is divided into two parts. The first part is about the basic steps to control the vibration motor by using the photocell sensor. And for the second part which I will show you how to control it by Captury.

First Part

In this part I will show you how to use two photocells to control the on/off of two vibration motors in Arduino. The trigger was designed as if two photocells are covered by hands, then those vibration motors will vibrate simultaneously.

Hardware You Need: (for each item x2)


Vibration Motor

Arduino Board

1N4001 Diode

0.1µF ceramic capacitor

10KΩ Resistor

2N2222 NPN Transistor

USB Connector

So how do I test if the vibration motor works well?

The following circuit is the basic method to test your motor without photocell:

TIPS! For this circuit you may need a 1KΩ Resistor.


The Code for Test:

(The code vibrates the motor every minute)

const int motorPin = 3;

void setup()


pinMode(motorPin, OUTPUT);


void loop()


digitalWrite(motorPin, HIGH);


digitalWrite(motorPin, LOW);



After test successfully, you can build a circuit with photocell as a following diagram:


Second Part