en en en pt es en en en en cv en en en en en en en en en en ca es en es ne en en en en en en en en en en en en en en en en en en en zh nl en en en en en en en en en en en en en en it en en en en en en en pt en en en en en en en en en en en en en en en en
I have been pursuing my work on the über alarm clock project in my spare time. For those of you wondering what the hell I’m talking about, see my original post on the topic. This project is largely an excuse for me to learn more about electronics, microcontrollers and embedded development. However, it’s also motivated in this reality: I have trouble falling asleep at night and I oversleep in the morning. My current alarm clock also sucks, and will sometimes not ring at all, even though I can verify it’s been set in the morning (not kidding!). Hence the idea to build an alarm clock that is reliable, automatically sets itself, rings loudly, and only rings when needed.
I’ve recently read an article about oversleeping and insomnia that lead me to believe that perhaps one of the reasons I have trouble falling asleep is ambient noise. I live on a busy street and the sound of cars outside can be heard fairly constantly (my girlfriend also has a tendency to snore). I use earplugs, but they don’t block out the noise as well as I’d like them to. Hence, I’ve had this idea that perhaps I could build a white noise machine into my ultimate alarm clock. I’ll be able to tinker with the sound to make it sound just right, and as loud as I want. This will hopefully produce a pleasant sound that blocks out most of the ambient noise.
The series of microcontrollers I’m using can run at up to 20MHz or so, and has PWM outputs, which make it possible to generate sound. Hence, I thougt it might be pretty easy to amplify this PWM signal using a power MOSFET and filter it out at the speaker end using a capacitor. I decided to buy an old speaker with sufficient low frequency capabilities at some used store, it cost me $5:
I was able to produce sound, some of which was pretty promising sounding. Unfortunately, however, it seems that using PWM to generate sound, even at high sampling rates, introduces too much audio glitches. Hence, I’ve decided to order a Digital Analog Conversion (DAC) chip and an audio amplifier chip. This should allow me to generate better quality sound.
Since I’ve had to put this part of the project on hold, I decided to work on other basic things, like getting a display working. I owned two HD44780-compatible displays (you can find them for about $3.50 shipped on ebay). So I soldered a header to one of them that I can easily stick into a solderless breadboard:
I still have much to learn but I’m confident I can at least get a basic alarm clock working. Once I receive my audio chips, I’ll look into integrating a white noise machine into this. For now, I’ll need to look into what kind of casing I want to put this in, interfacing my microcontroller with push buttons, and programming some kind of menu or user interface. I might also want to acquire a bigger LCD, for comfort. I’ve spotted a nice 20×4 display on ebay.
I also need to learn more about soldering. I bought myself a Komec 936 soldering station and practiced with it a little bit. I was able to solder a header to my LCD module, for example. I still clearly haven’t mastered soldering, however. I tried to build myself a simple regulated DC power supply circuit on a prototype Printed Circuit Board (PCB) and the result was a complete disaster. Burn marks everywhere on the board, big blobs of solder. I think that the kind of prototype board I used was perhaps too difficult to use for a novice like me, as it requires me to make solder connections between individual circular pads, which I find quite difficult. I decided to order some stripboards, which will hopefully be easier to work with.
From → Electronics, Microcontrollers
Leave a Reply Cancel reply
Enter your comment here...
Fill in your details below or click an icon to log in:
Email (required) (Address never made public)
You are commenting using your WordPress.com account. ( Log Out /  Change )
You are commenting using your Twitter account. ( Log Out /  Change )
You are commenting using your Facebook account. ( Log Out /  Change )
Notify me of new comments via email.
Notify me of new posts via email.
« Presented at DLS 2011
Optimizing Global Value Numbering »
Typed vs Untyped Virtual Machines
Minimalism in Programming Language Design
Democracy, Dictatorships and Access to Information
Code that Doesn’t Rot
The Internet Changed My Life
What’s Could You Use Tesla Bot For?
NoiseCraft: a Browser-Based Visual Programming Language for Sound & Music
Art Artificial Intelligence Artificial Life Assembly Biology Compilers Creativity D Language Electronics Future Game Development Genetic Algorithms Grad studies Graphics Higgs JavaScript Microcontrollers Microprocessors Music Programming Programming Languages Psychology Rant Robotics Tachyon Technology Uncategorized work x86 Zeta
Archives Select Month June 2022  (1) May 2022  (1) March 2022  (1) February 2022  (2) January 2022  (2) December 2021  (1) June 2021  (1) February 2021  (2) December 2020  (1) September 2020  (1) January 2020  (1) November 2019  (2) October 2019  (2) June 2019  (1) January 2019  (1) December 2018  (1) May 2018  (2) February 2018  (1) January 2018  (1) December 2017  (1) October 2017  (1) June 2017  (1) April 2017  (1) January 2017  (1) December 2016  (1) November 2016  (2) September 2016  (2) May 2016  (1) March 2016  (1) February 2016  (2) January 2016  (1) November 2015  (4) October 2015  (1) September 2015  (3) August 2015  (2) July 2015  (3) June 2015  (1) May 2015  (3) April 2015  (2) March 2015  (1) February 2015  (1) December 2014  (1) November 2014  (2) October 2014  (2) September 2014  (3) July 2014  (3) May 2014  (1) April 2014  (1) March 2014  (1) February 2014  (1) January 2014  (3) December 2013  (3) October 2013  (2) September 2013  (1) August 2013  (2) July 2013  (3) June 2013  (2) May 2013  (3) March 2013  (2) February 2013  (1) January 2013  (3) December 2012  (4) November 2012  (1) October 2012  (1) September 2012  (3) July 2012  (4) June 2012  (2) May 2012  (2) April 2012  (4) March 2012  (2) February 2012  (3) January 2012  (6) December 2011  (2) November 2011  (3) October 2011  (8) September 2011  (4) August 2011  (3)