Pages

Sunday, March 3, 2013

USB Sound Card

The mini-jack audio connector on the front of my PC has a lot of noice on it, totally useless, and I need a second audio output for my headphones. I could just swap the connection on the mini-jack on the back of the computer each time I want to connect my headphones, but that is a bit annoying. So I decided to make my own USB sound card instead.

It is a simple design based on PCM2707, and the entire circuit it taken from this devices datasheet. The PCB is ordered from batchpcb.com.

Schematic:
Layout:

Monday, July 23, 2012

Betta Feeder

So it is vacation time, and I was going away last week. The day before I left I realized that I needed some way to feed my Betta fish. The solution was easy enough: Google for "Arduino fish feeder".

I liked this solution arduino-fish-feeder (and I had all the parts I needed for it), so I downloaded the source code for it and played a bit around with it. I had to tweak the source code a bit as my servo was still "running" when it was in the zero position. My modifications was to add start and stop position defines to the code and adjust these until it worked correctly. I also changed the feeding delay to 24 hours.

I MacGyvered the solution together with some hot glue and duct tape. See the finished result in the picture below:


Modified source code can be downloaded here.

Monday, April 9, 2012

UC3duino

I have been working on a 32-bit Arduino compatible board for a while. The hardware is ready, and hopefully this board will be compatible with the new 32-bit Arduino boards when they are launched. Read more on the UC3duino page.

Sunday, April 1, 2012

P7 Maglite modifications

I have had my 4D cell Maglite for probably more than 15 years now. Modern flashlights uses LEDs, and provide much brighter light than my old Maglite, so I decided to modify it after seeing other people doing just that.

I bought the SSC P7 LED and a heat sink. Since my 4D cells will provide about 6 volts I needed a regulator that could provide a constant current for the LED. I decided to design and build a buck regulator using a ATtiny AVR device. To make sure worked first time I simulated it in LTspice. This is the circuit diagram:


Some parts of the circuit is to simulate the AVR circuit, comparing to the EagleCAD schematic you can see what.
When I was happy with the circuit performance I made the layout and ordered the PCB from batchpcb.com. After a some time I received 4 PCBs in the mail, and they look really nice:



So it was time to solder some parts on to it. Got a bit messy around the AVR, since I had to solder on wires to program the fuses. Also not the the shunt resistor has to be removed when programming with ISP since it is connected to on of the programming lines. 



Time to modify the Maglite.There is a little unbrako screw behind the power switch (or inside it if you will), loosen it and the assembly should come out the bottom of the Maglite. 


I removed the top part, then soldered on some wires to connect to my PCB. 


A picture of the heat sink.


 Mounting everything together. The PMOS/NMOS of the driver was glued to the heat sink, so was the LED. I used Arctic Alumina since it is non-conductive, which was a requirement in this case.

 


Quite happy with the results. My first buck regulator design, so not perfect, I can see several things that I should have done a bit differently now, but it works.

Friday, March 30, 2012

Hello there!

So this is my first attempt on making a blog using a free service (and my first blog post as you might have guessed). I have made several attempts on making my own homepage since the late 90's, but usually they ended up with sort of bad design and not much contents. Also tried to host some of the pages on a server that I had running at home, but of course this didn't make it any easier. Changing IP addresses, downtime, and so on made it somewhat unreliable, so here we are, trying out something new (for me at least). Lets see what will happen this time...

Anyway, this blog will be about electronics and related stuff. Most likely about micro controllers and audio (HiFi) projects, but also any other generic electronics project that I might come up with. Usually I have a lot of ideas and not enough time to make them come alive, so we will just have to wait and see what I get time to put up here. See you soon (hopefully).