Sep
13
2009
0

Project: 3-Axis Talking Skull – Post #4 First Singing Test

Click here to see the entire 3-Axis Talking Skull Project.

Well after months I finally started working on this project again.  I figured since Halloween is only a month and a half away I’d better get it done.

Graveyard skulls have put together some good construction instructions here:

They also added a new Eye Kit for the skulls which I may add next year.

OK, now on to my first singing test.  I found a cool pirate song called “ I Once Wend Down to Kingston Town” by Amateur Hour – Pirate Copy.  The great thing about this song is that it is Open Source and covered by the Creative Commons license.

As with most of the 3-Axis skull projects on the net I used Brookshire Software VSA (Visual Show Automation).  It costs about $60 which isn’t too bad.  It also has a demo version but it doesn’t allow you to save all your hard work.  I eventually will write my own program to interface with the Playstation 2 controller but I have slacked off too much this year and will have to do that next year.

Here is a video I posted on YouTube:

Get the Flash Player to see the wordTube Media Player.

Apr
16
2009
0

AVR JTAGICE mkII clone – Review (Final)

This is a followup review post from this one:  AVR JTAGICE mkII clone – Review which was a followup from this one:  AVR JTAGICE mkII clone

It’s been pretty quiet on the KludgeGuru front for a month while I impatiently waited for my AVR JTAGICE mkII clone to be returned from china.  If you didn’t read the two posts linked to above the basic story is I purchased the clone and when I got it the debugging capabilities didn’t work.  So I returned it where they were able to repeat the error I was getting and instead of sending me a new one they shipped it back to the manufacturer in China and said it would be 3-4 weeks for repair.  11 weeks later I got it back…now that’s what you call great service.  :(

Here is the timeline of my correspondance:

January 20th – I shipped the unit back

Vendor (January 23rd) – Hi, I tested your mkii clone and as you said, the debugging mode doesn’t work.  I will have to ship it to the manufacturer for a repair.  The whole process can take 3-4 weeks, as they are closed right now because of Chinese New Year celebration.

Me (February 17th) – Do you have an update on when I can expect to have my mkII clone back?  It’s almost been 4 weeks.

Vendor (February 17th) – It was Chinese New Year Holidays and they started working at the end of last week.  It will take another 2-4 weeks.

Me (March 16th) – It’s been another 4 weeks any news on the MKII clone?

Vendor (March 16th) – I know… long delay.  Last week the manufacturer told me that they fixed the MKII clone, and I ordered some additional stuff to ship all together back to the US.  It should be here by the end of this week or beginning of next week.

Me (March 27th) – It’s almost been another two weeks.  Do you have an update on this item?

Vendor (March 28th) – I am starting to worry too… as I said, it was shipped more than 2 weeks ago with other items I purchased to them but I haven’t received anything yet.  If by the end of next week I don’t get the unit back from China, I will ship you a new unit.

Vendor (April 1st) – I got the device back.

Me (April 1st) – Did you happen to test the debugging to see if it works now?

Vendor (April 1st) – I tested it and it works.

April 8th – I finally received it!

The good news is the guy was nice and responded to my email quickly.  It just was a shame I had to wait 11 weeks to get a mkII clone when I received a defective product.  I still think that if you purchase something that doesn’t work the store should replace it with a new one that does work.

Also I tested the mkII clone and the debugging does work now.  I was using a friends JTAGICE for awhile but he needed it back so now I can finally continue working on my projects that I started a couple months!

UPDATE:  I can program micocontrollers using the JTAG interface but the SPI interface does not work…If I could go back I would have spent the extra money and purchased the real thing.

Written by KludgeGuru in: AVR |
Feb
11
2009
0

Server Tips: Personal FM Radio Station

I have a fairly large MP3 collection and I wanted a way to listen to it anywhere in my house. I thought about installing some sort of house stereo system with speakers in every room but that is a little difficult when the house has already been built.

In my Internet travels I ran across this neat little device called the WholeHouseFMTransmitter.  It is basically what it’s name says it is, an FM transmitter for the entire house.  With this device I connect it to my server’s audio output port and then just shuffle through my MP3 collection.  I then can tune to my own personal radio station using any FM stereo around the house or in the garage.  Actually I can receive my radio station within a block of my house while the transmitter is in my basement next to my big metal furnace.  I’ve thought about moving the transmitter to the attic to get a greater range but it works just fine where it is.

The transmitter is pretty small.  It’s measurements are 3 3/8″ x 2 1/2″ x 3/4″.  The front of the transmitter has a power button and some logo stuff.

wholehousefmtransmitter_front-thumb

The power is supplied through a power jack on the side.  It uses 5VDC I couldn’t see any current rating on their website.  It has four different ways to power it, shown below.  I use the USB power adapter so it is power directly from my server.  The USB power adapter is retractable, I think it is only about 3-4 feet long which I think it should be longer but it works.

wholehousefmtransmitter_power-thumb

Wall Outlet - (110/220V AC Power Supply)
Wall Outlet
(110/220V AC)

Car Adapter - (12/ 24V DC Mobile Power Adapter)
Car Adapter
(12/24V DC)
Computer USB Power Cable
Computer USB Adapter
Plus, batteries (takes 3 “AA” batteries and will run about 110 hours)

The audio input is a 1/8″ (3.5mm) headphone jack.  This is very nice since you can use about any audio source, such as output from computer, ipod or any MP3 player.

wholehousefmtransmitter_audioin-thumb

On the other side there is a set of three dip switches.  These are used to select the frequency or FM radio station the transmitter broadcasts on.  If you set the frequency to the same channel as a nearby radio station you wont get as good of performance.  You should set it to an unused channel between radio stations.

wholehousefmtransmitter_dipswitch-thumb

On the back of the transmitter is the channel selection guide.  This shows the dip switch positions to select the desired FM frequency or channel.

wholehousefmtransmitter_channelselect-thumb

So I’ve got this hooked up to my server computer.  I’ve set my server to automatically start my favorite MP3 player software Winamp when windows loads.  The only problem I found was that after running constantly for a couple days Winamp would tend to freeze causing the MP3 currently being played to do a 1 second loop which sounds terrible.  To solve this I decided to restart my computer every night.  Being a big fan of batch files I created a batch file to restart my computer.  My batch file only contains one line:

shutdown /r /t 60 /f /c “Restarting for daily reboot…”

The flags I used are as follows:

  • /r  -  Shutdown and restart the computer
  • /t xxx  -   Set the time0out period before shutdown to xxx seconds.  The valid range is 0-600, with a default of 30.
  • /f  -  Force running applications to close without forewarning users.  (The /t flag also implies the /f flag but I put it in anyway just for kicks)
  • /c “comment”  -  Coments on the reason for the restart or shutdown.

I use a neat little windows utility called Task Scheduler to schedule my server restart in the middle of the night.

How To Schedule Tasks in Windows XP

While scheduling tasks you basically just browse for the batch file then set when you want the task to run and how often.

Written by KludgeGuru in: Server Tips |
Feb
07
2009
1

Server Tips: Backup Files Using a Batch File

In my server I have 4 hard drives and each has a purpose:

  1. Operating system – WinXP
  2. Personal files such as family pictures, home movies & mp3s
  3. Backup of personal files
  4. Media drive containing ripped DVDs

I used to setup hard drives 2 & 3 in a RAID 1 which is a mirrored raid array.  That way both hard drives contain the exact same data so if one ever failed I would not loose the data.  Since then I’ve found that sometimes I erase data that I don’t mean to and sometimes it’s hard to get it back.  So I came up with a solution.  I use a batch file to backup my data nightly to from hard 2 to hard drive 3.  That way if I delete some data it actually doesn’t get deleted off my backup drive.  If I overwrite something I didn’t mean to I have until the nightly backup to retreive it.  The dos utility xcopy works great for that.  Here is a link to an xcopy users guide http://www.seqsoft.com/xcopy_ug.pdf

In the batch file I start off by saving the date and the start time to two variables:

SET DATE=%date:~4,2%-%date:~7,2%-%date:~10,4%
SET START=%time:~0,2%%time:~3,2%%time:~6,2%

I then use xcopy with a bunch of switches to copy any new data to the backup hard drive.  I also create a log file called InProcess.log so I can go back later and check that everything is working alright.

xcopy /d /c /e /r /y /f e:\ f:\ >f:\backuplog\InProcess.log

Here is a list of the switches I use:

  • /d  -  Copies files changed on or after the specified date.  If no date is given, copies only those files whose source time is newer that the destination time.
  • /c  -  Continues copying even if errors occur.
  • /e  -  Copies directories and sub-directories, including empty ones.
  • /r  -  Overwrites read-only files.
  • /y  -  Suppresses prompting to confirm you want to overwrite an existing destination file.
  • /f  -  Displays full source and destination file names while copying.

I then specify the source drive e:\ which is my personal files drive.

Next the destination drive f:\ which is my backup hard drive is specified.

Then I tell it to white to a log file instead of to the screen using >f:\backuplog\InProcess.log

After the xcopy command I save the end time to a variable:

SET END=%time:~0,2%%time:~3,2%%time:~6,2%

I then rename the InProcess.log file that was created to a date and time stamp that says what time the process was started and what time it ended.

rename f:\backuplog\inprocess.log “%DATE% %START%-%END%.log”

So I save all of these lines into a batch file called backup.bat.  Here is what the entire batch file looks like:

SET DATE=%date:~4,2%-%date:~7,2%-%date:~10,4%
SET START=%time:~0,2%%time:~3,2%%time:~6,2%

xcopy /d /c /e /r /y /f e:\ f:\ >f:\backuplog\InProcess.log

SET END=%time:~0,2%%time:~3,2%%time:~6,2%

rename f:\backuplog\inprocess.log “%DATE% %START%-%END%.log”

The batch file is great but I need a way to automate it so I don’t have to remember to run the batch file whenever I want to backup my data.  It’s also nice to schedule the backup in the middle of the night when I most likely won’t be using my computer to access the server.  I use a neat little windows utility called Task Scheduler.

How To Schedule Tasks in Windows XP

While scheduling tasks you basically just browse for the batch file then set when you want the task to run and how often.

There are other solutions for backing up data but I like batch files, it’s free, easy and I don’t have to use some third party program.

Written by KludgeGuru in: Server Tips |
Feb
04
2009
0

Server Tips: Operating System

Normally I’m all for open source and free software but for operating systems in my experience it’s hard to beat Windows XP.  I have some experience using Linux but I’m not a Linux Guru and when there is a problem it might take me a few hours to a few days to figure out how to fix it.

I prefer to have an operating system that has a Graphical User Interface (GUI) rather than a command line interface.  It’s my opinion that the command line interface is powerful but it is also very archaic.  I’d prefer to have a GUI for my main operating system with a command line utility.

I did try installing Ubuntu on my server and it took a few days to get it working and configured the way I wanted it.  I have my server in my furnace room and there isn’t room in there for a monitor or keyboard so I remote into it to manage it.  With the Ubuntu install everything was working fine until the remote desktop stopped working.  I spent a couple days trying to figure out how to fix it and I finally got frustrated and installed Windows XP on it.  It took me a couple hours to get it installed and everything setup and I rarely have problems with it.

My choice of Windows XP to use as my server operating system mostly was decided for my experience with windows.  If I had more experience with another operating system such as Linux then I might have chosen it.  

Written by KludgeGuru in: Server Tips |

Powered by WordPress. Theme: Aeros 2.0 by TheBuckmaker.com.