DIY Voice Reminder Device ⋆ Circuit & Code Explained ⋆ Tech is so Cool!


Aliyense ayenera kukumbutsidwa chinachake nthawi ndi nthawi. Chilimwe chafika ndipo kukutentha! Ndikofunikira kwambiri nthawi ino ya chaka kumwa madzi okwanira, mwachitsanzo. Kapena mwina mukufuna kukumbutsidwa kuti muimirire pa desiki yanu (kapena khalani pansi ngati muli ndi a imirira desk) kwa mphindi zingapo ola lililonse. Kwa ena n’kosavuta kulowa ‘m’dera’ kuchita chinachake ndi kuiwala. Kwa ena, n’zosavuta kuiwala zinthu.

Chikumbutso cha nthawi ndi nthawi chingakhale chothandiza pazochitika ngati izi. Ndapanga chipangizo chosavuta komanso chotsika mtengo chokumbutsa mawu cha DIY chomwe aliyense wokonda zamagetsi atha kudzipangira yekha. Ndimajambulitsa chikumbutso chachidule cha mawu, ndipo chimandiyimbanso nyimboyo pa ndandanda yomwe ndasankha.

Chipangizo cha DIY Voice Reminder chili ndi midadada itatu:

  • Chojambulira mawu / gawo losewerera kutengera ISD 1820 IC
  • Chowongolera micrco kuti muyambitse kuseweredwa kwa chikumbutso cha mawu pa ndandanda yokonzedweratu
  • Mphamvu ya 5VDC

Mukhoza kuwonjezera wokamba nkhani ngati mukufuna. Chojambulira mawu / gawo losewerera lomwe ndidagwiritsa ntchito lili ndi cholumikizira chowonjezera cha choyankhulira, komanso chotulutsa chamtundu wa jack. Sindinakhutitsidwe ndi zotsatira zomwe ndimapeza kuchokera pamalumikizidwe a sipika okulitsa. Ndinaganiza zogwiritsa ntchito jackphone yam’mutu ndikuyilumikiza ndi ma speaker owonjezera a PC omwe ndinali nditagona. Ubwino wake ndi wabwino.

Voice Recorder / Player

Pali opanga ambiri osiyanasiyana ma module awa, ndipo ali ofanana. Ndinagula izi gawo lojambulira mawu kuchokera ku DF Robot. Zomwe ndikugwiritsa ntchito ndi:

  • Maikolofoni yomangidwa mkati mwa PCB
  • The Record batani
  • Cholumikizira chokhala ndi Playback logic control, mphamvu, ndi zolumikizira pansi.
  • Cholumikizira chojambulira chojambulira cha mini-jack
DFRobot ISD1820-Based Voice Recorder / Playback Module

Micrcocontroller

Poyamba ndidawonetsa izi ndi Arduino Nano. Ndizosavuta kwambiri, zonse zidayenda bwino. Nano ndizovuta kwambiri pantchito iyi. Ndinkafuna kuchepetsa (ndi kusunga Nano yanga kuti ikhale yovuta kwambiri) Woyang’anira ma microcontroller amayenera kuyika chizindikiro cha Playback pamwamba, kuigwira kwa mphindi imodzi, kenako ndikuyiyikanso pansi, ndikudikirira nthawi iliyonse yomwe ndingayikonzere, ndikubwereza. . Zimangofunika pini imodzi ya I/O yokha. Chifukwa chake ndidapita kukayang’ana kaching’ono kakang’ono komwe ndikanapeza, Zithunzi za ATtiny85. Ili ndi ma pin 8. Ndikufuna mapini ambiri kuti ndikonzere kuposa momwe ndimachitira kuti ndigwiritse ntchito polojekitiyi.

DIY Voice Chikumbutso Chipangizo chimagwiritsa ntchito ATtiny85DIY Voice Chikumbutso Chipangizo chimagwiritsa ntchito ATtiny85
ATtiny85-20PU Microcontroller

Chimodzi mwazofunikira za mndandanda wa ATtiny wa pulojekitiyi ndikuti mutha kugwiritsa ntchito Arduino IDE yanu polemba, kenako gwiritsani ntchito Arduino yanu ngati pulogalamu kuti muyike khodi yanu mu ATtiny. Ngati muli ndi Arduino IDE (yomwe ndi yaulere), ndi Arduino iliyonse, muli ndi zonse zomwe mungafune kugwiritsa ntchito mndandanda wa ATtiny. Palibe chifukwa chogula zida zambiri zachitukuko.

Magetsi

Chojambulira mawu / gawo losewera limafuna 5 volts DC. ATtiny ndi wokondwa ndi 3.3 kapena 5 volts mpaka 10MHz, pamwamba pake pamafunika 5 volts. Chifukwa chake zimawoneka kuti 5 volt imodzi yokha ndi yabwino kwa onse awiri.

Ndidatengera chipangizo chokumbutsa mawu cha DIY pogwiritsa ntchito batire ya 9 volt ndi imodzi mwa otembenuza ndalama izi. Ine kwambiri amalangiza kukhala ndi ochepa awa tonde converters pa dzanja. Ndiosavuta kugwiritsa ntchito kuti muyambenso kugwira ntchito pomwe simukufuna kuyang’ana pakupanga magetsi. Ingogulitsani batire la 9v pazolowetsa ndikulumikiza batire. Ikani ma volt mita yanu ya DC pazotulutsa, ndikutembenuza potentiometer mpaka mutatulutsa mphamvu yomwe mukufuna, 5 volts pankhaniyi. Kwenikweni, pezani paketi 6 mwa izi:

Batire la 9 volt lidangopitilira tsiku limodzi, ndipo sikunali kotheka, kotero ndidayang’ana yankho lokhazikika. Komanso, ine ndinkafuna wanga ndalama Converter kubwerera.

Ndidapulumutsa thiransifoma ya AC muwayilesi ya wotchi yomwe imalumikizana mwachindunji ndi 120VAC ndikutulutsa 7.5 VAC. Ndimadutsa chizindikirocho kudzera pa 1N4004’s yokonzanso mlatho wathunthu kuti ndikonze, ndikuyendetsa zotulukazo kudzera pa LM7805 5 volt regulator kuti ndipeze 5 volt yanga.

Ndayang’ana kulikonse kuti ndipeze ulalo kapena zofananira za thiransifoma iyi kuti ndigawane ndipo sindinaipeze. Chifukwa chake ndapeza njira yabwinoko yomwe mungagwiritse ntchito: ingopezani zosavuta 5 Volt khoma adapter. Izi zikutanthauza kuti mutha kungogula cholumikizira chokwerera, ndipo osafunikira chowongolera kapena chowongolera magetsi.

Kotero pali njira zitatu za mphamvu. Komabe mumachita izi, pezani ma volts 5 oyendetsedwa bwino mwina 500mA kapena kuposa. ATtiny85 idzangogwiritsa ntchito pafupifupi 6mA pa 10MHz ndi 5 volt supply, koma gawo la chojambulira mawu lidzafunika zambiri, makamaka poyendetsa okamba.

DIY Voice Chikumbutso Chipangizo Schematic

Malumikizidwewo ndi olunjika. Pini imodzi ya I/O pa microcontroller iyenera kulumikizana ndi chojambulira mawu/module yosewera. Osagwiritsa ntchito pini ya RESET, malinga ndi deta, ndi pini yofooka ya I/O.

Ndinagwiritsa ntchito pin 3, yomwe ili PB4 pa ATtiny. Mukakonza ATtiny, piniyo sigwiritsidwa ntchito. Mwanjira imeneyi nditha kukhala ndi ATtiny mudera ndikuyikonza ndipo gawo lowongolera mawu silingasokoneze. N’chimodzimodzinso ndi pin 2 yomwe ili PB4.

DIY Voice Chikumbutso Chipangizo SchematicDIY Voice Chikumbutso Chipangizo Schematic
DIY Voice Chikumbutso Chipangizo Schematic

Kuphatikiza pa mphamvu zamagetsi, microcontroller, ndi cholumikizira cha module yojambulira mawu, ndinawonjezera zinthu zina ziwiri ku schematic. Choyamba ndi kugwirizana kwa mapulogalamu. Ndizofanana ndi ntchito yolumikizira ICSP pama board a Arduino. Cholumikizira chimapereka njira yokonzera ATtiny m’malo mwake.

Chinthu chachiwiri ndi waya ndi pushbutton kufanana ndi Record batani pa chojambulira mawu. Chojambulira mawu chili ndi mabatani awiri: Kusewera ndi Record. Ntchito Yosewera imakonzedweratu ku cholumikizira pa module, microcontroller imayendetsa chizindikiro chimenecho. Batani lojambulira lilibe mwayi wopezeka kupatula kukankhira batani, lomwe ndimafuna kutsekereza pamlandu. Batani la Record limangolumikiza pini ya IDS 1820 IC kupita ku Vcc kudzera pa chokokera mmwamba. Ndikufuna kufananiza batani ndi batani langa lomwe nditha kuyika pagawo lamilandu yanga kuti ndizitha kujambula mauthenga atsopano mu chipangizo chokumbutsa mawu cha DIY. Ndiwo waya wowonjezera ndi batani lakukankhira lomwe mukuwona pa schematic. Ndiyika chobowo kapena bowo pachombocho pamwamba pa maikolofoni yomangidwira mu module kuti nditsirize kuthekera kojambulitsanso chikumbutso.

DIY Voice Chikumbutso Chipangizo Code

Monga ndanenera pamwambapa, code ndi yosavuta kwambiri. Nthawi iliyonse microcontroller imagwira mzere wa Playback pamwamba kwa sekondi imodzi module imasewera uthenga womwe unajambulidwa kale. Ndinatchula pini yomwe imapanga TRIGGER, ndipo ndimakhala pamwamba kwa masekondi 1.2 kuti nditetezeke. Ndimatanthauzira INTERVAL, yomwe ndi mphindi zingati zomwe chipangizocho chidzadikirira pakati pa zoyambitsa.

#define TRIGGER 4     //The port B logical pin connected to playback
#define INTERVAL 15     //How many minutes to wait between reminders
void setup() {
    //Set the trigger up as an output
    pinMode(TRIGGER, OUTPUT);
    //Get the pin into some known initial state
    digitalWrite(TRIGGER,0);
}

void loop() {
  //Trigger first, or you'll wait 15 minutes to know if it's working
  digitalWrite(TRIGGER, 1);
  //Wait for the duration of the trigger pulse
  delay(1200);
  //Write the pin low again
  digitalWrite(TRIGGER,0);
  //Wait for INTERVAL minutes
  delayMinutes(INTERVAL);      
}

void delayMinutes(int mins){
  int i = 0;
  int j = 0;
  for(j=0; j<mins; j++){   //mins minutes
    for(i=0; i < 60; i++){   //one minute
      delay(1000);   //one second
    }

Kuchita uku ndikokwanira ngakhale kwa ATtiny yaying’ono, ndipo kunena zoona ndimadzimva wolakwa pogwiritsa ntchito mphamvu zonse zomwe ali nazo kuti achite ntchito yosavuta iyi. Ndimangodzikumbutsa kuti ndi mapini 8 okha ndipo ndi otsika mtengo, kotero sindikuwononga kwambiri.

Kodi Izi Zimayitaniranso Microcontroller?

Ndikudziwa zomwe mukuganiza tsopano: “Nditha kuchita izi ndi 555 timer yokhazikitsidwa ngati multivibrator yokhazikika!”, sichoncho? Ndipo inu mukhoza kukhala wolondola. Ndinayamba kupanga izi ndi 555 timer m’malo mwa microcontroller. Vuto lomwe ndidakumana nalo ndilakuti pamayendedwe otsika kwambiri, ngati sekondi imodzi mphindi 15 zilizonse, kudalirana kwa zinthu zomwe zimafunikira kumapangitsa masinthidwe osatheka. Ndinagwiritsa ntchito chosavuta 555 chowerengera chokhazikika pa Ohms Law Calculator kuti mumvetse. Nazi zomwe ndidamaliza nazo:

DIY Voice Chikumbutso Chipangizo Kugwiritsa 555 Timer ngati ChoyambitsaDIY Voice Chikumbutso Chipangizo Kugwiritsa 555 Timer ngati Choyambitsa
555 Makhalidwe pafupifupi 1.5 masekondi yogwira chizindikiro pa mphindi 15

Ndidapanga chigawocho ndikulumikiza zomwe zidatuluka (pogwiritsa ntchito transistor circuit kutembenuza malingaliro), ndipo sizinayambitse kuseweredwa kwa mawu, sindinadziwe chifukwa chake. Zomwe ndikuganiza ndizakuti 4M ndi 4.7K resistor values ​​ndizotalikirana kwambiri kotero kuti dera silingathe kuchita zomwe likufuna kuchita. Kusaleza mtima kunapambana ndipo ndinaganiza zothetsa izo mu code m’malo mwake. Ngati muli ndi vuto, ndiwonetseni izi zikugwira ntchito ndi 555 timer. Ndikupatsani positi yanu patsamba lino kuti mudzitamande.

Kukonza ATtiny kuchokera ku Arduino

Gawo ili palokha ndi mutu wa positi yonse. Ndipo pali zolemba zingapo kunja uko zomwe zimafotokoza kale momwe angachitire izi. Sindikufuna kungotengera zomwe wina walemba. Ndili ndi phindu lowonjezera ku ndondomekoyi. Ndikangolemba izi ndikuzilemba, ndikulumikiza apa. Pakadali pano, dziwani kuti mutha kukonza ATtiny kuchokera ku Arduino IDE, pogwiritsa ntchito Arduino yomwe mwagona ngati wopanga mapulogalamu.

  • Muyenera kuwonjezera chithandizo cha ATtiny ku Arduino IDE
  • Mumapanga maulumikizidwe oyenera kuchokera ku Arduino the ATtiny – mutha kugwiritsa ntchito zikhomo zilizonse za digito za I / O pa Arduino kuti mulumikizane ndi zikhomo za ATtiny zomwe ndikuwonetsa zolumikizidwa ndi cholumikizira cha ISP / PDI mu schematic pamwambapa.
  • Pogwiritsa ntchito Arduino ngati chojambula cha ISP, mumatanthauzira zikhomo zanu ndikuyika bootloader ya ATtiny ISP ku Arduino yanu.
  • Kenako mumayika khodi yanu ku ATtiny kudzera pa Arduino

The Arduino Project Hub ili ndi zolembedwa panjira ya Kupanga ATtiny85 pogwiritsa ntchito Arduino Uno. Ndinagwiritsa ntchito Arduino Mega2560 kutsatira phunziro ili pa Instructables. Palinso Instructionable kwa Duemilanove ndi wina kwa Nano.

The Build

Ndinapanga dera pa a prototype PCB kuchokera pagululi. Ichi ndi chinthu china chothandiza kukhala nacho. Mukafika pulojekiti yomwe bokosi la mkate ndi laling’ono kwambiri, ndipo simunadzipereke kuti mwakonzeka kupanga ma PCB, ma PCB awa ndi omwe mukufunikira.

Ndidagwiritsa ntchito soketi yachikazi ya 2 × 3 polumikizana ndi ISP/PDI kuti nditha kugwiritsa ntchito mawaya a boardboard kulumikiza Arduino ngati wopanga mapulogalamu. Nthawi zonse gwiritsani ntchito socket ya DIP pa ma IC. Ndidagwiritsa ntchito imodzi ya ATtiny kuti ichotsedwe ndikusinthidwa mwakufuna, komanso kuti mwina ndingayiphulitsa mwanjira ina. Mutu wosavuta umagwira ntchito kuti ugwirizane ndi gawo la mawu chifukwa uli ndi cholumikizira kale.

DIY Voice Chikumbutso Chipangizo CircuitDIY Voice Chikumbutso Chipangizo Circuit
DIY Voice Chikumbutso Chipangizo Circuit

Ndili ndi zidutswa zitatu zazikuluzikulu tsopano: chosinthira, chojambulira mawu / gawo losewera, ndi bolodi loyang’anira dera. Kuti ndigwirizanitse izi mu gawo limodzi logwirizana, ndinaganiza zopanga mpanda wanga womwe ndimakonda. Pali zambiri bokosi la polojekiti pa Amazon zomwe zili zoyenera ngati kudzipangira kwanu sikuli kwa inu. Ndikuyesera kuwongolera luso langa lamakina a CAD ndi chikoka changa pazomwe chosindikizira cha 3D chimapanga, ndiye iyi inali pulojekiti yabwino kuchita izi.

Ili ndi bokosi losavuta lomwe lili ndi zoimilira zomangira mabowo m’malo oyenera, ndikutsegula kwa chingwe chamagetsi, cholumikizira / chozimitsa, ndi chojambulira chamutu. Ndimayika ma indents m’munsi mwa m’mphepete mwa bokosilo kuti nditha kupanga chivundikiro chokhazikika chokhala ndi ma tabo kuti agwirizane ndi ma indents. Miyezo yakunja ya bokosilo ndi 3″ x 3.5 ″.

Nayi chosindikizira chenichenicho, ndi chilichonse chomwe chayikidwa.

DIY Voice Chikumbutso Chipangizo Pangani mu 3D Print CaseDIY Voice Chikumbutso Chipangizo Pangani mu 3D Print Case
DIY Voice Chikumbutso Chipangizo Pangani mu 3D Print Case

DIY Voice Chikumbutso Chipangizo Chochita Mndandanda

Ndikufunabe kuwonjezera dzenje la maikolofoni ndi batani lojambulira kuti ndizitha kusintha uthenga wojambulidwa m’tsogolomu. Zina zowonjezera zitha kukhala:

  • Kuonjezera mphamvu ya LED kungapereke chitsimikizo chabwino cha wogwiritsa ntchito kuti cholumikizidwa ndikugwira ntchito. Ngati ATtiny imayang’anira LED, ndikuying’anitsa kawiri pakukweza, zomwe zingandipatse chidaliro chochulukirapo kuti purosesa yokonzanso ndi code ikuyenda.
  • Zingakhalenso zabwino kuti muthe kusintha nthawi yokumbutsa podina mabatani m’malo moikonzanso. Izi zikutanthawuzanso mtundu wina wa chiwonetsero kapena ndemanga za ogwiritsa ntchito kuti adziwe zomwe zili pano.
  • Powonjezera gawo la Bluetooth mutha kuyimitsa kuchedwa ndikutumiza zomvera ku sipika ya Bluetooth
  • China ndi chiyani?

Ngati mupeza kudzoza mu polojekitiyi ndikusankha kupanga china chake motsatira izi, chonde gawani nafe pa Tsamba la Facebook la TechIsSoCool – Tikufuna kuziwona!


Mndandanda Wogula

Mndandanda Wogula



Source link