色哟哟视频在线观看-色哟哟视频在线-色哟哟欧美15最新在线-色哟哟免费在线观看-国产l精品国产亚洲区在线观看-国产l精品国产亚洲区久久

電子發燒友App

硬聲App

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示
電子發燒友網>電子資料下載>電子資料>Neko Punk合成器V2開源分享

Neko Punk合成器V2開源分享

2023-02-10 | zip | 0.11 MB | 次下載 | 免費

資料介紹

描述

大家好,歡迎回來,這是我的 Neko Punk Synth Version 2,它是以貓為主題的合成器,由 Arduino Nano 和 Mozzi 庫提供支持。

?

通過改變 5 個滑動罐的位置,Mozzi 可以產生更加復雜和有趣的咆哮、掃動和合唱聲音。這些聲音可以通過熟悉的合成單元(如振蕩器、延遲和濾波器)快速輕松地構建。

我幾周前制作的 Previous 版本是基于最初的 Atari Punk Console,最初是由Forrest Mims在1980 年制作的。它使用觸發單穩態設置的非穩態多諧振蕩器設置。通過組合這兩個設置,我們得到一個步進音發生器或一個 atari 朋克合成器。

pYYBAGK6XgOATledAAB8WaBT2Zo301.jpg

這很容易做,但我對它的結果不滿意。

一年前,我用 Mozzi Library 制作了一個類似的合成器,效果非常好,所以我想為什么不在 Neko Punk Synth 的 V2 中使用 Mozzi,為了讓事情變得超級酷,我使用了滑動罐,讓這個合成器具有了賽博朋克的感覺——看起來。

所需材料

這些是這個建筑中使用的東西-

阿杜諾納米

PAM8403 音頻放大器

PCBWAY提供的定制PCB

鋰離子 5V 升壓模塊

3.7V 鋰離子電池

3D 打印外殼

4歐喇叭

滑塊盆

電路設計

V2 PCB 可能是我做過的最簡單的電路板。

它使用 Arduino Nano 作為基礎微控制器,五個滑塊盆與 Arduino nano 連接。

poYBAGK6XguAfJ3fAAFca0yEPSg323.jpg

D9 進入 PAM8403 音頻放大器模塊的輸入端,PAM8403 的輸出端與兩個 CON2 引腳相連,因此我們可以用它添加揚聲器。

整個設置需要 5V 才能工作。

要為這個設置供電,我必須使用你可以在網上找到的這個鋰離子電池升壓模塊,這些模塊非常便宜而且工作得很好。

1 / 2

它將 3.7V 的鋰離子電池升壓至恒定的 5V 1A 或 2A,以便我們的 MCU 設置正常工作。

我在我的 OrCad PCB 套件中準備了 PCB,并添加了一些圖形以增加電路板的美感。

從 PCBWAY 獲取電路板

我在這個項目中使用了 PCBWAY PCB 服務。我在PCBWAY的報價頁面上傳了這個項目的Gerber文件。

對于這個 Synth 板,我選擇了白色阻焊層顏色,因為我在板的頂部添加了很多圓形圖形和自定義藝術。

黑色絲印搭配白色阻焊顏色看起來很棒。

我在一周內收到了 PCB,PCB 質量非常好,這個 PCB 很大,我喜歡這些 PCB 的質量沒有因為尺寸而受到影響。

印刷電路板組裝

現在這塊板沒有任何 SMD Componenets 所以我們只需要手動將所有東西放在這塊板上并用烙鐵焊接它們。

我首先收集所有材料并開始使用滑動電位器進行組裝。

然后我將所有的 Pot 從頂部放在它們的位置,并從 PCB 的底部焊接它們的焊盤。

在此之后,我在它們的位置添加了 Arduino Nano 和 PAM8403 模塊,組裝就差不多完成了。

上傳代碼

這是基于 Mozzi 庫的項目的主要草圖。

?

/* 
  Example using 2 light dependent resistors (LDRs) to change 
  FM synthesis parameters, and a knob for fundamental frequency,
  using Mozzi sonification library.

  Demonstrates analog input, audio and control oscillators, phase modulation
  and smoothing a control signal at audio rate to avoid clicks.
  Also demonstrates AutoMap, which maps unpredictable inputs to a set range.
  
  This example goes with a tutorial on the Mozzi site:
  http://sensorium.github.io/Mozzi/learn/Mozzi_Introductory_Tutorial.pdf
  
  The circuit:
     Audio output on digital pin 9 (on a Uno or similar), or 
     check the README or http://sensorium.github.com/Mozzi/

     Potentiometer connected to analog pin 0.
       Center pin of the potentiometer goes to the analog pin.
       Side pins of the potentiometer go to +5V and ground
  
     Light dependent resistor (LDR) and 5.1k resistor on analog pin 1:
       LDR from analog pin to +5V
       5.1k resistor from analog pin to ground
     
     Light dependent resistor (LDR) and 5.1k resistor on analog pin 2:
       LDR from analog pin to +5V
       5.1k resistor from analog pin to ground
  
  Mozzi help/discussion/announcements:
  https://groups.google.com/forum/#!forum/mozzi-users

  Tim Barrass 2013.
  This example code is in the public domain.
*/

#include 
#include  // oscillator 
#include  // table for Oscils to play
#include 
#include  // maps unpredictable inputs to a range
 
// int freqVal;
 
// desired carrier frequency max and min, for AutoMap
const int MIN_CARRIER_FREQ = 22;
const int MAX_CARRIER_FREQ = 440;

const int MIN = 1;
const int MAX = 10;

const int MIN_2 = 1;
const int MAX_2 = 15;

// desired intensity max and min, for AutoMap, note they're inverted for reverse dynamics
const int MIN_INTENSITY = 700;
const int MAX_INTENSITY = 10;

// desired mod speed max and min, for AutoMap, note they're inverted for reverse dynamics
const int MIN_MOD_SPEED = 10000;
const int MAX_MOD_SPEED = 1;

AutoMap kMapCarrierFreq(0,1023,MIN_CARRIER_FREQ,MAX_CARRIER_FREQ);
AutoMap kMapIntensity(0,1023,MIN_INTENSITY,MAX_INTENSITY);
AutoMap kMapModSpeed(0,1023,MIN_MOD_SPEED,MAX_MOD_SPEED);
AutoMap mapThis(0,1023,MIN,MAX);
AutoMap mapThisToo(0,1023,MIN_2,MAX_2);

const int KNOB_PIN = 0; // set the input for the knob to analog pin 0
const int LDR1_PIN=1; // set the analog input for fm_intensity to pin 1
const int LDR2_PIN=2; // set the analog input for mod rate to pin 2
const int LDR3_PIN=4;
const int LDR4_PIN=3;

Oscil aCarrier(COS2048_DATA);
Oscil aModulator(COS2048_DATA);
Oscil kIntensityMod(COS2048_DATA);

int mod_ratio = 5; // brightness (harmonics)
long fm_intensity; // carries control info from updateControl to updateAudio

// smoothing for intensity to remove clicks on transitions
float smoothness = 0.95f;
Smooth  aSmoothIntensity(smoothness);


void setup(){
//  Serial.begin(115200); // set up the Serial output so we can look at the light level
  startMozzi(); // :))
}


void updateControl(){
  
//  freqVal = map(LDR3_PIN, 0, 1023, 1, 100);
  
   int freqVal = mozziAnalogRead(LDR3_PIN); // value is 0-1023
   int FRQ = mapThis(freqVal);
   
   int knob2 = mozziAnalogRead(LDR4_PIN); // value is 0-1023
   int knob2Val = mapThis(knob2);
  
  // read the knob
  int knob_value = mozziAnalogRead(KNOB_PIN); // value is 0-1023
  
  // map the knob to carrier frequency
  int carrier_freq = kMapCarrierFreq(knob_value);
  
  //calculate the modulation frequency to stay in ratio
  int mod_freq = carrier_freq * mod_ratio * FRQ;
  
  // set the FM oscillator frequencies
  aCarrier.setFreq(carrier_freq); 
  aModulator.setFreq(mod_freq);
  
  // read the light dependent resistor on the width Analog input pin
  int LDR1_value= mozziAnalogRead(LDR1_PIN); // value is 0-1023
  // print the value to the Serial monitor for debugging
  //Serial.print("LDR1 = "); 
 // Serial.print(LDR1_value);
 // Serial.print("\t"); // prints a tab

  int LDR1_calibrated = kMapIntensity(LDR1_value);
 // Serial.print("LDR1_calibrated = ");
 // Serial.print(LDR1_calibrated);
//  Serial.print("\t"); // prints a tab
  
 // calculate the fm_intensity
  fm_intensity = ((long)LDR1_calibrated * knob2Val * (kIntensityMod.next()+128))>>8; // shift back to range after 8 bit multiply
//  Serial.print("fm_intensity = ");
 // Serial.print(fm_intensity);
//  Serial.print("\t"); // prints a tab
  
  // read the light dependent resistor on the speed Analog input pin
  int LDR2_value= mozziAnalogRead(LDR2_PIN); // value is 0-1023
//  Serial.print("LDR2 = "); 
//  Serial.print(LDR2_value);
//  Serial.print("\t"); // prints a tab
  
  // use a float here for low frequencies
  float mod_speed = (float)kMapModSpeed(LDR2_value)/1000;
  //Serial.print("   mod_speed = ");
 // Serial.print(mod_speed);
  kIntensityMod.setFreq(mod_speed);
  
 // Serial.println(); // finally, print a carraige return for the next line of debugging info
}


int updateAudio(){
  long modulation = aSmoothIntensity.next(fm_intensity) * aModulator.next();
  return aCarrier.phMod(modulation);
}


void loop(){
  audioHook();
}

?

代碼很長,但基本上,它在 Mozzi 庫上運行,無需額外的屏蔽、消息傳遞或外部合成器即可生成算法音樂。這個庫有很好的文檔記錄,所以你可以從這里查看并下載它。在上傳這個草圖之前安裝這個庫。

https://sensorium.github.io/Mozzi/

?

const int KNOB_PIN = 0; // set the input for the knob to analog pin 0
const int LDR1_PIN=1; // set the analog input for fm_intensity to pin 1
const int LDR2_PIN=2; // set the analog input for mod rate to pin 2
const int LDR3_PIN=4;
const int LDR4_PIN=3;

?

POT 連接在 A0、A1、A2、A3、A4 上,音頻輸出為 D9。

測試

現在上傳草圖后,我添加了一個 4ohm 揚聲器和 PAM8403 模塊的 CON2。

為了暫時為這個設置供電,我使用了一個移動電源為 Arduino Nano 提供 5V 2A。

要調制聲音,我們只需更改所有 5 個滑動罐的位置,這幾乎就是整個測試過程。

接下來,我們進入最后的組裝過程。

3D 打印外殼

至于 Body of the Synth,我們通常使用類似盒子的外殼來容納揚聲器和電子設備。

我的想法是在正面制作一張貓臉,讓它看起來像一只 BOX CAT,我在正面添加了貓的面部特征,如胡須、鼻子和眼睛。

我在 fusion360 中對身體建模,然后在我的 ender 3 上 3D 打印每個部分。

我用橙色 PLA 準備了主體,用黑色 PLA 準備了瞳孔、眉毛、胡須和鼻子,用白色 PLA 準備了眼睛。

打印設置也很正常,我使用了一個 0.8mm 的噴嘴,層高為 0.32mm,填充率為 20%,并為基體提供了支撐。

打印完所有部件后,我用強力膠將所有面部部件連接到基體上。

最后組裝

現在我們開始主要組裝,首先添加我們用螺母和螺栓將揚聲器添加到底座上。

接下來,我將 DC 插孔和翹板開關添加到基體中。

然后我們將 Lithium Boost 模塊與 DC 插孔和開關連接起來。

然后我把所有的東西都放在身體里,用一些 M2 螺絲從底部添加主 PCB,組裝就完成了。

結果

要打開此設置,我們只需按下翹板開關并更改滑動罐位置即可調制聲音。

感謝您閱讀這篇文章,我很快就會帶著另一個項目回來。

和平

?

下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評論

查看更多

下載排行

本周

  1. 1山景DSP芯片AP8248A2數據手冊
  2. 1.06 MB  |  532次下載  |  免費
  3. 2RK3399完整板原理圖(支持平板,盒子VR)
  4. 3.28 MB  |  339次下載  |  免費
  5. 3TC358743XBG評估板參考手冊
  6. 1.36 MB  |  330次下載  |  免費
  7. 4DFM軟件使用教程
  8. 0.84 MB  |  295次下載  |  免費
  9. 5元宇宙深度解析—未來的未來-風口還是泡沫
  10. 6.40 MB  |  227次下載  |  免費
  11. 6迪文DGUS開發指南
  12. 31.67 MB  |  194次下載  |  免費
  13. 7元宇宙底層硬件系列報告
  14. 13.42 MB  |  182次下載  |  免費
  15. 8FP5207XR-G1中文應用手冊
  16. 1.09 MB  |  178次下載  |  免費

本月

  1. 1OrCAD10.5下載OrCAD10.5中文版軟件
  2. 0.00 MB  |  234315次下載  |  免費
  3. 2555集成電路應用800例(新編版)
  4. 0.00 MB  |  33566次下載  |  免費
  5. 3接口電路圖大全
  6. 未知  |  30323次下載  |  免費
  7. 4開關電源設計實例指南
  8. 未知  |  21549次下載  |  免費
  9. 5電氣工程師手冊免費下載(新編第二版pdf電子書)
  10. 0.00 MB  |  15349次下載  |  免費
  11. 6數字電路基礎pdf(下載)
  12. 未知  |  13750次下載  |  免費
  13. 7電子制作實例集錦 下載
  14. 未知  |  8113次下載  |  免費
  15. 8《LED驅動電路設計》 溫德爾著
  16. 0.00 MB  |  6656次下載  |  免費

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935054次下載  |  免費
  3. 2protel99se軟件下載(可英文版轉中文版)
  4. 78.1 MB  |  537798次下載  |  免費
  5. 3MATLAB 7.1 下載 (含軟件介紹)
  6. 未知  |  420027次下載  |  免費
  7. 4OrCAD10.5下載OrCAD10.5中文版軟件
  8. 0.00 MB  |  234315次下載  |  免費
  9. 5Altium DXP2002下載入口
  10. 未知  |  233046次下載  |  免費
  11. 6電路仿真軟件multisim 10.0免費下載
  12. 340992  |  191187次下載  |  免費
  13. 7十天學會AVR單片機與C語言視頻教程 下載
  14. 158M  |  183279次下載  |  免費
  15. 8proe5.0野火版下載(中文版免費下載)
  16. 未知  |  138040次下載  |  免費
主站蜘蛛池模板: 校园高h肉耽文 | 18video性欧美19sex高清 | 老师的快感电影完整版 | 2019中文字幕乱码免费 | 永久免费看bbb | 国产精品观看视频免费完整版 | 被老头下药玩好爽 | 久久re这里精品在线视频7 | 99久久久无码国产精精品 | 青青草在线 视频 | 色噜噜狠狠色综合中文字幕 | 夫妻性姿势真人做视频 | 国产97精品久久久天天A片 | 24小时日本在线电影 | 一个人在线观看免费高清视频 | 接吻吃胸摸下面啪啪教程 | 小小水蜜桃视频高清在线观看免费 | 丰满人妻按磨HD | 久久囯产精品777蜜桃传媒 | 精品高清国产a毛片 | 中文有码中文字幕免费视频 | 男女交性视频无遮挡全过程 | 捆绑白丝粉色JK震动捧喷白浆 | 亚洲精品一二三区-久久 | 三级黃60分钟 | 99久久免费精品国产免费 | 亚洲国产精品久久无套麻豆 | 我半夜摸妺妺的奶C了她软件 | 日本久久久免费高清 | 日本亚洲欧洲免费旡码 | 国产制服丝袜91在线 | 欧美高跟镣铐bdsm视频 | 久久极品视频 | 久久99综合国产精品亚洲首页 | 国产成人在线视频网站 | 亚洲 日韩 在线 国产 精品 | 日本高清在线一区二区三区 | 国产午夜福利伦理300 | 草民电影网午夜伦理电影网 | 亚洲精品国产SUV | 粗暴玩烂货调教 |