数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

DFR0274 数据表(PDF) 6 Page - DFROBOT

部件名 DFR0274
功能描述  RGB LED Strip Driver Shield SKU:DFR0274
PDF  12 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  DFROBOT [DFROBOT]
网页  https://www.dfrobot.com/
标志 DFROBOT - DFROBOT

DFR0274 数据表(HTML) 6 Page - DFROBOT

Back Button DFR0274 Datasheet HTML 2Page - DFROBOT DFR0274 Datasheet HTML 3Page - DFROBOT DFR0274 Datasheet HTML 4Page - DFROBOT DFR0274 Datasheet HTML 5Page - DFROBOT DFR0274 Datasheet HTML 6Page - DFROBOT DFR0274 Datasheet HTML 7Page - DFROBOT DFR0274 Datasheet HTML 8Page - DFROBOT DFR0274 Datasheet HTML 9Page - DFROBOT DFR0274 Datasheet HTML 10Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 6 / 12 page
background image
changed the original program to use on IR Kit For Arduino Model: DFR0107
32 bit controller.
All keypresses are sent to the serial monitor at 9600 baud.
pulseIn is always HIGH. The phototransistor in the kit does not invert the
signal.
uses pin 13 for heartbeat debug
32 bits requires a long variable, so divided up into two 15 bit so can use
integer variables
use the first 15 bits of the 32 bits for remote and data stream
verification. This code is always the same for every button press
use the last 15 of the 32 bits for button press selection. This code
changes for each button.
ignore the middle 2 bits, it never changes.
*/
#define IR_BIT_LENGTH 32
// number of bits sent by IR remote
#define FirstLastBit 15
// divide 32 bits into two 15 bit chunks for
integer variables. Ignore center two bits. they are all the same.
#define BIT_1 1500
// Binary 1 threshold (Microseconds)
#define BIT_0 450
// Binary 0 threshold (Microseconds)
#define BIT_START 4000
// Start bit threshold (Microseconds)
#define IR_PIN 4
// IR Sensor pin
#define LED_PIN 13
// LED goes off when signal is received
int debug = 0;
// flag as 1 to output raw IR pulse data stream
length in microseconds
int output_verify = 0;
// flag as 1 to print decoded verification
integers. same number for all buttons
int output_key = 0;
// flag as 1 to print decoded key integers
int remote_verify = 16128;
// verifies first bits are 11111100000000
different remotes may have different start codes
int Blue_Bright=0;
int Red_Bright=0;
int Green_Bright=0;
int RedPin = 10;
int GreenPin = 11;
int BluePin = 9;
boolean Blue_flag=false;
boolean Red_flag=false;
boolean Green_flag=false;
boolean Flash_flag=false;
void setColor(int red, int green, int blue)
{
analogWrite(RedPin, red);
analogWrite(GreenPin, green);
analogWrite(BluePin, blue);
}
void setup()
{
pinMode(LED_PIN, OUTPUT); //This shows when ready to recieve



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com