Ks0109 keyestudio EASY plug Analog Rotation Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==EASY plug Analog Rotation Sensor ==
[[image:ks0109图.jpg|thumb|600px|right|Keyestudio White LED Module]]
<br>[[File:ks0109-1.png|500px|frameless|thumb]]<br>


==Introduction==
==Introduction==
This analog Rotation Sensor is arduino compatible. It is based on a potentiometer. Its voltage can be subdivided into 1024, easy to be connected to Arduino with our sensor shield. Combined with other sensors, we can make interesting projects by reading the analog value from the IO port.<br>
The sensor is based on a potentiometer. A potentiometer is also known as a variable resistor. It is a perfect demonstration of a variable voltage divider circuit. Its voltage can be subdivided into 1023, easy to be connected to Arduino with our sensor shield. <br>
Note: this module needs to be used together with EASY plug control board.<br>
Combined with other sensors, you are able to make interesting projects by reading the analog value from the IO port.<br>
 
<span style="color: red">'''Note: ''' </span> this module should be used together with EASY plug control board.<br>


<br>
==Specification==
==Specification==
* Interface: Easy plug
* Connector: Easy plug
* Supply Voltage: 3.3V to 5V
* Supply Voltage: 3.3V to 5V
* Sensor type: Analog
* Sensor type: Analog
* Size: 39*20mm
* Weight: 10g


==Connection Diagram ==
<br>
<br>[[File:ks0109-2.png|500px|frameless|thumb]]<br>
==Technical Details==
* Dimensions: 39mm*20mm*29mm
* Weight: 9.1g
<br>


==Connect It Up ==
Connect the EASY Plug potentiometer sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
<br>[[File:ks0109.jpg|500px|frameless|thumb]]<br>


==Sample Code==
<br>
==Upload the Code==
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.
<pre>
<pre>
///Arduino Sample Code
void setup()
void setup()
{
{
Serial.begin(9600); //Set serial baud rate to 9600 bps
Serial.begin(9600); //Set serial baud rate to 9600 bps
}
}
void loop()
void loop()
Line 35: Line 39:
</pre>
</pre>


<br>
==What You Should See==
After uploading the code, open the serial monitor and set the baud rate to 9600, you should see the analog value showed on the monitor.
If rotate the potentiometer, the value will change within the range of 0-1023.
<br>[[File:ks0109 Result.gif|500px|frameless|thumb]]<br>
<br>
==Resources ==
==Resources ==
'''PDF'''
'''PDF'''
https://drive.google.com/open?id=169UqNryrMv81-xdycY1BE3auMBY9RRCU
https://drive.google.com/open?id=169UqNryrMv81-xdycY1BE3auMBY9RRCU


<br>
==Buy from ==
==Buy from ==
'''Official Website'''
'''Official Website'''
http://www.keyestudio.com/keyestudio-easy-plug-analog-rotation-sensor-module-for-arduino.html


http://www.keyestudio.com/keyestudio-easy-plug-analog-rotation-sensor-module-for-arduino.html


[[category:EASY Plug]]
[[category:EASY Plug]]

Revision as of 09:41, 16 November 2018

Keyestudio White LED Module

Introduction

The sensor is based on a potentiometer. A potentiometer is also known as a variable resistor. It is a perfect demonstration of a variable voltage divider circuit. Its voltage can be subdivided into 1023, easy to be connected to Arduino with our sensor shield.
Combined with other sensors, you are able to make interesting projects by reading the analog value from the IO port.
Note: this module should be used together with EASY plug control board.


Specification

  • Connector: Easy plug
  • Supply Voltage: 3.3V to 5V
  • Sensor type: Analog


Technical Details

  • Dimensions: 39mm*20mm*29mm
  • Weight: 9.1g


Connect It Up

Connect the EASY Plug potentiometer sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb


Upload the Code

Copy and paste below code to Arduino IDE and upload.

void setup()
{
Serial.begin(9600); //Set serial baud rate to 9600 bps
}
void loop()
{
int val;
val=analogRead(3);//Read rotation sensor value from analog 3
Serial.println(val,DEC);//Print the value to serial port
delay(100);
}


What You Should See

After uploading the code, open the serial monitor and set the baud rate to 9600, you should see the analog value showed on the monitor. If rotate the potentiometer, the value will change within the range of 0-1023.
thumb


Resources

PDF https://drive.google.com/open?id=169UqNryrMv81-xdycY1BE3auMBY9RRCU


Buy from

Official Website http://www.keyestudio.com/keyestudio-easy-plug-analog-rotation-sensor-module-for-arduino.html