B4X FEED Doorbell using I2C EEPROM

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Doorbell using I2C EEPROM است. این موضوع تا کنون 106 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Doorbell using I2C EEPROM
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
106
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,517
4,383
A doorbell for Arduino Uno or Nano interfacing EEPROM with I2C. The EEPROM 24C512 is 512Kbits and it can store up to 3 seconds wave file of 22.050KHz, 8 bits, mono.
The Arduino reads the ROM bytes in a sequential read mode and stream each byte to the PWM generator at a rate of 22 KHz. The I2C bus works at 200 KHz for the purpose of managing to process 22 Kbits per second. Changing the bus frequency changes the speed of the sound.
The transistors are a class D amplifier for driving the speaker, any replacement can be used.
The I2C 'wire' lib doesn't have a function for sequential read, so I added a routine in C. Seting the PWM to 64KHz is also in C.
To load sound file to the eeprom do this:
  • Convert sound file to .wav PCM 22.050KHz, 8 bits, mono
  • Change the file name extension from wav to bin.
  • Load the bin file to the EEPROM Programmer, I used PICKIT2.

 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا