• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeArduinoUse U-speed module on Arduino
Previous Next

Use U-speed module on Arduino

Posted by: admin , July 7, 2014

[vc_row][vc_column][vc_column_text]u-type-speed-module-5The principle of U-speed is the grooves of U shaped has an optical sensor and a light sensitive transistors respectively on both sides. The conduction state of receiver determines the output is high level or low level module. And then through the level number changes that occurred within a certain time to infer the motor speed. This module is widely used for motor speed measurement, pulse count, location, spacing, etc.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Part List” tab_id=”1402297463-1-12″][vc_column_text]

1  x  U-speed

1  x  Arduino

Several Jumper lines

[/vc_column_text][/vc_tab][vc_tab title=”Wiring Diagram” tab_id=”1402297463-2-87″][vc_column_text]

U-Speed module pin V – > Arduino  3.3v

U-Speed module pin G – > Arduino GND

U-Speed module pin S  – > Arduino D3

u-type-speed-module-4

[/vc_column_text][/vc_tab][vc_tab title=”Test Code” tab_id=”1402299429495-2-9″][vc_column_text]

int sigState = 0;
int sigPin = 3;
void setup() {
// put your setup code here, to run once:
pinMode (sigPin, INPUT);
Serial.begin (9600);
}

void loop() {
// put your main code here, to run repeatedly:
sigState = digitalRead (sigPin);
Serial.println (sigState);
}

Copy the code to Arduino IDE  on your computer and then upload it into the Arduino.

[/vc_column_text][/vc_tab][vc_tab title=”Test Result” tab_id=”1402299432007-3-8″][vc_column_text]

When there is no obstructions, the serial port is to output 1, indicate the output level is high.u-type-speed-module

When there are obstrctions, the serial port is starting to output 0, and the LED on this module will light.

u-type-speed-module-3

u-type-speed-module-2

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Arduino, Shields

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors