chinese直男口爆体育生外卖, 99久久er热在这里只有精品99, 又色又爽又黄18禁美女裸身无遮挡, gogogo高清免费观看日本电视,私密按摩师高清版在线,人妻视频毛茸茸,91论坛 兴趣闲谈,欧美 亚洲 精品 8区,国产精品久久久久精品免费

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

聲音響應(yīng)Cheap Ir Led Strip的制作

454398 ? 來源:網(wǎng)絡(luò)整理 ? 作者:網(wǎng)絡(luò)整理 ? 2019-12-09 15:18 ? 次閱讀
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

耗材:

1。明顯帶有電源

2的LED燈條esp8266/節(jié)點(diǎn)mcu

3。 Ir Emitter領(lǐng)導(dǎo)

4。電阻

5。編程電纜

6。 arduino ide

7。烙鐵(一些基本的焊接)

8。 7805 ic(用于使用led電源作為esp電源)

9。步驟1:準(zhǔn)備Esp

首先,將Nodemcu與計(jì)算機(jī)或筆記本電腦連接。

現(xiàn)在安裝nodemcu(使用谷歌搜索)的驅(qū)動(dòng)程序。

打開后,Arduino IDE(當(dāng)然,您需要下載并安裝它)單擊Arduino工具欄上的“工具”,然后單擊“木板”選擇“Board Manager”并搜索esp8266安裝(需要一些時(shí)間才能完成)

現(xiàn)在,從中選擇“素描” Arduino工具欄選擇“包含庫”,然后選擇“管理庫”,搜索“ IRremoteESP8266”并安裝

現(xiàn)在,僅通過“工具”完成配置需要轉(zhuǎn)到“主板”,選擇“NodeMcu 1.0(ESP 12-E)”或其他版本的ESP8266。

步驟2:準(zhǔn)備和測(cè)試IR LED

聲音響應(yīng)Cheap Ir Led Strip的制作

首先,我們需要安裝

轉(zhuǎn)到此處

標(biāo)識(shí)您的led燈帶,無論是24鍵還是44鍵(更大的一個(gè))遙控器

以獲取遙控器代碼在這里

安裝庫后,我們ed通過按圖所示連接IR LED來準(zhǔn)備我們的IR LED。在其上連接IR LED,然后上傳以下草圖并將IR LED指向控制器。 LED燈條應(yīng)閃爍(打開和關(guān)閉)。//可同時(shí)使用24和44鍵的遙控器。

HERE是執(zhí)行此操作的代碼。

#define IR_OFF 0xF740BF //Resective ir codes in 32 bits

#define IR_ON 0xF7C0

#includeIRsend irsend(4); // IR pin

void setup() {

irsend.begin();

}

void loop() {

irsend.sendNEC(IR_ON, 32);

delay(5000);

irsend.sendNEC(IR_OFF, 32);

delay(5000);

}

步驟3:接線和準(zhǔn)備麥克風(fēng)

我們將僅使用Espe8266 A0的模擬引腳作為輸入作為模擬信號(hào),并使用它來觸發(fā)基于聲音的紅外信號(hào)

將Out Pin連接到a0

將5V連接到Vin(AS節(jié)點(diǎn)mcu沒有5v輸出)

就是這樣,我們將對(duì)準(zhǔn)連接的IR LED D2引腳連接到LED燈條的接收器。

a

步驟4:上傳代碼并準(zhǔn)備就緒

#include

#include

#define microphonePin A0

int sound;

int sound1;

const int irPin = 4; //d2IRsend irsend(irPin);void setup() {

Serial.begin(9600);

pinMode(microphonePin, INPUT);

pinMode(irPin, OUTPUT);}

// ir led Codes

#define IR_BPlus 0xFF3AC5 //

#define IR_BMinus 0xFFBA45 //

#define IR_ON 0xFF827D //

#define IR_OFF 0xFF02FD //

#define IR_R 0xFF1AE5 //

#define IR_G 0xFF9A65 //

#define IR_B 0xFFA25D //

#define IR_W 0xFF22DD //

#define IR_B1 0xFF2AD5 //

#define IR_B2 0xFFAA55 //

#define IR_B3 0xFF926D //

#define IR_B4 0xFF12ED //

#define IR_B5 0xFF0AF5 //

#define IR_B6 0xFF8A75 //

#define IR_B7 0xFFB24D //

#define IR_B8 0xFF32CD //

#define IR_B9 0xFF38C7 //

#define IR_B10 0xFFB847 //

#define IR_B11 0xFF7887 //

#define IR_B12 0xFFF807 //

#define IR_B13 0xFF18E7 //

#define IR_B14 0xFF9867 //

#define IR_B15 0xFF58A7 //

#define IR_B16 0xFFD827 //

#define IR_UPR 0xFF28D7 //

#define IR_UPG 0xFFA857 //

#define IR_UPB 0xFF6897 //

#define IR_QUICK 0xFFE817 //

#define IR_DOWNR 0xFF08F7 //

#define IR_DOWNG 0xFF8877 //

#define IR_DOWNB 0xFF48B7 //

#define IR_SLOW 0xFFC837 //

#define IR_DIY1 0xFF30CF //

#define IR_DIY2 0xFFB04F //

#define IR_DIY3 0xFF708F //

#define IR_AUTO 0xFFF00F //

#define IR_DIY4 0xFF10EF //

#define IR_DIY5 0xFF906F //

#define IR_DIY6 0xFF50AF //

#define IR_FLASH 0xFFD02F //

#define IR_JUMP3 0xFF20DF //

#define IR_JUMP7 0xFFA05F //

#define IR_FADE3 0xFF609F //

#define IR_FADE7 0xFFE01F //

void loop() {

sound = analogRead(microphonePin); // getting input audio signal reading

Serial.print(sound); // input audio signal readings to Serial display

Serial.print(“ ”);

if (sound 》 415)

{

sound1 = map(sound, 415, 750, 140, 255); // mapping higher frequency values which are above offset to the scale of 150 - 255

}

else if (sound 》 340 && sound 《 415) // keeping offset reading to zero scale..here offset value in the range of 340 - 415(offset value at 1.45v) 。.its depends on componets used in circuit.。

{

sound1 = map(sound, 340, 415, 0, 9);

}

else if (sound 《 340)

{

sound1 = map(sound, 0, 340, 10, 139); // keeping below offset readings to scale of 1-139.。

}

if (sound1 》 240)

{

irsend.sendNEC(IR_FLASH, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

}

else if ((sound1) 》 200)

{

irsend.sendNEC(IR_G, 32);

irsend.sendNEC(IR_B, 32);

delay(120);}

else if (sound1 》 160)

{

irsend.sendNEC(IR_R, 32);

irsend.sendNEC(IR_B, 32);

delay(120);

}

else if (sound1 》 120)

{

irsend.sendNEC(IR_B, 32);

delay(120);

}

else if (sound1 》 80)

{

irsend.sendNEC(IR_B, 32);

delay(120);

}

else if (sound1 》 40)

{

irsend.sendNEC(IR_G, 32);

delay(120);

}

else if (sound1 》 10)

{

irsend.sendNEC(IR_R, 32);

delay(120);}

else耗材:

1。明顯帶有電源

2的LED燈條。 esp8266/節(jié)點(diǎn)mcu

3。 Ir Emitter領(lǐng)導(dǎo)

4。電阻

5。編程電纜

6。 arduino ide

7。烙鐵(一些基本的焊接)

8。 7805 ic(用于使用led電源作為esp電源)

9。步驟1:準(zhǔn)備Esp

首先,將Nodemcu與計(jì)算機(jī)或筆記本電腦連接。

現(xiàn)在安裝nodemcu(使用谷歌搜索)的驅(qū)動(dòng)程序。

打開后,Arduino IDE(當(dāng)然,您需要下載并安裝它)單擊Arduino工具欄上的“ 工具”,然后單擊“ 木板”選擇“ Board Manager ”并搜索esp8266安裝(需要一些時(shí)間才能完成)

現(xiàn)在,從中選擇“ 素描” Arduino工具欄選擇“包含庫”,然后選擇“管理庫”,搜索“ IRremoteESP8266”并安裝

現(xiàn)在,僅通過“ 工具”完成配置需要轉(zhuǎn)到“ 主板”,選擇“ NodeMcu 1.0(ESP 12-E)”或其他版本的 ESP8266 。

步驟2:準(zhǔn)備和測(cè)試IR LED

首先,我們需要安裝

轉(zhuǎn)到此處

標(biāo)識(shí)您的led燈帶,無論是24鍵還是44鍵(更大的一個(gè))遙控器

以獲取遙控器代碼在這里

安裝庫后,我們ed通過按圖所示連接IR LED來準(zhǔn)備我們的IR LED。在其上連接IR LED,然后上傳以下草圖并將IR LED指向控制器。 LED燈條應(yīng)閃爍(打開和關(guān)閉)。//可同時(shí)使用24和44鍵的遙控器。

HERE是執(zhí)行此操作的代碼。

#define IR_OFF 0xF740BF //Resective ir codes in 32 bits

#define IR_ON 0xF7C0

#include

IRsend irsend(4); // IR pin

void setup() {

irsend.begin();

}

void loop() {

irsend.sendNEC(IR_ON, 32);

delay(5000);

irsend.sendNEC(IR_OFF, 32);

delay(5000);

}

步驟3:接線和準(zhǔn)備麥克風(fēng)

我們將僅使用Espe8266 A0的模擬引腳作為輸入作為模擬信號(hào),并使用它來觸發(fā)基于聲音的紅外信號(hào)

將Out Pin連接到a0

將5V連接到Vin(AS節(jié)點(diǎn)mcu沒有5v輸出)

就是這樣,我們將對(duì)準(zhǔn)連接的IR LED D2引腳連接到LED燈條的接收器。

a

步驟4:上傳代碼并準(zhǔn)備就緒

#include

#include

#define microphonePin A0

int sound;

int sound1;

const int irPin = 4; //d2IRsend irsend(irPin);void setup() {

Serial.begin(9600);

pinMode(microphonePin, INPUT);

pinMode(irPin, OUTPUT);}

// ir led Codes

#define IR_BPlus 0xFF3AC5 //

#define IR_BMinus 0xFFBA45 //

#define IR_ON 0xFF827D //

#define IR_OFF 0xFF02FD //

#define IR_R 0xFF1AE5 //

#define IR_G 0xFF9A65 //

#define IR_B 0xFFA25D //

#define IR_W 0xFF22DD //

#define IR_B1 0xFF2AD5 //

#define IR_B2 0xFFAA55 //

#define IR_B3 0xFF926D //

#define IR_B4 0xFF12ED //

#define IR_B5 0xFF0AF5 //

#define IR_B6 0xFF8A75 //

#define IR_B7 0xFFB24D //

#define IR_B8 0xFF32CD //

#define IR_B9 0xFF38C7 //

#define IR_B10 0xFFB847 //

#define IR_B11 0xFF7887 //

#define IR_B12 0xFFF807 //

#define IR_B13 0xFF18E7 //

#define IR_B14 0xFF9867 //

#define IR_B15 0xFF58A7 //

#define IR_B16 0xFFD827 //

#define IR_UPR 0xFF28D7 //

#define IR_UPG 0xFFA857 //

#define IR_UPB 0xFF6897 //

#define IR_QUICK 0xFFE817 //

#define IR_DOWNR 0xFF08F7 //

#define IR_DOWNG 0xFF8877 //

#define IR_DOWNB 0xFF48B7 //

#define IR_SLOW 0xFFC837 //

#define IR_DIY1 0xFF30CF //

#define IR_DIY2 0xFFB04F //

#define IR_DIY3 0xFF708F //

#define IR_AUTO 0xFFF00F //

#define IR_DIY4 0xFF10EF //

#define IR_DIY5 0xFF906F //

#define IR_DIY6 0xFF50AF //

#define IR_FLASH 0xFFD02F //

#define IR_JUMP3 0xFF20DF //

#define IR_JUMP7 0xFFA05F //

#define IR_FADE3 0xFF609F //

#define IR_FADE7 0xFFE01F //

void loop() {

sound = analogRead(microphonePin); // getting input audio signal reading

Serial.print(sound); // input audio signal readings to Serial display

Serial.print(“ ”);

if (sound 》 415)

{

sound1 = map(sound, 415, 750, 140, 255); // mapping higher frequency values which are above offset to the scale of 150 - 255

}

else if (sound 》 340 && sound 《 415) // keeping offset reading to zero scale..here offset value in the range of 340 - 415(offset value at 1.45v) 。.its depends on componets used in circuit.。

{

sound1 = map(sound, 340, 415, 0, 9);

}

else if (sound 《 340)

{

sound1 = map(sound, 0, 340, 10, 139); // keeping below offset readings to scale of 1-139.。

}

if (sound1 》 240)

{

irsend.sendNEC(IR_FLASH, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

irsend.sendNEC(IR_QUICK, 32);

}

else if ((sound1) 》 200)

{

irsend.sendNEC(IR_G, 32);

irsend.sendNEC(IR_B, 32);

delay(120);}

else if (sound1 》 160)

{

irsend.sendNEC(IR_R, 32);

irsend.sendNEC(IR_B, 32);

delay(120);

}

else if (sound1 》 120)

{

irsend.sendNEC(IR_B, 32);

delay(120);

}

else if (sound1 》 80)

{

irsend.sendNEC(IR_B, 32);

delay(120);

}

else if (sound1 》 40)

{

irsend.sendNEC(IR_G, 32);

delay(120);

}

else if (sound1 》 10)

{

irsend.sendNEC(IR_R, 32);

delay(120);}

else

{

irsend.sendNEC(IR_FADE7, 32);

delay(120);

} Serial.println(sound1);

delay(50);

}

{

irsend.sendNEC(IR_FADE7, 32);

delay(120);

} Serial.println(sound1);

delay(50);

}

責(zé)任編輯:wv

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • led
    led
    +關(guān)注

    關(guān)注

    243

    文章

    24427

    瀏覽量

    687080
  • Arduino
    +關(guān)注

    關(guān)注

    190

    文章

    6514

    瀏覽量

    195855
收藏 人收藏
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

    評(píng)論

    相關(guān)推薦
    熱點(diǎn)推薦

    把 “聲音” 留給路噪,把 “可靠” 留給座艙

    #汽車音響 #功放芯片 #CD7377CZ #華潤微電子 #深智微科技 #音頻放大器 #車載音頻 #電子元器件 #音響改裝
    的頭像 發(fā)表于 12-01 10:02 ?129次閱讀

    Vishay Power Metal Strip?電阻器技術(shù)解析與應(yīng)用指南

    Vishay/Dale WSL2512 Power Metal Strip ^?^ 電阻器采用2512封裝,尺寸為6.35mmx3.18mmx0.635mm(長(zhǎng)x寬x高)。這些電流檢測(cè)電阻器具有全
    的頭像 發(fā)表于 11-14 10:50 ?236次閱讀
    Vishay Power Metal <b class='flag-5'>Strip</b>?電阻器技術(shù)解析與應(yīng)用指南

    Vishay WSLF3222 Power Metal Strip? 電阻器技術(shù)解析與應(yīng)用指南

    Vishay WSLF3222 Power Metal Strip? 電阻器具有12W最大額定功率、 ±1%容差以及-65°C至+175°C工作溫度范圍。這些電阻器采用專有生產(chǎn)工藝制造,產(chǎn)生的電阻值
    的頭像 發(fā)表于 11-10 16:33 ?232次閱讀
    Vishay WSLF3222 Power Metal <b class='flag-5'>Strip</b>? 電阻器技術(shù)解析與應(yīng)用指南

    如何進(jìn)行聲音定位?

    文章主要介紹了如何利用一種簡(jiǎn)單的TDOA算法進(jìn)行聲音點(diǎn)位,并使用數(shù)據(jù)采集卡進(jìn)行聲音定位的實(shí)驗(yàn)。
    的頭像 發(fā)表于 09-23 15:47 ?996次閱讀
    如何進(jìn)行<b class='flag-5'>聲音</b>定位?

    蔚來天琴沉浸聲音響系統(tǒng)如何實(shí)現(xiàn)極致聽覺體驗(yàn)

    最近體驗(yàn)過全新ES8的潛在用戶、媒體朋友們,都對(duì)全新ES8的蔚來天琴沉浸聲音響系統(tǒng)贊不絕口,無論是聽音樂還是觀影,大家普遍的感受是:好聽,有質(zhì)感,而且極致沉浸。
    的頭像 發(fā)表于 09-22 11:45 ?967次閱讀

    瑞聲科技與英國音響品牌Naim Audio達(dá)成深度合作

    近期,AAC瑞聲科技(下文簡(jiǎn)稱為:AAC)與英國傳奇奢華音響品牌Naim Audio達(dá)成深度合作,共同為極氪汽車旗下最新豪華SUV極氪9X打造行業(yè)頂尖的“Naim殿堂之聲音響系統(tǒng)”。此次合作融合了
    的頭像 發(fā)表于 09-05 15:40 ?603次閱讀

    TPS54200 4.5V 至 28V 輸入電壓,同步降壓 LED 驅(qū)動(dòng)器技術(shù)手冊(cè)

    TPS54200和TPS54201器件是1.5A同步降壓?jiǎn)紊?b class='flag-5'>IR驅(qū)動(dòng)器,最大輸入電壓為28V。電流模式作提供快速瞬態(tài)響應(yīng)并簡(jiǎn)化環(huán)路穩(wěn)定。 TPS54200和TPS54201可用于驅(qū)動(dòng)單串或多
    的頭像 發(fā)表于 08-26 11:12 ?777次閱讀
    TPS54200 4.5V 至 28V 輸入電壓,同步降壓 <b class='flag-5'>LED</b> 驅(qū)動(dòng)器技術(shù)手冊(cè)

    ?TPS54200/TPS54201同步降壓LED驅(qū)動(dòng)器數(shù)據(jù)手冊(cè)總結(jié)

    TPS54200和TPS54201器件是1.5A同步降壓?jiǎn)紊?b class='flag-5'>IR驅(qū)動(dòng)器,最大輸入電壓為28V。電流模式作提供快速瞬態(tài)響應(yīng)并簡(jiǎn)化環(huán)路穩(wěn)定。 TPS54200和TPS54201可用于驅(qū)動(dòng)單串或多串單色或紅外 (IR
    的頭像 發(fā)表于 08-26 10:30 ?972次閱讀
    ?TPS54200/TPS54201同步降壓<b class='flag-5'>LED</b>驅(qū)動(dòng)器數(shù)據(jù)手冊(cè)總結(jié)

    微碩WINSOK場(chǎng)效應(yīng)管新品 助力戶外音響性能升級(jí)

    戶外音響是專為室外環(huán)境設(shè)計(jì)的音頻擴(kuò)聲系統(tǒng),需滿足?高功率輸出?、?環(huán)境適應(yīng)性?和?便攜性?三大核心要求?。與室內(nèi)音響相比,其設(shè)計(jì)重點(diǎn)在于克服開放空間的聲音擴(kuò)散和復(fù)雜環(huán)境干擾。而微碩WINSOK高性能
    的頭像 發(fā)表于 08-22 17:15 ?963次閱讀
    微碩WINSOK場(chǎng)效應(yīng)管新品 助力戶外<b class='flag-5'>音響</b>性能升級(jí)

    聲源定位模塊-AR1105# 聲源定位# 聲音定位

    聲音降噪
    深圳市聲訊電子有限公司
    發(fā)布于 :2025年08月01日 16:01:09

    零知開源——玩轉(zhuǎn)WS2812B燈條模塊

    ,因?yàn)槟J(rèn)情況下條帶數(shù)據(jù)設(shè)置為所有LED關(guān)閉。 // strip.setBrightness(8); } void loop() { // 實(shí)現(xiàn)不同的燈光效果 colorWipe
    發(fā)表于 02-19 17:25

    RCA接口連接電視和音響的方法

    使用RCA接口連接電視和音響的方法相對(duì)簡(jiǎn)單,以下是詳細(xì)的步驟: 一、準(zhǔn)備工具和材料 RCA音頻線:這種線纜通常具有紅、白兩個(gè)插頭,紅色插頭用于傳輸右聲道音頻信號(hào),白色插頭用于傳輸左聲道音頻
    的頭像 發(fā)表于 02-17 15:39 ?4848次閱讀

    一個(gè)藍(lán)牙音響模式DIY過程遇到的困境

    春節(jié)回家過年,老丈人買了個(gè)藍(lán)牙音響,想要AUX接入樂器,同時(shí)打開藍(lán)牙模式,手機(jī)播放伴奏音樂。但這個(gè)音響只能單模式,要么AUX模式下,正常播放,切換到藍(lán)牙模式AUX就沒有任何聲音。 我拆機(jī)發(fā)現(xiàn),主板
    發(fā)表于 02-05 21:29

    6050 Ultimate Channel Strip介紹

    6050 Ultimate Channel Strip具備讓您的混音效果出色所需的一切。其中包含了屢獲殊榮的6020 Ultimate EQ和6030 Ultimate Compressor插件中
    的頭像 發(fā)表于 01-22 10:29 ?793次閱讀
    6050 Ultimate Channel <b class='flag-5'>Strip</b>介紹

    thd在音響系統(tǒng)中的影響

    音響系統(tǒng)中,音質(zhì)的純凈度和真實(shí)性是評(píng)價(jià)其性能的關(guān)鍵因素??傊C波失真(THD)是衡量音響設(shè)備放大信號(hào)時(shí)產(chǎn)生失真的一個(gè)指標(biāo),它直接影響到音響系統(tǒng)的音質(zhì)表現(xiàn)。 一、THD的定義和測(cè)量 THD的定義
    的頭像 發(fā)表于 01-03 17:06 ?3219次閱讀