Ks0014 keyestudio Analog Rotation Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<br>[[File:KS0014 (3).jpg|400px|thumb]]<br>
<br>[[File:KS0014 (3).jpg|400px|thumb]]<br>


<br>
==Introduction==
==Introduction==
This analog rotation sensor is compatible with arduino. 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 use it to make many interesting projects by reading the analog value from the IO port.  
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>
==Specification==
==Specification==
*Supply Voltage: 3.3V to 5V
*Supply Voltage: 3.3V to 5V
*Interface: Analog
*Interface: Analog
*Size: 30*20mm
*Weight: 8g


<br>
==Connection Diagram ==
==Connection Diagram ==
<br>[[File:Ks0014.png|600px|frameless|thumb]]<br>


<br>[[File:142.png|500px|frameless|thumb]]<br>
<br>
 
==Sample Code ==
==Sample Code ==
<pre>
<pre>
///Arduino Sample Code
void setup()
void setup()
{
{
Line 30: Line 28:
Serial.println(val,DEC);//Print the value to serial port
Serial.println(val,DEC);//Print the value to serial port
delay(100);
delay(100);
}</pre>
}
</pre>
 
<br>
==Result==
<br>[[File:KS0349 20-2.png|800px|frameless|thumb]]<br>
Done wiring and powered up, upload well the above code, then open the serial monitor and set the baud rate as 9600, finally you will see the analog value. If rotate the knob on the rotation sensor, the value will be changed within 0-1023. Shown below.
<br>[[File:KS0349 20-3.png|800px|frameless|thumb]]<br>


<br>
==Resources ==
==Resources ==


'''Video'''
* '''Video'''<br>
 
http://video.keyestudio.com/ks0014/
http://www.keyestudio.com/wp/ks0014/


'''PDF'''
* '''PDF and Code''' <br>
https://drive.google.com/open?id=140QRHgX-oXiunYnw3zGGlHadwrULJfLK


https://drive.google.com/open?id=1gb4JLRKtbC3fHp6Vsbn3b8AjUgH1AH-Y


<br>
==Get One Now==
==Get One Now==
'''Official Website'''
http://www.keyestudio.com/keyestudio-analog-rotation-sensor.html


'''ebay'''
*[https://www.keyestudio.com/free-shipping-keyestudio-adjustable-potentiometer-module-for-arduino-uno-and-mega-p0397-p0397.html  '''Official Website''']
 


http://stores.ebay.com/keyesrobot/?_dmd=2&_nkw=keyestudio+Digital+White+LED+Module


[[Category: Sensor]]
[[Category: Sensor]]

Revision as of 13:25, 12 April 2019


KS0014 (3).jpg



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.


Specification

  • Supply Voltage: 3.3V to 5V
  • Interface: Analog


Connection Diagram


thumb


Sample Code

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


Result


thumb
Done wiring and powered up, upload well the above code, then open the serial monitor and set the baud rate as 9600, finally you will see the analog value. If rotate the knob on the rotation sensor, the value will be changed within 0-1023. Shown below.
thumb


Resources

  • Video

http://video.keyestudio.com/ks0014/

  • PDF and Code

https://drive.google.com/open?id=140QRHgX-oXiunYnw3zGGlHadwrULJfLK



Get One Now