'3) Actuator'에 해당되는 글 92건

  1. 2019.02.25 Bluetooth Audio Receiver Board [B210]
  2. 2018.12.18 Serial MP3 Music Player Module for Arduino (YX5300) [B208]
  3. 2018.07.28 TDA7492P Bluetooth 4.0 Amplifier Board 8-25V 50W (TDA7492P) [D091]
  4. 2018.06.02 RGB LED Controller Dimmer 3 Channel DC12V - 24V 9A [B206]
  5. 2018.03.25 Xiaomi Yeelight Candle Light [D090]
  6. 2017.09.01 Elecrow TFT HDMI Display 7 Inch 1024x600 [B190]
  7. 2017.05.24 Air Quality Sensor Measurement RGB Matrix Output [P004] (1)
  8. 2017.02.28 3D Illusion Elephant Light 7 Color Acrylic LED [B192]
  9. 2017.02.22 L9110 Fan Module (L9110) [D086]
  10. 2016.10.05 WeMos D1 mini 0.66 inch 64x48 OLED Shield [D056]
  11. 2016.10.05 65K Color OLED 0.95 SPI 96x64 (SSD1331) [D058]
  12. 2016.10.05 OLED 0.96 I2C 128x64 White (SSD1306) [D044]
  13. 2016.10.05 OLED 0.96 I2C 128x64 (SSD1306) [D003]
  14. 2016.10.05 OLED 0.91 I2C 128x32 White (SSD1306) [D054]
  15. 2016.10.05 8-Digit 7 Segment Module (MAX7219) [D066]
  16. 2016.10.05 4 Digit Tube LED Display Module (TM1637) [D014]
  17. 2016.10.05 7Segment 4 Digit LED Module (5461AS) [D013]
  18. 2016.10.05 7Segment 1 Digit LED Module (5161AS) [D011]
  19. 2016.10.05 DZ292 Laser Receiver Module (DZ292) [S035]
  20. 2016.10.05 Laser+LED 2 in 1 module [D048]
  21. 2016.10.05 Red Laser Cross Line Module + [D037]
  22. 2016.10.05 Red Laser Line Module - [D036]
  23. 2016.10.05 650nm Laser Diode Module (KY-008) [D004]
  24. 2016.10.05 L9110S 2-Channel Dual Motor Driver (L9110S) [B042]
  25. 2016.10.05 ULN2003 Stepper Motor driver (X113647) [B002]
  26. 2016.10.05 Control H Bidge Gear Motor Control [P003]
  27. 2016.10.05 L298N Dual Motor Driver H Bridge (L298N) [B005]
  28. 2016.10.05 6~28V 3A Motor Speed Controller [B056]
  29. 2016.10.05 100RPM Gear Motor [S141]
  30. 2016.10.05 TT Motor Car Gear Motor [S142]

Bluetooth Audio Receiver Board [B210]



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



* Specs

Audio input mode:Bluetooth receiver

USB decode and play

TF card decoding playback

Support Playback Format: MP3,WMA,WAV,FLAC

Power Supply: DC 5V (original phone charger can power small USB plug)

Board Size:50 x 40mm


Preamp output can be directly promote the headset and also can be followed

by the use of the power amp



* Contents

- Connect 


- Sample




Posted by RD IoT RDIoT

댓글을 달아 주세요

Serial MP3 Music Player Module for Arduino (YX5300) [B208]





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


GitHub : https://github.com/rdiot/rdiot-b208


* Specs

The module is a kind of simple MP3 player device which is based on a high-quality MP3 audio chip---YX5300. It can support 8k Hz ~ 48k Hz sampling frequency MP3 and WAV file formats.

There is a TF card socket on board, so you can plug the micro SD card that stores audio files. MCU can control the MP3 playback state by sending commands to the module via UART port, such as

switch songs, change the volume and play mode and so on. You can also debug the module via USB

to UART module. It is compatible with Arduino / AVR / ARM / PIC.


Features:

1. Support sampling frequency (kHz): 8 / 11.025 / 12 / 16 / 22.05 / 24 / 32 / 44.1 / 48

2. High quality


3. Support file format: MP3 / WAV

4. Support Micro SD card, Micro SDHC Card

5. 30 class adjustable volume

6. UART TTL serial control playback mode, baud rate is 9600bps

7. Power supply can be 3.2 ~ 5.2VDC

8. Control logic interface can be 3.3V / 5V TTL

9. Compatible with Arduino UNO / Leonardo / Mega2560 / DUE



* Contents

- interface 


- Connect 

Serial MP3 Player - Arduino

GND - GND

VCC - 5V

TX - D5

RX - D6


- Commonly Command bytes Descriptions


- tested source code 

 : https://github.com/rdiot/rdiot-b208/blob/master/SerialMp3PlayerControl.ino.ino


- Key Code

#include <SoftwareSerial.h>


#define ARDUINO_RX 5 // TX - Arduino RX

#define ARDUINO_TX 6 // RX - Arduino TX


SoftwareSerial mySerial(ARDUINO_RX, ARDUINO_TX);


unsigned char playmode = 1; 

  #define PLAY  1

  #define PAUSE 0

static int8_t Send_buf[8] = {0} ;

  

/************Command byte**************************/

#define CMD_NEXT_SONG 0X01

#define CMD_PREV_SONG 0X02

#define CMD_PLAY_W_INDEX 0X03

#define CMD_VOLUME_UP 0X04

#define CMD_VOLUME_DOWN 0X05

#define CMD_SET_VOLUME 0X06

#define CMD_SINGLE_CYCLE_PLAY 0X08

#define CMD_SEL_DEV 0X09

#define DEV_TF 0X02

#define CMD_SLEEP_MODE 0X0A

#define CMD_WAKE_UP 0X0B

#define CMD_RESET 0X0C

#define CMD_PLAY 0X0D

#define CMD_PAUSE 0X0E

#define CMD_PLAY_FOLDER_FILE 0X0F

#define CMD_STOP_PLAY 0X16

#define CMD_FOLDER_CYCLE 0X17

#define CMD_SET_SINGLE_CYCLE 0X19

#define SINGLE_CYCLE_ON 0X00

#define SINGLE_CYCLE_OFF 0X01

#define CMD_SET_DAC 0X1A

#define DAC_ON  0X00

#define DAC_OFF 0X01

#define CMD_PLAY_W_VOL 0X22

/*********************************************************************/


#define ROTARY_ANGLE_SENSOR A0


#define ADC_REF 5//reference voltage of ADC is 5v

#define VCC     5    //the default value of VCC of the control interface is 5v

#define FULL_ANGLE 280//full value of the rotary angle is 280 degrees


void setup() 

{

  //pinMode(2, INPUT); // Button - Paluse&Play

  Serial.begin(9600);

  mySerial.begin(9600);

  delay(500);

  attachInterrupt(0, playOrPause, RISING);//pin2 -> INT0, and the Touch Sensor 

                                          //is connected with pin2 of Arduino

  sendCommand(CMD_SEL_DEV, DEV_TF);    

  delay(200);

  sendCommand(CMD_PLAY_W_VOL, 0X0F01);

}

static int8_t pre_vol = 0x0f; 

void loop() 

{

  int degrees;

  degrees = getDegree();

    

  int8_t volume;

  /*The degrees is 0~280, should be converted to be 0~255 to control the*/

  /*brightness of LED */

  volume = map(degrees, 0, 280, 30, 0); 

  if(volume != pre_vol)

  {

    sendCommand(CMD_SET_VOLUME, volume);

    pre_vol = volume;

  }

  delay(100);

}


void sendCommand(int8_t command, int16_t dat)

{

  delay(20);

  

  Send_buf[0] = 0x7e; //

  Send_buf[1] = 0xff; //

  Send_buf[2] = 0x06; //

  Send_buf[3] = command; //

  Send_buf[4] = 0x00;//

  Send_buf[5] = (int8_t)(dat >> 8);//datah

  Send_buf[6] = (int8_t)(dat); //datal

  Send_buf[7] = 0xef; //

  for(uint8_t i=0; i<8; i++)//

  {

    mySerial.write(Send_buf[i]);  

  }

  

}


int getDegree()

{

  int sensor_value = analogRead(ROTARY_ANGLE_SENSOR);

  float voltage;

  voltage = (float)sensor_value*ADC_REF/1023;

  float degrees = (voltage*FULL_ANGLE)/VCC;

  return degrees;

}

/*Interrupt service routine*/

void playOrPause()

{

  cli();

  if(playmode == PLAY)

  {

    playmode = PAUSE;

  sendCommand(CMD_PAUSE,0);

  }

  else

  {

    playmode = PLAY;

  sendCommand(CMD_PLAY,0);

  }

  sei();

}


- Reference

CATALEX Serial MP3 Player manual version v1.0.1

 : https://github.com/rdiot/rdiot-b208/blob/master/Serial%20MP3%20Player%20v1.0%20Manual.pdf

Serial Debug tool - SSCOM32 

 : https://github.com/rdiot/rdiot-b208/blob/master/Serial%20Debug%20tool%20-%20SSCOM32.zip

Serial MP3 Player Demo Code 

 : https://github.com/rdiot/rdiot-b208/blob/master/SerialMP3PlayerDemoCode%20for%20Arduino-1.0.zip


Posted by RD IoT RDIoT

댓글을 달아 주세요

TDA7492P Bluetooth 4.0 Amplifier Board 8-25V 50W (TDA7492P) [D091]


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


* Specs

- Description

TDA7492P digital amplifier chip, designed to optimize the circuit layout, the sound quality is very good, with big power. 

DIP switches can be more easily direcly adjusted after-class amplifier gain, to better promote the impedance larger speakers. 


- Specs

Net weight: approx. 33g 

Product size: approx.80*50*15mm/3.14*1.96*0.59'' 

Power: 2.1 interface DC 8~25V power supply 

Audio input: stereo input various versions of the Bluetooth connection, using CSP8635 Bluetooth chip, Bluetooth V4.0, high software compatibility. 

Output Impedance: 8 ohms Best(4,6,8,16 ohm impedance can drive speakers) 

Output power: Add pre-5532 output foot(powered 25V, 6-ohm impedance output 2 X 50W, 8ohm impedance output 2 X 40W dual-channel) 



Posted by RD IoT RDIoT

댓글을 달아 주세요

RGB LED Controller Dimmer 3 Channel DC12V - 24V 9A [B206]





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


* Specs

This LED Dimmer/RGB Controller can be used as a 3 channels LED single color strip light dimmer a LED RGB module / Flexible LED Strips as a static color controller.

Universal Red/Green/Blue(RGB) dimmer-konbs can be used to adjust Red, Green and Blue from 0 to 100 percent for full range color creation. Endless RGB color combinations.

Installation is quite easy, power up the unit with 12 to 24V DC power source and connect 3 output connection to RGB LED strip light or a Solid Color LED strip light. Electric wires and cables are easily connected to the unit through screw down connectors, which makes 100% secure connections.


Applications:

For RGB LED strip controlling and dimming each color independently.

For solid color LED strip with 3 independent channels

For dynamic White LED strip, controlling color temprature

For RGB modules


Input voltage: DC12V-24V, 108W (12V )/ 316W (24V)

Output: 3 channel

Max load current: 3 Amps/channel (9 Amps total)

IP rating: IP-55

Size:5.12*2.62*2 inches



* Contents

- LEFT Connect 

+ - 12V

- - GND


- RIGHT Connect

COM - +

R - R

G - G

B - B


Posted by RD IoT RDIoT

댓글을 달아 주세요

Xiaomi Yeelight Candle Light [D090]






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


* Specs

- Description

Candela is the world's only smart candlelight using the latest Bluetooth (BLE) Mesh technology, combining the warm comfort of candlelight with the convenience and control of smart technology. The BLE Mesh technology allows up to 30,000 units Candelas to communicate with each other.

Control your candela and other YEELIGHT smart lights with our Android or iOS apps

The built-in 2100Mah battery allows for up to 8 hours of continuous use on a single charge. The portability lets candela fits in any moment of your life

Visual comfort light, the candela holds an 1800K Color temperature, which is the same Color temperature as candlelight, with adjustable brightness, leading to the warm familiar Copper of candlelight

Distinctive Design, Candela’s final design was the sum effort of 4 months collaboration with multinational design teams

Top quality materials, we want to fully load the lamp, offering a timeless piece with minimalist design components while using top quality materials to bring you the luxury product experience


Multiple lights, countless displays

A warm candle light for a heart-warming feeling

Your remote to a beautiful candlelit night

Intricately designed, a touchable artwork

Built-in rechargeable battery for a long-lasting life


- Specs

Brand YEELIGHT

Model Candela, LED Candle light,

Item Weight 1.4 pounds

Product Dimensions 4 x 4 x 10 inches

Item model number YLFW01YL

UPC 608887786279

Batteries: 1 Lithium Metal batteries required. (included)

Color Gold

Style Modern

Material Aluminum

Shape Circular

Power Source battery-powered

Item Package Quantity 1

Batteries Included? Yes

Batteries Required? Yes

Battery Cell Type Lithium Metal

Cover Included Candela, USB Cable

Bulb Type LED

Voltage 5 volts

Wattage 5 watts


* Contents

- yeelight app : https://play.google.com/store/apps/details?id=com.yeelight.cherry


- yeelight cancle ble advertise before pairing







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

Xiaomi Yeelight Candle Light [D090]  (0) 2018.03.25
Posted by RD IoT RDIoT

댓글을 달아 주세요

Elecrow TFT HDMI Display 7 Inch 1024x600 [B190]





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


* Specs

Power: DC 7.5v-12v/1.5-2A

16:10 display ratio

Resolution:1024x600

Visible area: 150mm x 85mm

Weight:300


* Contents

- Yes, this is an adorable small HDMI television with incredibly high resolution! We tried to get the smallest possible HDMI display with high-res, high-contrast visibility. The display is very easy to use 

- it should be powered by 12DC, then connect a digital video source to one of the ports. It work connect to any device with direct HDMI such as raspberry pi, banana pi and pcduino. The biggest difference is that it can work when you plug it on device without any software support.


- If you want a power adapter : 12V/2A Power Supply



Posted by RD IoT RDIoT
TAG HDMI, lcd, tft

댓글을 달아 주세요

Air Quality Sensor Measurement RGB Matrix Output [P004]



 

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

 

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

 

 https://www.youtube.com/watch?v=vl9jQZMoH-o


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

 

* Parts

- Arduino Mega

- Air Quality Sensor (MQ135) [S037]

- 32x64 RGB LED Matrix P4 (LM-P4-SMD-RGB-LED) [D025]

- SI7021 Humidity Sensor (GY-21) [S068]

- Photo Resistor Module (KY-018) [S002]

 

* Contents

- Key Code

#include <Adafruit_GFX.h>   // Core graphics library

#include <RGBmatrixPanel.h> // Hardware-specific library

#include <MQ135.h>

 

#include <Wire.h>

int pin = A5; // Air Quality Sensor

 

// LED Matrix 

#define OE   9

#define LAT 10

#define CLK 11

#define A   A0

#define B   A1

#define C   A2

#define D   A3

RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false, 64);

 

MQ135 gasSensor = MQ135(pin);

#define RZERO 76.63

 

double rzero;

double result;


int i=0;

 

double rzero;

double result;

 

void setup() {
  matrix.begin(); // LED Matrix init
  matrix.drawPixel(0, 0, matrix.Color333(7, 7, 7));
  delay(500);

  matrix.fillRect(0, 0, 64, 32, matrix.Color333(0, 7, 0));
  delay(3000);
}

 

void loop() {

  matrix.fillScreen(matrix.Color333(0, 0, 0));
  matrix.setCursor(1, 1);    // start at top left, with 8 pixel of spacin


  if (i==0) {
   rzero = gasSensor.getRZero(); // float
  }

  if (i>0) { 
   result = gasSensor.getRZero();
   rzero = (rzero + result)/2;
  }


  float co2_ppm = gasSensor.getPPM();


  matrix.println("rz:"+(String)rzero+" ");
  matrix.setCursor(1, 9);    // start at top left, with 8 pixel of spacing
  matrix.println("rs:"+(String)result+" ");
  matrix.setCursor(1, 16);    // start at top left, with 8 pixel of spacing
  matrix.println("D:"+(String)analogRead(pin)+" ");
  matrix.setCursor(1, 23);    // start at top left, with 8 pixel of spacing
  matrix.println("A:"+(String)co2_ppm+"ppm");

  i++;

  if(co2_ppm > 10)

  {

    matrix.drawRect(0, 0, 64, 32, matrix.Color333(0, 4, 7));

  }

  else

  {

  // matrix.drawRect(0, 0, 64, 32, matrix.Color333(0, 4, 7));

  }

  //cool down
  delay(1000);

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

  1.  댓글주소 수정/삭제 댓글쓰기 2019.10.24 23:24

    비밀댓글입니다

3D Illusion Elephant Light 7 Color Acrylic LED





https://www.youtube.com/watch?v=6HQlEzAKwSk


* Specs

3D design lamp, just like a real one.  
Two modes, seven colors for a better performance.  
Made by acrylic, envrironmental and safe to use.  
Made for creating romantic surrounding.  
A great gift for children,girlfriend and families.  
USB should be used to supply power.  


Power: 0-5W
Output voltage: 5V
Switch mode: touch switch
Power by:usb 5v
Product weight: 0.3KG
acrylic board size:  185x211x4mm    
Base size:85x85x36mm
A single packing box size: 270*200*45mm
Accessories: acrylic board *1 ABS Base*1 USB data line *1
Product color: seven color: red, green, blue, yellow, purple, white, celadon, adjustable 10.solid color or colorful gradient


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

3D Illusion Elephant Light 7 Color Acrylic LED [B192]  (0) 2017.02.28
Posted by RD IoT RDIoT
TAG 3D LED

댓글을 달아 주세요

L9110 Fan Module (L9110) [D086]




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


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


* Specs

Designed for fire fighting robot and adopt 9110 H as the bridge drive
Can be used with steering engine to control the wind direction
Can control positive and negative going motion easily.
High quality propeller,high efficiency
Can be easily blow out the lighter flame(beyond 20 cm)
Working Voltage: 5V 
Color: Red + white + black
Size:Approx.34 x 26 x 12mm/1.33*1.02*0.47inch(excluding propeller)
Propeller Diameter : Approx. 75mm / 2.95 inch
Package Includes:
1 x Fan Motor Module


* Contents

- Connect 

INB ----- D8

INA ----- D9

VCC ----- 5V

GND ----- GND

 

- Source

int INA = 9; 

int INB = 8; 


void setup() 

  pinMode(INA,OUTPUT); 

  pinMode(INB,OUTPUT); 

void loop() 

  // LEFT

  digitalWrite(INA,LOW);

  digitalWrite(INB,HIGH); 

  delay(1000); 

  

  digitalWrite(INA,LOW);

  digitalWrite(INB,LOW); 

  delay(3000); 


  // RIGHT

  digitalWrite(INA,HIGH);

  digitalWrite(INB,LOW); 

  delay(1000); 


  digitalWrite(INA,LOW);

  digitalWrite(INB,LOW); 

  delay(3000); 

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

WeMos D1 mini 0.66 inch 64x48 OLED Shield [D056]



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


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


* Specs

OLED Shield for WeMos D1 mini 0.66" inch 64X48 IIC I2C


* Contents

- Library : https://github.com/sparkfun/SparkFun_Micro_OLED_Arduino_Library/tree/V_1.1.2

- Tested Example : https://github.com/wemos/D1_mini_Examples/archive/master.zip

 : D1_mini_Examples-master\04.Shields\OLED_Shield\Use_SparkFun_Library

Posted by RD IoT RDIoT

댓글을 달아 주세요

65K Color OLED 0.95 SPI 96x64 (SSD1331) [D058]





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


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


* Specs

Driver Chip SSD1331 

Interface SPI 

Resolution 96×64 

Display Size 0.95inch 

Colors 65K colorful 

Visible Angle >160° 

Operating Temp. (℃) -20~70 

Storage Temp. (℃) -30~80 

Operating Voltage 3.3V / 5V 


* Contents

- Connect

GND: Power ground ----- GND

VCC:2.8-5.5V power supply ----- 5V

D0: CLK clock ----- D13

D1: MOSI data ----- D11

RST: Reset ----- D9

DC: data / command ----- D8

CS: chip-select signal ----- D10


- Library :  https://github.com/adafruit/Adafruit-SSD1331-OLED-Driver-Library-for-Arduino


Posted by RD IoT RDIoT

댓글을 달아 주세요

OLED 0.96 I2C 128x64 White (SSD1306) [D044]



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


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


* Specs

128X64 OLED LCD LED Display Module white For Arduino 0.96" I2C IIC SPI Serial new original



* Contents

- Library : https://bintray.com/olikraus/u8glib/Arduino

- Library Desc : http://code.google.com/p/u8glib/wiki/u8glib


- Key Code

#include "U8glib.h"


U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);


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("OLED 0.96 ");


  u8g.setFont(u8g_font_helvB14);

  u8g.setPrintPos(0,40);

  u8g.println("I2C 128x64");


  u8g.setPrintPos(0,60); 

  u8g.print("Blue"); // Actually White

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

OLED 0.96 I2C 128x64 (SSD1306) [D003]



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


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


* Specs

0.96" Inch Yellow and Blue I2C IIC OLED LCD Module Serial 128X64 LED Display for Arduino 51 MSP420 STIM32 SCR lcd display

Support wide voltage: 3.3V-5V DC

Driver IC: SSD1306

Communication: IIC, only two I / O ports

Viewing angle: greater than 160 degrees

Size: 0.96


* Contents

- Library : https://bintray.com/olikraus/u8glib/Arduino

- Library Desc : http://code.google.com/p/u8glib/wiki/u8glib


- Key Code

#include "U8glib.h"


U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);


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("HC-SR04");


  u8g.setFont(u8g_font_helvB14);

  u8g.setPrintPos(0,40);


  int var = 0;

  u8g.print("Dist.="+(String)var+"mm");

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

OLED 0.91 I2C 128x32 White (SSD1306) [D054]



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


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


* Specs

0.91 Inch OLED LCD Module SPI/IIC Interface 128*32 Dot Matrix  new original


* Contents

- DataSheet : http://www.buydisplay.com/download/manual/ER-OLED0.91-1_Series_Datasheet.pdf


- Connect

GND ----- GND

VCC ----- 3.3~5V

SCK ---- SCL

SDA ---- SDA


- Key Code


#include "U8glib.h"

U8GLIB_SSD1306_128X32 u8g(U8G_I2C_OPT_NONE); 


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("OLED 0.91");

  u8g.setFont(u8g_font_helvB14);

  u8g.setPrintPos(0,30);

  int var = 0;

  u8g.print("128x32");

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

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 RD IoT 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 RD IoT 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 RD IoT 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 RD IoT 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("                    ");

  }

}

Posted by RD IoT 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 RD IoT RDIoT
TAG Laser, LED

댓글을 달아 주세요

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 RD IoT RDIoT
TAG Laser

댓글을 달아 주세요

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 RD IoT RDIoT
TAG Laser

댓글을 달아 주세요

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

*/

 

}

Posted by RD IoT 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 RD IoT 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 RD IoT 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 RD IoT 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 RD IoT 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 RD IoT 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 RD IoT 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 RD IoT RDIoT

댓글을 달아 주세요