'RDIoT Demo'에 해당되는 글 354건

  1. 2016.10.05 8-Digit 7 Segment Module (MAX7219) [D066]
  2. 2016.10.05 4 Digit Tube LED Display Module (TM1637) [D014]
  3. 2016.10.05 7Segment 4 Digit LED Module (5461AS) [D013]
  4. 2016.10.05 7Segment 1 Digit LED Module (5161AS) [D011]
  5. 2016.10.05 DZ292 Laser Receiver Module (DZ292) [S035]
  6. 2016.10.05 Laser+LED 2 in 1 module [D048]
  7. 2016.10.05 Red Laser Cross Line Module + [D037]
  8. 2016.10.05 Red Laser Line Module - [D036]
  9. 2016.10.05 650nm Laser Diode Module (KY-008) [D004]
  10. 2016.10.05 L9110S 2-Channel Dual Motor Driver (L9110S) [B042]
  11. 2016.10.05 ULN2003 Stepper Motor driver (X113647) [B002]
  12. 2016.10.05 Control H Bidge Gear Motor Control [P003]
  13. 2016.10.05 L298N Dual Motor Driver H Bridge (L298N) [B005]
  14. 2016.10.05 6~28V 3A Motor Speed Controller [B056]
  15. 2016.10.05 100RPM Gear Motor [S141]
  16. 2016.10.05 TT Motor Car Gear Motor [S142]
  17. 2016.10.04 Clamp Gripper Bracket Servo Mount [B045]
  18. 2016.10.04 4-Phase 5-Wire Stepper Motor (28BYJ-48) [D021]
  19. 2016.10.04 Digital Multi Servo Tester ECS [B176]
  20. 2016.10.04 TowerPro SG5010 Micro Servo (SG5010) [D032]
  21. 2016.10.04 SG90 Camera Mount [B051]
  22. 2016.10.04 Tower Pro SG90 Micro Servo (SG90) [D018]
  23. 2016.09.30 Helicopter Coreless DC Motor [S143]
  24. 2016.09.30 DC6~12V R030 Biaxial Double Axis DC Motor (R030) [D067]
  25. 2016.09.30 9376 Motor Miniatura (9376) [D019]
  26. 2016.09.30 Micro 130 DC Motor [D071]
  27. 2016.09.29 MP3 Format Decoder Board Amplifier [B120]
  28. 2016.09.29 Bluetooth 4.0 MP3 Decoding Board Module [B147]
  29. 2016.09.29 Remote Music USB MP3 Decoder Module [B124]
  30. 2016.09.28 DC 5V Amplifier Board 3W+3W Class D (PAM8403) [B122]

8-Digit 7 Segment Module (MAX7219) [D066]




https://www.youtube.com/watch?v=m5Ej3hZ2OkI


* GitHub : https://github.com/rdiot/rdiot-d066.git


* Specs

Features:

100% Brand new and high quality

MAX7219 digital display control module

This module is compatible with 5V and 3.3V microcontrollers.

You you can use it for Arduino

MAX7219 is an integrated serial input / output common-cathode display driver, which connects your microprocessor to a 7-segment digital LED display with 8 digits.

Only three IO ports are used to drive the eight digit display. MAX7219 supports flicker free displays as well as cascading displays.


Specifications:

Material: PCB + Electronic Components

Power: 5V

Size: 82*15*12mm(L*W*H)

Shell Color: Blue & black

Net Weight:13g


Package includes:

1* MAX7219 digital display module

1* Straight 5 pin header

1* 90 degree 5 pin header


Wiring instructions(for example, it can connect any IO port, modified the Port Definition in the program):

VCC: 5V

GND: GND

DIN: P00

CS: P01

CLK: P02



* Contents

- Connect

DIN........D11

CS (LOAD)..D10

CLK........D13


- Library : https://github.com/HobbyComponents/HCMAX7219


- Key Code (Tested Example)

/* FILE:    HCMODU0082_Serial_7_Segment_Module_Example1

   DATE:    19/03/15

   VERSION: 0.2

  

REVISIONS:

12/03/15 Created version 0.1

19/03/15 Updated to work with V0.2 of the HCMAX7219 library

This is an example of how to use the Hobby Components serial 8 digit seven 7 

segment display module (HCMODU0082). To use this example sketch you will 

need to download and install the HCMAX7921 library available from the software

section of our support forum (forum.hobbycomponents.com) or on github:

(https://github.com/HobbyComponents)


The library assumes you are using one module. If you have more than one module

connected together then you will need to change the following line in the 

libraries HCMAX7219.h header file to the number of drivers you have connected:


#define NUMBEROFDRIVERS 1 <- Change this number


PINOUT:

MODULE.....UNO/NANO.....MEGA

VCC........+5V..........+5V

GND........GND..........GND

DIN........11...........51

CS (LOAD)..10...........10

CLK........13...........52


You may copy, alter and reuse this code in any way you like, but please leave

reference to HobbyComponents.com in your comments if you redistribute this code.

This software may not be used directly for the purpose of promoting products that

directly compete with Hobby Components Ltd's own range of products.


THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, 

WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED 

WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR

LACK OF NEGLIGENCE. HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE

FOR ANY DAMAGES INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR 

CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER. */


/* Include the HCMAX7219 and SPI library */

#include <HCMAX7219.h>

#include "SPI.h"


/* Set the LOAD (CS) digital pin number*/

#define LOAD 10


/* Create an instance of the library */

HCMAX7219 HCMAX7219(LOAD);


/* Main program */

void loop() 

{

  /* Clear the output buffer */

  HCMAX7219.Clear();


  /* Write some text to the output buffer */

  HCMAX7219.print7Seg("HELLO !!",8);


  /* Send the output buffer to the display */

  HCMAX7219.Refresh();  


  delay(2000);


  /* Clear the output buffer */

  HCMAX7219.Clear();


  /* Write some text to the output buffer */

  HCMAX7219.print7Seg("D066",8);


  /* Send the output buffer to the display */

  HCMAX7219.Refresh();  


  delay(2000);


  /* Clear the output buffer */

  HCMAX7219.Clear();


  /* Write some text to the output buffer */

  HCMAX7219.print7Seg("8-Digit",8);


  /* Send the output buffer to the display */

  HCMAX7219.Refresh();  


  delay(2000);


  /* Clear the output buffer */

  HCMAX7219.Clear();


  /* Write some text to the output buffer */

  HCMAX7219.print7Seg("MAX7219",8);


  /* Send the output buffer to the display */

  HCMAX7219.Refresh();  


  delay(2000);


  HCMAX7219.Clear();

  for (int Position = 1; Position <= 7; Position++)

  { 

    HCMAX7219.print7Seg(-1234567,Position,8);

    HCMAX7219.Refresh();

    delay(1000);

  }



  /* Clear the output buffer */

  HCMAX7219.Clear();


  /* Write some text to the output buffer */

  HCMAX7219.print7Seg("BYE",8);


  /* Send the output buffer to the display */

  HCMAX7219.Refresh();  


  delay(2000);


  while(1);

}

Posted by RDIoT
|

4 Digit Tube LED Display Module (TM1637) [D014]



https://www.youtube.com/watch?v=ElOG2A8QVPw


* GitHubhttps://github.com/rdiot/rdiot-d014.git


* Specs

The module is a 12-foot clock with 4 points of positive digital (0.36 inches) display module driver IC TM1637, only two signal lines can make SCM four 8-segment LED.


Module features are as follows:

Display of male red for the four digital tube

Adjustable digital tube 8 gray

Level control interface for 5V or 3.3V

4 M2 screws positioning holes for easy installation


4 digital display interface module as shown below:

Control Interface: A total of four pins (GND, VCC, DIO, CLK), GND to ground, VCC is the power supply, DIO of data input and output pin, CLK is the clock signal pin;

Digital tube: 4 common anode score points with 0.36 inches LED, red highlights;

Positioning holes: 4 M2 screws positioning hole diameter is 2.2mm, the positioning of the module is easy to install, to achieve inter-module combination.



* Contents

- DataSheet : http://www.datasheet-pdf.com/pdfhtm.php?id=788613&p=10


- Connect

CLK ----- D2

DIO ----- D3

VCC ----- 5V

GND ----- GND


- Library : https://github.com/avishorp/TM1637


- Key Code : Example TM1637Test.ino

#include <Arduino.h>

#include <TM1637Display.h>


// Module connection pins (Digital Pins)

#define CLK 2

#define DIO 3


// The amount of time (in milliseconds) between tests

#define TEST_DELAY   2000


const uint8_t SEG_DONE[] = {

 SEG_B SEG_C SEG_D SEG_E SEG_G,           // d

 SEG_A SEG_B SEG_C SEG_D SEG_E SEG_F,   // O

 SEG_C SEG_E SEG_G,                           // n

 SEG_A SEG_D SEG_E SEG_F SEG_G            // E

 };


TM1637Display display(CLK, DIO);


void loop()

{

  int k;

  uint8_t data[] = { 0xff, 0xff, 0xff, 0xff };

  display.setBrightness(0x0f);


  // All segments on

  display.setSegments(data);

  delay(TEST_DELAY);


  // Selectively set different digits

  data[0] = 0b01001001;

  data[1] = display.encodeDigit(1);

  data[2] = display.encodeDigit(2);

  data[3] = display.encodeDigit(3);


  for(k = 3; k >= 0; k--) {

    display.setSegments(data, 1, k);

    delay(TEST_DELAY);

  }


  display.setSegments(data+2, 2, 2);

  delay(TEST_DELAY);


  display.setSegments(data+2, 2, 1);

  delay(TEST_DELAY);


  display.setSegments(data+1, 3, 1);

  delay(TEST_DELAY);



  // Show decimal numbers with/without leading zeros

  bool lz = false;

  for (uint8_t z = 0; z < 2; z++) {

   for(k = 0; k < 10000; k += k*4 + 7) {

   display.showNumberDec(k, lz);

   delay(TEST_DELAY);

   }

  lz = true;

  }


  // Show decimal number whose length is smaller than 4

  for(k = 0; k < 4; k++)

   data[k] = 0;

   display.setSegments(data);


   display.showNumberDec(153, false, 3, 1);

   delay(TEST_DELAY);

   display.showNumberDec(22, false, 2, 2);

   delay(TEST_DELAY);

   display.showNumberDec(0, true, 1, 3);

   delay(TEST_DELAY);

   display.showNumberDec(0, true, 1, 2);

   delay(TEST_DELAY);

   display.showNumberDec(0, true, 1, 1);

   delay(TEST_DELAY);

   display.showNumberDec(0, true, 1, 0);

   delay(TEST_DELAY);



  // Brightness Test

  for(k = 0; k < 4; k++)

    data[k] = 0xff;

    for(k = 0; k < 16; k++) {

      display.setBrightness(k);

      display.setSegments(data);

      delay(TEST_DELAY);

    }

  // Done!

  display.setSegments(SEG_DONE);

  while(1);

}

Posted by RDIoT
|

7Segment 4 Digit LED Module (5461AS) [D013]



https://www.youtube.com/watch?v=tf46Nr7TnTU


*GitHub : https://github.com/rdiot/rdiot-d013.git


* Contents

- DataSheet : http://deneb21.tistory.com/attachment/cfile24.uf@247A634855D713A025946C.pdf


- Connect

http://thomas.bibby.ie/wp-content/uploads/2015/10/KYX-5461AS-300x194.jpg


- Connect LM35

VCC - 5V

Output - A0

GND - GND


- Key Code

int sensorPin = 0;


//display pins

int segA = 5;

int segB = 13;

int segC = 10;

int segD = 8;

int segE = 7;

int segF = 4;

int segG = 11;

int segPt = 9;


int d1 = 6;

int d2 = 3;

int d3 = 2;

int d4 = 12;


int delayTime = 900;


int counter = 0;


float temperature = 77.7;


//only read temp every 100 cycles

if(counter%500 == 0)

{

  // read the pin

  int reading = analogRead(sensorPin);

  

  //convert reading to volts

  float volts = (reading * 5.0);

  volts /= 1024.0;


  temperature = volts * 100.0;


 counter = 0;

}


counter ++;


selectDigit(1);

sendDigit(tens(temperature));

delayMicroseconds(delayTime);


...

Posted by RDIoT
|

7Segment 1 Digit LED Module (5161AS) [D011]



https://www.youtube.com/watch?v=S7d2ge_iANI


* GitHubhttps://github.com/rdiot/rdiot-d011.git


* Specs

Emitting color : Red

Encapsulation Adhesive Color : Red

Surface Color of the Shell : Black

Voltage : 1.8~1.9V

Luminous Intensity : 13~15 mcd

Wavelengh : 648 nm


* Contents

- DataSheet : http://www.dipmicro.com/?datasheet=TOS-5161AS.pdf


- Connect

1 - X

2 - D2  (LedC)

3 - R220 -> GND

4 - D3  (ledD)

5 - D4  (ledE)

6 - D5  (ledG)

7 - D6  (LedF)

8 - R220 -> GND

9 - D8   (LedA)

10- D9  (LedB)


- Key Code

#define ledA 8

#define ledB 9

#define ledC 2

#define ledD 3

#define ledE 4

#define ledF 6

#define ledG 5

 

void setup()

{

  pinMode(ledA, OUTPUT);

  pinMode(ledB, OUTPUT);

  pinMode(ledC, OUTPUT);

  pinMode(ledD, OUTPUT);

  pinMode(ledE, OUTPUT);

  pinMode(ledF, OUTPUT);

  pinMode(ledG, OUTPUT);

  Serial.begin(9600);

}

 

void loop()

{

  Serial.println("Starting\n");

  LoopDisplay();    //Call LoopDisplay Function

}

 

void clr()

{

  //Clears the LED

  digitalWrite(ledA, LOW);

  digitalWrite(ledB, LOW);

  digitalWrite(ledC, LOW);

  digitalWrite(ledD, LOW);

  digitalWrite(ledE, LOW);

  digitalWrite(ledF, LOW);

  digitalWrite(ledG, LOW);

}

 

 

void char_A()

{

  digitalWrite(ledD, LOW);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void char_B()

{

  //Displays B

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void char_C()

{

  //Displays C

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, LOW);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, LOW);

  digitalWrite(ledC, LOW);

}

 

void char_D()

{

  //Displays D

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, LOW);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void char_E()

{

  //Displays E

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, LOW);

  digitalWrite(ledC, LOW);

}

 

void char_F()

{

  //Displays F

  digitalWrite(ledD, LOW);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, LOW);

  digitalWrite(ledC, LOW);

}

 

 

void one()

{

  //Displays 1

  digitalWrite(ledD, LOW);

  digitalWrite(ledE, LOW);

  digitalWrite(ledF, LOW);

  digitalWrite(ledG, LOW);

  digitalWrite(ledA, LOW);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void two()

{

  //Displays 2

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, LOW);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, LOW);

}

 

void three()

{

  //Displays 3

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, LOW);

  digitalWrite(ledF, LOW);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void four()

{

  //Displays 4

  digitalWrite(ledD, LOW);

  digitalWrite(ledE, LOW);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, LOW);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void five()

{

  //Displays 5

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, LOW);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, LOW);

  digitalWrite(ledC, HIGH);

}

 

void six()

{

  //Displays 6

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, LOW);

  digitalWrite(ledC, HIGH);

}

 

void seven()

{

  //Displays 7

  digitalWrite(ledD, LOW);

  digitalWrite(ledE, LOW);

  digitalWrite(ledF, LOW);

  digitalWrite(ledG, LOW);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void eight()

{

  //Displays 8

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void nine()

{

  //Displays 9

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, LOW);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, HIGH);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void zero()

{

  //Displays 0

  digitalWrite(ledD, HIGH);

  digitalWrite(ledE, HIGH);

  digitalWrite(ledF, HIGH);

  digitalWrite(ledG, LOW);

  digitalWrite(ledA, HIGH);

  digitalWrite(ledB, HIGH);

  digitalWrite(ledC, HIGH);

}

 

void LoopDisplay()

{

  char_A();

  delay(1000);

  char_B();

  delay(1000);

  char_C();

  delay(1000);

  char_D();

  delay(1000);

  char_E();

  delay(1000);

  char_F();

  delay(1000);

  one();

  delay(1000);

  two();

  delay(1000);

  three();

  delay(1000);

  four();

  delay(1000);

  five();

  delay(1000);

  six();

  delay(1000);

  seven();

  delay(1000);

  eight();

  delay(1000);

  nine();

  delay(1000);

  zero();

  delay(1000);

}

Posted by RDIoT
|

DZ292 Laser Receiver Module (DZ292) [S035]



https://www.youtube.com/watch?v=iPmirgi-yPs


* GitHubhttps://github.com/rdiot/rdiot-s035.git


* Specs

PCB size:1.52*2.22cm

work voltage:5V

Output:

output high level when receive laser signal;

output low level when not receive laser signal.


* Contents

- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004


int laserPin = 2; // Laser

int laserRcvPin = 7; // Laser Receiver


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  pinMode(laserPin,OUTPUT);

  pinMode(laserRcvPin,INPUT);


  digitalWrite(laserPin, HIGH);

  delay(1000);


  lcd.clear();

}


void loop()

  lcd.setCursor(0,0);

  lcd.print("S035:DZ292 LaserRCV");


  int rcv = digitalRead(laserRcvPin);


  lcd.setCursor(0,2);

  lcd.print("laser value=" + (String)rcv);


  if(rcv == 1)

  {

    lcd.setCursor(0,3);

    lcd.print("laser detected");

  }

  else

  {  

    lcd.setCursor(0,3);

    lcd.print("                    ");

  }

}

'3) Actuator > Laser' 카테고리의 다른 글

Laser+LED 2 in 1 module [D048]  (0) 2016.10.05
Red Laser Cross Line Module + [D037]  (0) 2016.10.05
Red Laser Line Module - [D036]  (0) 2016.10.05
650nm Laser Diode Module (KY-008) [D004]  (0) 2016.10.05
Red Laser Point Linear Module [D079]  (0) 2016.09.05
Posted by RDIoT
|

Laser+LED 2 in 1 module [D048]



https://www.youtube.com/watch?v=Bc94zOHalu8


* Specs

Size : 5.9 x 11mm

Wavelength : 650nm

Output Power : 2-5mw

Working Voltage : 4.5V

Posted by RDIoT
|

Red Laser Cross Line Module + [D037]



https://www.youtube.com/watch?v=qVOGWEY-NjI


* Specs

Output Power : 5mw

Wavelength : 650nm

Working Voltage : 3~5V

Working Temperature : +10 ~ +40C

Laser Shape Line

Focusable : Yes

Material and Color Metal

Lens Glass

Dimensions : 12*12*40mm

Posted by RDIoT
|

Red Laser Line Module - [D036]



https://www.youtube.com/watch?v=XdRZttM1YHQ

* Specs

Output Power 5mw

Wavelength 650nm

Working Voltage 3~6V

Laser Shape: Line

Focusable Yes

Material and Color: Metal

Dimensions: diameter 12mmxlength36mm

Posted by RDIoT
|

650nm Laser Diode Module (KY-008) [D004]



https://www.youtube.com/watch?v=7h7lJ4rDAcQ


* GitHub : https://github.com/rdiot/rdiot-d004.git


* Specs

High Quality 650nm Laser sensor Module 6mm 5V 5mW Red Laser Dot Diode Copper Head KY-008

Product Details:

Laser sensor Module

Condition: New

Operating voltage 5V

Output wavelength 650 nm

3 pins module

With fixed bolt hole for easy installation

Color: show as pictures

PLS NOTE that due to lighting effects, monitor's brightness / contrast settings etc, there could be some slight differences in the color tone of the pictures and the actual item!


* Contents

- Key Code

#include "U8glib.h"

U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);

 

int laserPin = 10;

int btnPin = 2;

 

void setup() {

  // put your setup code here, to run once:

   pinMode (laserPin, OUTPUT); // laser

   pinMode (btnPin, INPUT); // button

}

 

void loop(void) {

  // picture loop

  u8g.firstPage();  

  do {

    draw();

  } while( u8g.nextPage() );

  

  // rebuild the picture after some delay

  delay(500);

}

 

void draw(void) {

  u8g.setFont(u8g_font_9x15B);

  u8g.setPrintPos(0, 12); 

  u8g.println("Laser Emit");

 

  u8g.setFont(u8g_font_fub17);

  u8g.setPrintPos(0,40);

 

  int btn = digitalRead(btnPin);

  u8g.print("btn="+(String)btn);

 

  if(btn == 1)

  {

    digitalWrite (laserPin, HIGH);

  }

  else

  {

    digitalWrite (laserPin, LOW);

  }

 

/*

   digitalWrite (laserPin, HIGH); // Turn Laser On

   delay (1000); // On For Half a Second

   digitalWrite (laserPin, LOW); // Turn Laser Off

   delay (500); // Off for half a second

*/

 

}

'3) Actuator > Laser' 카테고리의 다른 글

DZ292 Laser Receiver Module (DZ292) [S035]  (0) 2016.10.05
Laser+LED 2 in 1 module [D048]  (0) 2016.10.05
Red Laser Cross Line Module + [D037]  (0) 2016.10.05
Red Laser Line Module - [D036]  (0) 2016.10.05
Red Laser Point Linear Module [D079]  (0) 2016.09.05
Posted by RDIoT
|

L9110S 2-Channel Dual Motor Driver (L9110S) [B042]



https://www.youtube.com/watch?v=JVcARS8UydQ


* GitHub https://github.com/rdiot/rdiot-b042.git


* Specs

The L9110S 2-Channel motor driver module is a compact board that can be used

to drive small robots. This module has two independent motor driver chips which can

each drive up 800mA of continuous current. The boards can be operated from 2.5V to

12V enabling this module to be used with both 3.3V and 5V microcontrollers.



On-board 2 L9110 motor control chip

Module can be driven by two dc motors at the same time or one phase 4 line 2 type stepping motor

Input voltage: 2.5-12V DC

Each channel has a continuous output current 800 ma

PCB Size: 29.2mm x 23mm



* Contents

- Connect

Motor Driver gnd, vcc --- Arduino gnd, Vcc

B-1A --- A0

B-1B --- A1



- Key Code

void setup() {

  pinMode(A0,OUTPUT);

  pinMode(A1,OUTPUT);

}

 

void loop() {

  // put your main code here, to run repeatedly

  digitalWrite(A0,HIGH);

  digitalWrite(A1,LOW);

  delay(1000);


  digitalWrite(A0,LOW);

  digitalWrite(A1,HIGH);

  delay(1000);


  digitalWrite(A0,LOW);

  digitalWrite(A1,LOW);

  delay(2000);

}

Posted by RDIoT
|

ULN2003 Stepper Motor driver (X113647) [B002]



https://www.youtube.com/watch?v=yFyNh_hIRFA


* GitHub : https://github.com/rdiot/rdiot-b002.git


* Specs

Driver ID : ULN2003AN

Description:

Rated Voltage: DC5V

4-phase

Reduction Ratio: 1/64

Step Torque Angle: 5.625/64

DC Resistance: 200±7% (25)

Insulation Resistance: >10M (500V)

Dielectric Strength: 600V AC / 1mA / 1s

Insulation Grade: A

No-load Pull in Frequency: >600Hz

No-load Pull out Frequency: >1000Hz

Pull in Torque: >34.3mN.m(120Hz)

Detent Torque: >34.3mN.m

Temperature Rise: <40K(120Hz)

Noise: <40dB (120Hz, No load, 10cm)

Board Size: Approx. 29 ×21 mm


* Contents

- Connect

5V -  ----- 5V 

5V +  ----- GND

 

IN1 ----- D8

IN2 ----- D9

IN3 ----- D10

IN4  ----- D11


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Stepper.h>

 

LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

const int stepsPerRevolution = 2048; // 2048(360 Degree), 1024(180 Degree)

 

// IN4, IN2, IN3, IN1

Stepper myStepper(stepsPerRevolution,11,9,10,8); 

 

int val;

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  delay(1000);

  

  myStepper.setSpeed(14); 

  lcd.clear();

}

 

void loop()

{ 

  lcd.setCursor(0,0);

  lcd.print("D021:28BYJ-48");

  lcd.setCursor(0,1);

  lcd.print("B002:X113647");

 

  // Left 1 Round

  myStepper.step(stepsPerRevolution);

  val = stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("right=" + (String)val + "  ");

  delay(500);

 

  // Right 1 Round

  myStepper.step(-stepsPerRevolution);

  val = -stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("left=" + (String)val + "   ");

  delay(500); 

}



Posted by RDIoT
|

Control H Bidge Gear Motor Control [P003]



https://www.youtube.com/watch?v=BvaAhAsRyBo


*GitHubhttps://github.com/rdiot/rdiot-p003.git


* Parts

- Arduino Uno R3

- L298N Dual Motor Driver H Bridge (L298N) [B005]

- TT Motor Car Gear Motor [S142]

 

 

* Contents

- Connect

ENA ----- D9

IN1 ----- D2

IN2 ----- D3

ENB ----- D10

IN3 ----- D4

IN4 ----- D5


- Key Code

int dir1PinA = 2;

int dir2PinA = 3;


int dir1PinB = 4;

int dir2PinB = 5;


int speedPinA = 9;

int speedPinB = 10;


int speed1;

int dir;


void setup()

{


  pinMode(dir1PinA,OUTPUT); // IN1

  pinMode(dir2PinA,OUTPUT); // IN2

  pinMode(speedPinA,OUTPUT); // ENA


  pinMode(dir1PinB,OUTPUT); // IN3

  pinMode(dir2PinB,OUTPUT); // IN4

  pinMode(speedPinB,OUTPUT); // ENB


  speed1 = 200;

  dir = 1;


  delay(1000);


}


void loop()

{


  //analogWrite(speedPinA, speed1); // 200 -> ENA 

  if(dir == 1)

  {

    digitalWrite(speedPinA, HIGH);

    digitalWrite(speedPinB, HIGH);

    

    digitalWrite(dir1PinA, LOW);

    digitalWrite(dir2PinA, HIGH);


    digitalWrite(dir1PinB, LOW);

    digitalWrite(dir2PinB, HIGH);

    

    delay(5000);


    digitalWrite(speedPinA, HIGH);

    digitalWrite(speedPinB, HIGH);

    

    digitalWrite(dir1PinA, HIGH);

    digitalWrite(dir2PinA, LOW);

    

    digitalWrite(dir1PinB, HIGH);

    digitalWrite(dir2PinB, LOW);

    

    delay(5000);


  }

}

Posted by RDIoT
|

L298N Dual Motor Driver H Bridge (L298N) [B005]



https://www.youtube.com/watch?v=ZqJwD5tuFbE


* GitHubhttps://github.com/rdiot/rdiot-b005.git

* Specs

Description:

Using L298N as the control chip,the module has such characteristics as strong driving ability,low calorific value and strong anti-interference ability. This module can use built-in 78M05 for electric work via a driving power supply part. But to avoid the damage of the voltage stabilizing chip, please use an external 5V logic supply when using more than 12V driving voltage. Using large capacity filter capacitor, this module can follow current to protect diodes,and improve the reliability.


Feature:

L298N Double H Bridge Motor Driver Module Control chip: L298N Logical voltage: 5V Drive voltage: 5V - 35V Logical current: 0mA - 36mA Drive current: 2A(MAX single bridge) Storage temperature: -20°C to +135°C Max power: 25W Size: 43 x 43 x 27mm


* Contents

- Connect

12V ------ 9V VCC

GND ----- 9V GND, Arduino GND

5V ----- Arduino 5V


ENA ----- D9

IN1 ----- D2

IN2 ----- D3


OUT1 ----- Motor +

OUT2 ----- Motor -


- Key Code 

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004


int dir1PinA = 2;

int dir2PinA = 3;

int speedPinA = 9;

int speed1;

int dir;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  pinMode(dir1PinA,OUTPUT); // IN1

  pinMode(dir2PinA,OUTPUT); // IN2

  pinMode(speedPinA,OUTPUT); // ENA

  speed1 = 200;

  dir = 1;


  delay(1000);


  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("B005:L298N Driver");


  //analogWrite(speedPinA, speed1); // 200 -> ENA 

  if(dir == 1)

  {

    digitalWrite(speedPinA, HIGH);

    digitalWrite(dir1PinA, LOW);

    digitalWrite(dir2PinA, HIGH);

    lcd.setCursor(0,1);

    lcd.print("ENA=" + (String)speedPinA + " HIGH");   

    lcd.setCursor(0,2);

    lcd.print("IN1=" + (String)dir1PinA + " LOW ");

    lcd.setCursor(0,3);

    lcd.print("IN2=" + (String)dir2PinA + " HIGH ");

    delay(5000);


    digitalWrite(speedPinA, HIGH);

    digitalWrite(dir1PinA, HIGH);

    digitalWrite(dir2PinA, LOW);

    lcd.setCursor(0,1);

    lcd.print("ENA=" + (String)speedPinA + " HIGH");   

    lcd.setCursor(0,2);

    lcd.print("IN1=" + (String)dir1PinA + " HIGH ");

    lcd.setCursor(0,3);

    lcd.print("IN2=" + (String)dir2PinA + " LOW ");

    delay(5000);


    digitalWrite(speedPinA, LOW);

    lcd.setCursor(0,1);

    lcd.print("ENA=" + (String)speedPinA + " LOW ");   

    

    lcd.setCursor(0,2);

    lcd.print("IN1= STOP  ");   

  

    lcd.setCursor(0,3);

    lcd.print("IN2= STOP  ");   


    dir = 0;

  }

}



Posted by RDIoT
|

6~28V 3A Motor Speed Controller [B056]



https://www.youtube.com/watch?v=hdwnlHRdqRk


* Specs

This DC Motor Speed Controller allows controlling the direction of a DC motor using a Pulse-Width-Modulated (PWM) DC voltage with a Duty Cycle fully adjustable from 0%-100%. 

The motor speed controller can easily provide a continuous current of3A to your DC motor or other DC load. 

Main technical parameters: 

Input supply voltage:6V-28VDC 

The maximum output power: 80W 

The maximum continuous output current :3A 

Duty Cycle adjustable:0%-100% 


Operating instruction: 

1. Connect your DC motor (or DC load) to the motor terminals as indicated on the wiring diagram. 

2. Connect a voltage of 10V-36V DC to the circuit making sure of the correct polarity of the connection. Note that the voltage applied to the motor will be supply voltage applied to the circuit. It is recommended to add an appropriately rated fuse inline with the positive supply in order to protect the circuit from any possible short circuits. 

3. You can now control the speed of the motor through potentiometer.

Posted by RDIoT
|

100RPM Gear Motor [S141]



https://www.youtube.com/watch?v=YfyiXHbxo88


* GitHubhttps://github.com/rdiot/rdiot-s141.git


* Specs

Description:  

This is a DC Mini Metal Gear Motor,ideal for making robots

Light weight, high torque and low RPM.

Fine craftsmanship,durable,not easy to wear.

With excellent stall characteristics,can climb hills easily.

You can also easily mount a wheel on the motor’s output shaft.

 

Specification:

We guarantee the high quality condition for you

Rated Voltage:DC 12V

Speed:100RPM

Shaft Diameter:3mm

Size:Diameter: 12 mm

fuselage without shaft length: 26 mm 

Output axial length: 10 MM to 4.4 MM

Name:DC Mini Metal Gear Motor.

Voltage range:6-12V

Posted by RDIoT
|

TT Motor Car Gear Motor [S142]



https://www.youtube.com/watch?v=Kw7BCf-NGGE


* GitHub : https://github.com/rdiot/rdiot-s142.git


* Specs

Operating voltage: 3V~12VDC (recommended operating voltage of about 6 to 8V)

Maximum torque: 800gf cm min (3V)

No-load speed: 1:48 (3V time)

The load current: 70mA (250mA MAX) (3V)

This motor with EMC, anti-interference ability. The microcontroller without interference.

Size: 7x2.2x1.8cm(approx)

Voltage load current No-load speed

 6V ≤200mA 200 ± 10% rpm

 3V ≤150mA 90 ± 10% rpm



* Contents

- Key Code

void setup() {

  pinMode(A0,OUTPUT);

  pinMode(A1,OUTPUT);

}



void loop() {

  // put your main code here, to run repeatedly:


  digitalWrite(A0,HIGH);

  digitalWrite(A1,LOW);

  delay(1000);


  digitalWrite(A0,LOW);

  digitalWrite(A1,HIGH);

  delay(1000);


  digitalWrite(A0,LOW);

  digitalWrite(A1,LOW);


  delay(2000);

}

Posted by RDIoT
|

Clamp Gripper Bracket Servo Mount [B045]



https://www.youtube.com/watch?v=j95yky2IYIc


* Specs

Use:Vehicles & Remote Control Toys

Technical parameters:Value 2

RC Parts & Accs:Servo Accessories

Model Number:gripper

Robot Clamp Gripper Bracket Servo Mount Plastic Claw Arm kit For MG995 MG996 SG5010 Servo use of the egineering Plastics material very light, solid and hardness

'3) Actuator > Motor' 카테고리의 다른 글

100RPM Gear Motor [S141]  (0) 2016.10.05
TT Motor Car Gear Motor [S142]  (0) 2016.10.05
4-Phase 5-Wire Stepper Motor (28BYJ-48) [D021]  (0) 2016.10.04
TowerPro SG5010 Micro Servo (SG5010) [D032]  (0) 2016.10.04
SG90 Camera Mount [B051]  (0) 2016.10.04
Posted by RDIoT
|

4-Phase 5-Wire Stepper Motor (28BYJ-48) [D021]



https://www.youtube.com/watch?v=YzQ7ImtW9bA


* GitHub : https://github.com/rdiot/rdiot-d021.git

* Specs

Color: Silver

Diameter: 28mm

Voltage: 5V

No-load pull into the frequency: >600Hz

Phase: 4

No-load pull-out frequency: >1000Hz

Reduction ratio: 1/64

Pull-in torque: >34.3mN.m (120Hz)

Step Angle: 5.625 x 1/64

Self-positioning torque: >34.3mN.m

DCR: 200ohm +/- 7% (25'C)

Temperature: <40K (120Hz)

Insulation resistance: >10Mohm (500V)

Noise: <40dB (120Hz, No load, 10cm)

Dielectric Strength: AC 600V / 1mA / 1s

Insulation Class: A

Cable length: 24cm

Suitable for guide wind deflector, portable air conditioner valve, etc

Dimensions: 1.65 in x 1.22 in x 0.79 in (4.2 cm x 3.1 cm x 2.0 cm)

Weight: 1.20 oz (34 g)


* Contents

28BYJ-48 Stepper Motor and ULN2003 Motor Driver


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Stepper.h>


LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

const int stepsPerRevolution = 2048; // 2048:(360 Degree), 1024:(180 degree)


// ULN2003 IN4, IN2, IN3, IN1

Stepper myStepper(stepsPerRevolution,11,9,10,8); 


int val;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  delay(1000);

  

  myStepper.setSpeed(14); 

  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("D021:28BYJ-48");

  lcd.setCursor(0,1);

  lcd.print("B002:X113647");


  // Left 1 round

  myStepper.step(stepsPerRevolution);

  val = stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("right=" + (String)val + "  ");

  delay(500);


  // Right 1 round

  myStepper.step(-stepsPerRevolution);

  val = -stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("left=" + (String)val + "   ");

  delay(500);


}

'3) Actuator > Motor' 카테고리의 다른 글

TT Motor Car Gear Motor [S142]  (0) 2016.10.05
Clamp Gripper Bracket Servo Mount [B045]  (0) 2016.10.04
TowerPro SG5010 Micro Servo (SG5010) [D032]  (0) 2016.10.04
SG90 Camera Mount [B051]  (0) 2016.10.04
Tower Pro SG90 Micro Servo (SG90) [D018]  (0) 2016.10.04
Posted by RDIoT
|

Digital Multi Servo Tester ECS [B176]



https://www.youtube.com/watch?v=pz_NQSSGqaw


* Specs

Features:

CCPM Servo Consistency Master / Servo tester

The device also can be used as a signal generator for electric speed controller (ESC), then you can test your motor system without using a transmitter and receiver.

There are 3 modes to check servos or ESC:

Manual mode: turn the knob with different speed, check the reaction time.

Neutral mode: make the servo go back to the neutral point.

Automatic \"window wiper\" mode: make the servo swing like a window wipers in the biggest angle.

It can connect 1-3 servos simultaneously and test such as 1-3 servos consistency and so on.

You can also connect 1-3 ESC to test and compare their reaction time respectively.

It can connect 3 servos of the CCPM helicopters and select servos.

It can also connect the servo of airplanes install the steering-box and adjust planes by using such as the neutral mode and so on.


Specification:

Voltage consumption: DC4.8-6V 

Size: 48 x 42 x 17mm 

Original box: NO

Color: Blue

Item size: 48*42*17 mm

Net weight: 7g

Package weight: 13g


Packet content:

1 x multi Servo tester

Posted by RDIoT
|

TowerPro SG5010 Micro Servo (SG5010) [D032]



https://www.youtube.com/watch?v=xRpws0Ecrfc


* GitHubhttps://github.com/rdiot/rdiot-d032.git


* Specs

owerPro SG5010 Micro Servo.

Small and exquisite appearance, it is convenient to carry.

Coreless motor and double ball bearing.

Less noise, light weight.

Used for model airplane accessories.

Stable performance and shock proof.

Color: Black

Connector wire length: 28.3cm

Operating speed (4.8V no load): 0.14sec/60 degrees

Operating speed (6.0V no load): 0.11sec/60 degrees

Stall torque(4.8V): (8kg/cm) (110oz/in.)

Stall torque(6.0V): (11kg/cm) (156oz/in.)

Temperature range: -30 to 60°

Dead band width: 4usec

Operation Voltage: 3.5-8.4V

Item weight: 55g

Package including:1 * Torque servo

4 * Rubber grommets

4 * Brass eyelets

5 * Screws

5 * Servo horn set


* Contents

- Key Code

#include <Servo.h>

Servo towerprosg5010; 

 

int pos = 0; 

 

void setup()

{

  towerprosg5010.attach(9); 

}

 

void loop()

{

  for(pos = 0; pos < 180; pos += 1)  // 0 to 180 degrees with 1 degree step

  {                                  

    towerprosg5010.write(pos);  

    delay(120);                       // time set 120 ms 

  }

}

Posted by RDIoT
|

SG90 Camera Mount [B051]



https://www.youtube.com/watch?v=gk7Mg69mgq4


* GitHub https://github.com/rdiot/rdiot-b051.git


* Specs

Weight : 0.050kg (0.11lb.)

Size : 13cm x 9cm x 8cm (5.12in x 3.54in x 3.15in)


* Contents

- Connect

Top ----- D12

Bottom ----- D11


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Servo.h> 


LiquidCrystal_I2C lcd(0x27,20,4);

Servo myservo1;

Servo myservo2;


int servoPin_updown = 12;

int servoPin_leftright = 11;


int pos_updown = 0;

int pos_leftright = 0;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  myservo1.attach(servoPin_updown); 

  myservo2.attach(servoPin_leftright); 

  delay(1000);


  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("B051:SG90 Mount");



  for(pos_leftright = 0; pos_leftright < 180; pos_leftright += 1) 

  { 

    myservo2.write(pos_leftright);

    //lcd.setCursor(0,1);

    //lcd.print("pos0~179=" + (String)pos + "  " );


    delay(10); 

  }


  for(pos_leftright = 180; pos_leftright>=0; pos_leftright-=1)

  { 

    myservo2.write(pos_leftright); 

    //lcd.setCursor(0,2);

    //lcd.print("pos180~1=" + (String)pos + "  " );

    delay(10); 

  } 


  

  for(pos_updown = 80; pos_updown < 180; pos_updown += 1) 

  { 

    myservo1.write(pos_updown);

    //lcd.setCursor(0,1);

    //lcd.print("pos0~179=" + (String)pos + "  " );


    delay(10); 

  }


  for(pos_updown = 180; pos_updown>=80; pos_updown-=1)

  { 

    myservo1.write(pos_updown); 

    //lcd.setCursor(0,2);

    //lcd.print("pos180~1=" + (String)pos + "  " );

    delay(10); 

  } 


}

Posted by RDIoT
|

Tower Pro SG90 Micro Servo (SG90) [D018]



https://www.youtube.com/watch?v=qdUgJtBClZ4


* GitHubhttps://github.com/rdiot/rdiot-d018.git


* Specs

Speed: 0.12 second / 60 degrees rotation

Torque: 1.2-1.4kg @ 4.8V~6V power

Comes with full ranged connectivity accessories and mounting screws

Working temperature: -30 to +60 degrees Celsius

Dead band setting: 7 microseconds


* Contents

- Connect

Brown - GND

Red - 5V

Orange - D12



- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Servo.h> 



LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

Servo myservo; 

int servoPin = 12;

int pos = 0; 


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  myservo.attach(servoPin); 

  delay(1000);


  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("D018:SG90 Servo");


  for(pos = 0; pos < 180; pos += 1) 

  { 

    myservo.write(pos);

    lcd.setCursor(0,1);

    lcd.print("pos0~179=" + (String)pos + "  " );


    delay(0); // Control Speed by delay time.

  }


  for(pos = 180; pos>=1; pos-=1)

  { 

    myservo.write(pos); 

    lcd.setCursor(0,2);

    lcd.print("pos180~1=" + (String)pos + "  " );

    delay(0); 

  } 

}


Posted by RDIoT
|

Helicopter Coreless DC Motor [S143]



https://www.youtube.com/watch?v=Rl3i2DRYErg


* GitHub https://github.com/rdiot/rdiot-s143.git


* Specs

Voltage: DC 3.7-4.2V

Current: 0.1A

Speed: DC3.7V------39000 RPM; D4.2V-----45000RPM

Motor diameter: 7MM

Motor length: 16MM

Output shaft diameter: 0.8MM

Output shaft length: 4.5MM

Weight: 2g

Propeller length: 45MM

Propeller: Red or Black


* Contents

- Key Code

void setup() {

  pinMode(A0,OUTPUT);

  pinMode(A1,OUTPUT);

}

 

void loop() {

  digitalWrite(A0,HIGH);

  digitalWrite(A1,LOW);

  delay(1000);

  digitalWrite(A0,LOW);

  digitalWrite(A1,HIGH);

  delay(1000);

  digitalWrite(A0,LOW);

  digitalWrite(A1,LOW);

  delay(2000);

}

Posted by RDIoT
|

DC6~12V R030 Biaxial Double Axis DC Motor (R030) [D067]




https://www.youtube.com/watch?v=1jvl2rFBCb4


* GitHub https://github.com/rdiot/rdiot-d067.git


* Specs

Contain: 1pcs R030 motor

Motor Diameter: 15.5 MM

Motor Height: 19 MM (Not include output shaft)

Output shaft Diameter: 1.5 MM

Output shaft length: 13 MM (starting from the front panel)

Voltage: DC6-12V

Speed: 13500RPM(12V)

Weight: 12g

Electric current: 0.1A


* Contents

- Key Code

int motorPin = 9; //D9

void setup() {  

  pinMode(motorPin, OUTPUT);  //PWM

  Serial.begin(9600);

  Serial.println("DC Motor Input Speed 0~255");

  

}

void loop() {

  if(Serial.available())

  {

    int speed = Serial.parseInt();

    Serial.println(speed);

    analogWrite(motorPin,speed);  

  }

}

'3) Actuator > Motor' 카테고리의 다른 글

SG90 Camera Mount [B051]  (0) 2016.10.04
Tower Pro SG90 Micro Servo (SG90) [D018]  (0) 2016.10.04
Helicopter Coreless DC Motor [S143]  (0) 2016.09.30
9376 Motor Miniatura (9376) [D019]  (0) 2016.09.30
Micro 130 DC Motor [D071]  (0) 2016.09.30
Posted by RDIoT
|

9376 Motor Miniatura (9376) [D019]



https://www.youtube.com/watch?v=SpYVBLfMmfI


* GitHubhttps://github.com/rdiot/rdiot-d019.git



* Specs

 
VACIO
MÁXIMA EFICACIA
BLOQUEO
 
V.
R.P.M.
A.
R.P.M.
A.
Kg·cm.
Kg·cm.
A.
 340000.08531900.3417851.35
 685000.170000.54281783
 9123001.11106500.7302204.5
 12165000.125143000.836.52755.2

* Contents

- Connect

Red ----- D7

Black ----- GND

 

Buttton Module

S ----- D2

middle ----- 5V

- ----- GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

int R = 2;

byte lastButton = HIGH;

byte nowButton = HIGH;

int servo = 7;

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

  pinMode(R, INPUT);

  pinMode(servo, OUTPUT);

 

  digitalWrite(R, HIGH);

 

  digitalWrite(servo, LOW);

  

  delay(1000);

 

  lcd.clear();

}

 

void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("D019:9376 Motor");

 

  byte nowButton = digitalRead(R);

 

  lcd.setCursor(0,1);

  lcd.print("value="+(String)nowButton);

 

  if (HIGH == lastButton)

  {

    if (LOW == nowButton)

    {

     lcd.setCursor(0,2);

     lcd.print("running motor  ");

     digitalWrite(servo, HIGH);

    }

  }

  else

  {

    if (HIGH == nowButton)

    {

     lcd.setCursor(0,2);

     lcd.print("stopped motor  ");

    digitalWrite(servo, LOW);

 

    }

  }

 

 lastButton = digitalRead(R);

 delay(100);

 

}

Posted by RDIoT
|

Micro 130 DC Motor [D071]



https://www.youtube.com/watch?v=_L1XE6mWqqI


* Specs

Motor Size: 15 *20 MM

Motor Height: 29 MM (bearing set, excluding output shaft)

Output shaft: 2 MM

Output shaft length: 9 MM (starting from the front panel)

Voltage: 3 V-6V

Speed: 5000 RPM (3V); 10000RPM RPM(6V)

Weight: 14g


* Contents

This is a general-purpose motor, a weak magnetic motor, which can be started by solar energy, suitable for small toy car, using 3-6V DC voltage.


- Key Code

int motorPin = 9; //D9

void setup() {  

  pinMode(motorPin, OUTPUT);  //PWM

  Serial.begin(9600);

  Serial.println("DC Motor Input Speed 0~255");

  

}

void loop() {

  if(Serial.available())

  {

    int speed = Serial.parseInt();

    Serial.println(speed);

    analogWrite(motorPin,speed);  

  }

}

Posted by RDIoT
|

MP3 Format Decoder Board Amplifier [B120]



https://www.youtube.com/watch?v=ebXMET2kJqw


* Specs

Features&Benefits:

Superior sound quality.Onboard 2Wmonoamplifier(5V power of up to 3W) is directlyconnected to the speaker(recommendation 43Wspeakers),3.5mm gold plated headphone jackcan connect with headphones or external audio.

With aMicroUSB port.Through the mobile phone data line can use mobile power supply or the USB cable to charge the MP3 battery,also can use 3.7V lithiumbattery,orUSB 5V power supply.

SupportTF Card(mobile phone memory card) andU diskplay mode.

No soldering with speaker terminals for easy wiring.

The module is designed to facilitate modification.

 

Product Overview:

1) Support MP3 format, playing power on automatically.When mp3 is played the red LED flashes.

2) Support U disk (test 32G), TF Card (test 16G) play mode; power on default TF card mode, if the TF card does not exist automatically jump to the U disk mode,and both devices have installed,then you can manually set the play mode.For details please see the key operating instructions.

3) Buttons can be adjusted up and down to control songs,volume up and down, pause or play, mode switching.For details please see the key operating instructions.

4) Press menu button enter the single/all song play mode.The default mode is the all song mode when power up.Pressing the Repeat button can replace the circulating mode.

 

Key Operating Instructions:

"Prev / V--" button: "Press" for switchingprevioussong, "long press" for volume down

"Next/v++" button: "Press" for switchingnextsong, "long press" for volume up.

"P / P / Mode" button: "Press" for the "Play/Pause" Switch, "long press" for U disk, TF card mode.

"Repeat" button: "Press" for single/all song" mode(no long press)

 

Note:

1."Long press" approximate 2S.

2 .If you use U disk mode, it is recommended 5V power supply, and some U disk does not support 3.7V power supply.

 

Product s Pecifications:

Power range: 3.7~5.5V

Product size: 45mm*36mm

Exquisite double board design, large area of copper, stable and reliable.

 

Using the anti-static bag exquisite packaging the module, to avoid the electrostatic damage in transit

Posted by RDIoT
|

Bluetooth 4.0 MP3 Decoding Board Module [B147]




https://www.youtube.com/watch?v=jnU8WLHgCcw


* Specs

4.0 Bluetooth MP3 Decoding Board Module LED 12V DIY USB/SD/MMC APE FLAC WAV Decoder Record MP3 Player AUX FM Folders Switch DAE KIT 

 

This product support recording function.

In the state of AUX long press mode key to enter the recording, the premise is to have U disk or SD card

Can also be in the U disk or SD card state long press play button to choose play the recording.

Function characteristics:

 

* supported formats: APE FLAC WAV to WMA MP3

* version 4.0 bluetooth chip

* special android APK apple apps for player control operation

* bluetooth push to save in hand pattern in the music scan transfer via bluetooth to players

* mobile phone can read U disk inserted in decoding board/music files in SD card Displayed in the mobile phone Operating as a local file

* radio function, can directly control the automatic searching, manually selected frequency fine tuning

* audio input function, can realize AUX input signal transfer function

* 7 section of the EQ can change automatically presented seven sound effect, to choose from.

DAE will work sound function Can choose virtual bass The high increase.


* Contents

- download app link




Posted by RDIoT
|

Remote Music USB MP3 Decoder Module [B124]



https://www.youtube.com/watch?v=28fiRyuMxYQ


* Specs

100% brand new and high quality

Decoding board size: 10.8 * 2.5 * 3cm

Remote Dimensions: 8.5 * 4 * 0.5cm

Power Supply: DC 5V


Purpose:

A, configure the production of simple sound, controllable players, home appliances, industrial applications.

B, upgrading the ordinary the acoustics, so the acoustics can play MP3 files within the U disk and within the SD card easily.

C, in conjunction with other modules, circuits, equipment, secondary development application, used in toys, gifts, fitness equipment, household appliances, broadcasting systems.


Main Function: A highly integrated single-chip multimedia MP3 audio decoder board, the new interface AUX external source.

1, FM radio bands: 87.5--108Mhz, AUTO search AUTO storage units, antenna customization.

2, AUX external source function; input volume is adjustable, very strong anti-jamming capability.

3, MP3 playback function. Support U disk / SD card playback, maximum support MP3 format 320Kbps, play smooth, sound superb.

4, 4pcs 8LED digital tube, showing a clear pattern of the current function.

5, infrared remote control, can receive signal strength over long distances (10 meters).


MP3 panel keys and the remote control button operation Description:

1, In the state of MP3, short press VOL- to the former song, press VOL + to the next song, long press VOL- to decrease the volume, press VOL + to increase the volume.

2, FM state. press the MODE button to adjust to FM mode, long press SCAN button for automatic search and auto-save radio stations, long press VOL + to increase the volume, short press VOL + to select the next one automatically stored stations; long press VOL- to decrease the volume, short press VOL- to select the former stored station.

3. Pause function keys in the MP3 mode: Short press the SCAN key, MP3 player function is in a suspended state.

Posted by RDIoT
|

DC 5V Amplifier Board 3W+3W Class D (PAM8403) [B122]



https://www.youtube.com/watch?v=ezqbtpKRAVg


* Specs

Features

Can use the computer USB port 5V power supply

or using a mobile phone charger USB port 5V power supply

battery power can also be used

high efficiency:90%

can provide 3W (left channel) +3 W (right channel) output power in the 4Ω load and 5V power supply conditions

A class, B class amplifier such efficiency is only about 30%

D class amplifier is highly respected today

D class amplifier efficiency is extremely high, not because of temperature affect the sound quality

but do not add heat sink and take less space

noise canceling circuit was built in the amplifier board

power on / off without pop noise

module has a short-circuit current protection and over-temperature protection

Application:

LCD TVs, monitors,

Laptop

Portable Speakers

Portable DVD players, game consoles

Phone / speakerphone

 

Specifications

Operating voltage: 2.5V-5.5V

Speaker With:4-8ohms  recommended:4 ohms

Speaker Power :2-8W

Size:21 x 18 x 3.4mm(L x W x H)

Color:As the pics show

Net weight:1g

Posted by RDIoT
|