<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mosfet on Codewrite Dev Doc</title><link>https://dev.codewrite.co.uk/categories/mosfet/</link><description>Recent content in Mosfet on Codewrite Dev Doc</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 13 Aug 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://dev.codewrite.co.uk/categories/mosfet/index.xml" rel="self" type="application/rss+xml"/><item><title>Generating sounds on the Arduino</title><link>https://dev.codewrite.co.uk/posts/2020-08-13-arduinoclassdsound/</link><pubDate>Thu, 13 Aug 2020 00:00:00 +0000</pubDate><guid>https://dev.codewrite.co.uk/posts/2020-08-13-arduinoclassdsound/</guid><description>&lt;p&gt;&lt;img src="https://dev.codewrite.co.uk/images/arduinoSoundClassD/ArduinoWAVPlayer1.jpg" alt="Arduino WAV Player 1" /&gt;
&lt;img src="https://dev.codewrite.co.uk/images/arduinoSoundClassD/ArduinoWAVPlayer2.jpg" alt="Arduino WAV Player 2" /&gt;&lt;/p&gt;
&lt;p&gt;This is a small project to read wav files from a micro SD card via an Arduino Nano and then play them directly to a loudspeaker.
I&amp;rsquo;ll state upfront that this isn&amp;rsquo;t the easiest way to do this (there are MP3 modules and libraries), but I wanted to:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Understand sound generation using a microcontroller from first principles&lt;/li&gt;
&lt;li&gt;Have some tools / ideas about how to generate sounds for any future projects&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;As an idea of the sort of thing I was thinking of - I&amp;rsquo;ve been thinking of a DIY &amp;ldquo;ring&amp;rdquo; doorbell. I already have a camera that can see anyone approaching the front door. A 433.92MHz receiver could detect when the doorbell is pressed (so no new doorbell required). A Raspberry Pi (i.e. the one with the camera) controlling it all and sending and receiving to my mobile phone. A lot more work than just buying a Ring doorbell - but a lot more satisfying!&lt;/p&gt;</description></item></channel></rss>