من به تازگی دومین پروژه آردوینو خود را به پایان رسانده ام، یک آشکارساز سطح صدا که زمانی که سطح صدا برای مدت طولانی زیاد است، "زنگ هشدار" را به صدا در می آورد. من آن را برای استفاده در مدرسهای ساختهام که میخواهد در زمانی که دانشآموزان خیلی بلند هستند، بازخورد بصری ارائه کند. "زنگ" رشته ای از LED های چشمک زن است که توسط یک کنترل از راه دور IR کنترل می شود، که من با استفاده از خود آردوینو و کتابخانه عالی IRremote آن را مهندسی معکوس کردم تا بفهمم کدام کدها رشته LED را فعال می کنند. کتابخانه IRremote شامل مثالی است که کدها و انواع کدهایی را که معمولاً ریموت ها استفاده می کنند، حذف می کند. بنابراین من فقط آن مثال را با آردوینو خود اجرا کردم که به یک آشکارساز IR از adafruit متصل است . انجام آن واقعاً بسیار آسان بود.
این یک پروژه سرگرم کننده بود زیرا کاملاً انعطاف پذیر و قابل تنظیم است. در اینجا یک ویدیو کوتاه از محصول نهایی است:
برای هر کسی که می خواهد یکی از اینها را بسازد، در اینجا یک نمودار تخته نان است که من با استفاده از بسته بسیار جالب فریتزینگ ساخته ام :
طرح Adruino که این را تقویت می کند در github موجود است .
در اینجا برخی از جزئیات در مورد مدار است. آشکارساز صدا بر اساس برد ZX-Sound است . در اینجا یک پست خوب در سایت arduino.cc است که من از آن به عنوان محل شروع خود برای ساخت بخش صوتی این برد استفاده کردم. این ویدئو به طور مفید شامل لیست قطعاتی است که من از Allied electronics تهیه کرده ام ، همه به جز میکروفون. ال سی دی 10 دلار 16×2 از Adafruit است ( آموزش سیم کشی آن عالی بود)، و من از میکروفون الکترت آنها نیز استفاده کردم . یک نکته در مورد میکروفون این است که قطبیت آن مهم است. اگر آن را به عقب وارد کنید، حساسیت آن بسیار کمتر است. من این را کاملاً تصادفی فهمیدم! من همچنین از IR LED آنها استفاده کردم .
این هم چند عکس از مونتاژ پروژه.
ابتدا مرحله نمونه سازی:
Arduino Uno: https://www.adafruit.com/products/50 (29.95 دلار) محفظه Makershed Arduino: http://www.makershed.com/Clear_Enclosure_for_Arduino_p/mkad40.htm (15.00 دلار) منبع تغذیه 9 ولت: https://www.adafruit.com/products/63 (6.95 دلار) پتانسیومتر 100K: Radioshack (1.69 دلار) سوئیچ دکمه ای: Radioshack (99 دلار) برد برد برد مدار چاپی: https://www.adafruit.com/products/589 (3.00 دلار) میکروفن Electret: https://www.adafruit.com/products/1064 (1.50 دلار) IR LED: https://www.adafruit.com/products/387 (75 دلار) LCD 2×16: https://www.adafruit.com/products/181 (9.95 دلار) اجزاء: (~5 دلار) قیمت کل: 70 دلار
برای جزئیات بیشتر: هشدار صوتی برد آردوینو
در ادامه، متن انگلیسی این مطلب را میتوانید مشاهده نمایید:
I’ve just completed my second Arduino project, a sound level detector which sets off an “alarm” when there’s the sound level is to high for too long. I built it for use in a school that wants to provide visual feedback to students when they are being too loud. The “alarm” is a string of flashing LEDs that’s controlled by an IR-remote, which I reverse engineered using the the arduino itself and the excellent IRremote library to figure out which codes activate the LED string. The IRremote library includes an example that dumps the codes and code types that remotes typically use. So I just ran that example with my arduino hooked up to an IR detector from adafruit. It was really quite easy to do.
It’s been a fun project because it’s quite flexible and configurable. Here’s a short video of the finished product:
For anyone who wants to build one of these here’s a bread-board diagram that I made using the very cool Fritzing package:
The Adruino sketch that powers this is available on github.
Here are some details on the circuitry. The sound detector is based on the ZX-Sound board. Here’s a nice post on the arduino.cc site that I used as my starting place for building the sound part of this board. The video helpfully includes a parts list which I sourced from Allied electronics, all except for the mic. The LCD is the $10 16×2 from Adafruit (their tutorial on wiring it up was great), and I also used their electret microphone. One note about the microphone is that it’s polarity matters. If you get it in backwards, it’s much less sensitive. I found this out purely by accident! I also used their IR LED.
Here are some photos of assembling the project.
First the prototyping phase:
Arduino Uno: https://www.adafruit.com/products/50 ($29.95)
Makershed Arduino Enclosure: http://www.makershed.com/Clear_Enclosure_for_Arduino_p/mkad40.htm ($15.00)
9V powersupply: https://www.adafruit.com/products/63 ($6.95)
100K Potentiometer: Radioshack ($1.69)
pushbutton switch: Radioshack ($.99)
Breadboard PCB: https://www.adafruit.com/products/589 ($3.00)
Electret Mic: https://www.adafruit.com/products/1064 ($1.50)
IR LED: https://www.adafruit.com/products/387 ($.75)
LCD 2×16: https://www.adafruit.com/products/181 ($9.95)
Components: (~$5)
- resistors: 1k ohm x 2; 100k ohm x 2; 12 ohm; 39k ohm; 22k ohm; 230 ohm (for IR led)
- capacitors: 470uf 16v; 0.1uf 50v; 22uf 25v
- Dual op amp IC: TLC272
Total Price: ~$70
For more detail: Arduino Board Sound Alarm
[/membership]