» Electronics » Arduino »Clock in the shape of a cat, meowing every hour

A cat watch meowing every hour


A cat watch meowing every hour


If you have a clock in the form of a cat, using the microcontroller you can add another function to them - to make meow every hour. And how - says the author of Instructables under the nickname prazors.

From the translator. Actually, it’s more correct to purr. Cats meow when they ask for something, and purr when they are happy with something.

The master installs a Hall sensor in the watch, placing it so that it responds to the magnetic field of the electromagnet. Replace the cover without distortions, otherwise the gear shafts may bend without falling into the recesses in the cover.




The master solders the conductors to the conclusions of the Hall sensor.





The wizard converts the file with the sound “meow” to the following format: WAV, 8 bit, 8 kHz, mono, unsigned. Converts a file to a character sequence accepted in C, this utility. Then takes as a basis this a sketch that remodels, adding the meow sound and a piece of the program that turns on that sound every hour. Spreads the result here.




Cutting out only a fragment with the sound “meow” from the file, knowing its location, you can do this by changing the numbers on the command line that indicate the beginning and end of the fragment in milliseconds:

sox file.wav file-cut.wav trim 0 10000s


The syntax for the wav2c utility is as follows:

wav2c file-cut.wav file.h sounddata


The result of her work is the header file.

The wizard collects everything on a breadboard such as this and this schemes. First connects outside Arduino, then flashes the ATmega328P microcontroller with an Arduino bootloader and a sketch using another Arduino.






After making sure that everything works, the wizard transfers the circuit from the breadboard to perfboard.







And neatly places everything in the watch case:







Heat sink on the stabilizer is required. Setting up the design comes down to powering up at the moment when the clock shows 0 minutes. Then the sound "meow" will be heard at the beginning of the hour.
0
0
0

Add a comment

    • smilesmilesxaxaokdontknowyahoonea
      bossscratchfoolyesyes-yesaggressivesecret
      sorrydancedance2dance3pardonhelpdrinks
      stopfriendsgoodgoodgoodwhistleswoontongue
      smokeclappingcraydeclarederisivedon-t_mentiondownload
      heatirefullaugh1mdameetingmoskingnegative
      not_ipopcornpunishreadscarescaressearch
      tauntthank_youthisto_clueumnikacuteagree
      badbeeeblack_eyeblum3blushboastboredom
      censoredpleasantrysecret2threatenvictoryyusun_bespectacled
      shokrespektlolprevedwelcomekrutoyya_za
      ya_dobryihelperne_huliganne_othodifludbanclose
6 comments
Pronin,
There is a video in the source. It sounds about as creepy as the voice generator on my first computer - the ZX Spectrum.

Quote: Pronin
... put the transistor type KT3102a (KT815v)
In fact, they are significantly different. ((So different that even with them the letters to indicate are very strange.

Depends on the speaker used. KT3102 at the limit ... And the letters with a margin (and specifically)
The master installs a Hall sensor in the watch,
Perhaps he somehow fixed it?
The master solders the conductors to the conclusions of the Hall sensor.
But it was necessary to do the opposite: solder the wires, isolate soldering spots tubes (cambric, heat shrink) and only then install in place.
Converts a file to a C character sequence
What is this "C sequence of characters"?
Quote: Pronin
... put the transistor type KT3102a (KT815v)
In fact, they are significantly different. ((So different that even with them the letters indicate - it's very strange.
It is advisable to take the source on 9v.
Between the ATmega32 output and the speaker (16th) put a transistor of the type KT3102a (KT815v)
It would be interesting to listen to what remains of the sound of "Meow" there? After converting the WAV file, 8 bit, 8 kHz, mono "to the character sequence adopted in C, this utility. " whistle
And the WAV file itself was recorded when the cat stepped on the tail?
And neatly places everything in the watch case:
Well, if photo No. 2 is neatly understood by the author ... nea

We advise you to read:

Hand it for the smartphone ...