Tech Talk & Other Thoughts

Some nerd talk by Brian and other random thoughts

Just survived a scare, the SD Card in my phone became unrecognized and I was worried that I lost all my camera photos. So my phone died when I was at work so the phone shutdown. When I got in my car I left it on the car charger for just a little while and then tried to turn it on. Apparently I didn’t wait long enough because just as the Android OS booted up the phone died again. Side note, a car charger doesn’t charge a phone faster than it can drain it with the screen and all the antennas on. Later when I got home and charged my phone long enough the SD Card came up and unrecognizable and Android asked if I wanted to format it.

After a few searches and several unsuccessful suggestions I remembered that I have a program, MiniTool Partition Wizard, that might do the trick.  It has an option to scan and repair a partition.  So I ran the scan with detect and repair option selected and it discovered that it was formatted for FAT32 and that the “/” link was bad.  It did some repairs and the presto my SD card was recognizable by Windows 7.  I plugged it back into my phone and life is good again.  I think I’m going to make sure a backup is done tonight…

Dilbert

Tags: , ,

turns out the free dynamic dns site changed to a pay service so I’ve moved our site over to bt.beerprojects.com. This is now hosted by http://freedns.afraid.org/ which is a free dns service.

Tags: , , ,

Lisa and I decided that we wanted to have a good camera to take a lot of baby Chase photos. Our little compact Lumix DMC-ZS3 just won’t cut it, but still really good camera to have. Also, I discovered that I had about $450 dollars worth of Boeing Pride points that I could convert to Best Buy gift cards. With that bit or money I make the knee jerk decision that we could afford a nice camera.

We figured that if we got a nice DLSR camera that we would get really good photos, but wouldn’t likely lug it around too often to get many of the in-the-moment photos. So I shopped around the latest removable lens / mirrorless cameras. After a few weeks of internet searching and store browsing we (or more accurately put, I) decided to get the Sony NEX-6 camera.

 

Fortunately, for us Best Buy was having a sale on cameras and lenses. They had a Sony NEX-6 kit that comes with camera and the normal lens, 16-50mm F3.5-5.6 E-mount Lens (SELP1650), and also a 55-210mm f/4.5-6.3 lens (SEL55210). Of course this was a good chunk of money more expensive, but with the gift cards I was feeling good about this.

with the SELP1650 lens

with the SEL55210 lens

I also splurged picked up a few accessories. I bought a nice little camera bag (Manfrotto Stile Solo II) that fits the camera, extra lens, the charger and wires great. The bag doesn’t have enough room for the light shade, but I’m okay with that.

I grabbed two rocketfish UV lens caps at Best Buy. They are ~$10 each and from the reviews I’ve read they don’t do too much, but are a great way to protect the real lens. Finally, Fry’s was having a great sale on Class-10 32GB SDHC memory cards and picked one up.

With all that I’m now set to be a premier pro-am photographer, though I don’t know what I’m doing. I’ve been done a bit or reading on how to use the camera, but mostly I’ve been reading on what all the sensor readings mean and how to take good photos. I know have a ton of photos of our candlesticks, Lisa’s last day flowers, and much to Lisa’s disapproval, her on the couch doing shutterfly stuff.

Well lets hope I learn quickly as baby Chase is due in less than 2 weeks!

Tags: , , , ,

I just got a new phone.  After working really hard on my Evo shift I just couldn’t take the slowness anymore.  So I upgraded to a huge phone, the Samsung Note 2 on Sprint.  I’m still not too sure this is the phone for me as I’m worried about the size of it.  I almost bought the phone from Best Buy, but they were out of the titanium version and would have to mail it in.  So I decided to get it through Costco.  From Costco they had it as the same price, but covered the $36 upgrade fee and gave an additional car charger, case, and screen protector.  The phone was also mailed and it took about a week for it to come in.  Once I got the phone I charged the battery to full then went to work transferring phones over.

Samsung Note 2

Prepare for Transfer

In order to do an easy transfer from my old phone I did a Titanium backup of my apps. More specifically:

  1. Go into the Titanium Backup * root app
  2. Select Menu -> Batch actions ->Backup all user apps + system data

This should backup all the SMS messages too, but just in case it didn’t work is used SMS Backup & Restore

Rooting

I have the root version and really want to keep root on my phone.  Though at this time I have no desire to flash any ROMs or add a different recovery, but still want to get the OTA updates from Sprint/Samsung.  So I followed the directions posted on the XDA forums.  At the time of writing this post the VPALJC was the most current ROM.  I’ve copied the steps I followed, pretty much exactly as listed on the forum, so that I can recall what I did in the past.  I suggest reading the forum as it has a better chance of being kept up to date, whereas this post will be a simple moment in time.

Steps I followed to root and still maintain OTA updates.

  1. From your computer do the following
    1. Download Odin
    2. Unzip Odin
    3. Download the SPH-L900 (Samsung note 2) drivers from the Samsung’s site. Click on the Manuals & Downloads tab at the bottom and then on Software for the latest driver.
    4. Move the driver exe to the ODIN folder
    5. Download the mrRobinson‘s version of the firmware, VPALJC, from root66_SPR_L900VPALJC.7z
    6. Unzip the file and place into the ODIN folder
  2. From the phone
    1. Put the phone into download mode.
      1. Turn it off
      2. Then hold vol. down + home + power
      3. Choose accept to go into download mode
  3. From the computer
    1. Start the ODIN program
    2. Then in the PDA field and select the firmware file, root66_SPR_L900VPALJ1.tar.md5
    3. Leave Auto Reboot and F. Reset Time checked.
    4. Click start and wait for it to download the files to the phone, below is the message log I saw
    Enter CS for MD5..
    Check MD5.. Do not unplug the cable..
    Please wait..
    root66_SPR_L900VPALJC.tar.md5 is valid.
    Checking MD5 finished Sucessfully..
    Leave CS..All threads completed. (succeed 0 / failed 0)
    Added!!
    ID:0/003> Odin v.3 engine (ID:3)..
    File analysis..
    SetupConnection..
    Initialzation..
    Get PIT for mapping..
    Firmware update start..
    boot.img
    NAND Write Start!!
    cache.img
    hidden.img
    modem.bin
    param.bin
    recovery.img
    sboot.bin
    system.img
    tombstones.img
    tz.img
    RQT_CLOSE !!
    RES OK !!
    Removed!!
    Remain Port ....  0
    All threads completed. (succeed 1 / failed 0)
  4. When done let phone reboot and the phone is rooted
  5. I haven’t used or tested this yet to retain root privileges through an OTA update
    1. ,Get OTA Rootkeeper from the Google Play store on your phone
    2. Open OTA Rootkeeper and click “Protect Root”
    3. Then after you receive a notification for an OTA update you should go into OTA Rootkeeper and click something to re-enable root.
      1. Since I haven’t had to use this yet I don’t know what I will have to click nor do I know that this will work as the notes in the app say “Useless with: Samsung phones updated with KIES or Odin and older devices using YAFFS filesystems only, and device flashing entiere system partition”
      2. I suppose I’ll cross this road when I get to it.

Well after things rooted successful the phone restarted and everything worked just fine and root was enabled.

Transferring Apps & Data

Well with things rooted I just needed to get the apps back through Titanium backup.

  1. Move the SD card to the new phone
  2. Download the Titanium Backup * root app
  3. In Titatnium backup do the following:
    1. Make sure the backup folder points to the folder that all the backups were stored in as the phone may not default to the same folder.  Go to Menu -> Preferences -> Backup Folder Location
    2. Next restore the apps with Menu -> Batch Actions -> Restore missing apps + all system data
      1. Becareful to only select the system data that will work with the new phone (SMS, call logs, contacts, etc) especially when switching brands.  I don’t know what will happen, but I’m sure it isn’t good
    3. Next ensure all the apps are link to the Play Store with Menu -> Market Doctor

And once that is done things should be back where they are with the exception that I see that the defaults and some passwords didn’t transfer.  I may unselected some system data that I wasn’t supposed to, but selecting the default apps in some cases isn’t so bad.

Closing Thoughts

Well with all that done, I’m nearly back up and running on my new phone.  I’m switching back to Launcher Pro, but I really like a the Touchwiz calendar widget.  I’ll be searching around the net to see if I can find a way to port it over or if there is an equivalent app.  I was using calendar pad, but I really like the Touchwiz widget.

 

 

 

 

Tags: , , , , , , , ,

Our entertainment center only has a small air vent in the back when the front glass doors are closed that causes everything inside to get pretty warm. So I decided I’d create a small little circuit to turn on some fans when it gets too hot inside.

Well I started out by doing several Google searches to see if there were any projects already out there that I could just copy. I did find a couple projects (1 and 2) that were close to what I wanted, but not quite. In both of these the fan speed was proportional to the temperature whereas I only want an on/off function at the desired temperature. However, both of these started me down the initial path for my design.  I broke out my old circuit books from college and tried a few different ideas.  After a bit of work using an Op-amp before the first transistor was just the right thing for this function.

Schematics

It has been a very long time since I’ve done any real circuit design. At work I frequently review schematics to understand how things work, but leave the fine details and analysis to our electronic design team. So the first step was to simulate the circuit using Proteus. I had not used this software before, but it seemed somewhat intuitive to use. I think there are many issues with the simulation of the active parts, but I was able to work around these issues to get things going. I also think that their could be a lot of work on the usability of the program to make it more natural to use.

Temperature Fan Circuit

This is a graph of the simulation. What it shows is right at the Vset voltage (the voltage that I want to turn the fan on) the comparator goes from low to high and then the Q2(C) goes from 0V to about 3.6V. In reality after testing this circuit the voltage at Q2(C) is the about 12V. I couldn’t figure out why Proteus was modeling this wrong, but it works so I’m happy.

Power Supply Circuit

Once I had the main circuit working I started to add the power supply into the design. My simple power supply is to give me a 12V ~1A drive. I had bought all the part to support up to 1.5A, but after seeing the size of the transformers I settled on a 1A transformer. In both the sim and on the bread board I was seeing my 12V supply voltage drop way down. I wrote a quick post about it which is really a link to the Electronics Point forum. So that this blog post is complete I’ve cut, pasted, and modified select posts from the forum below.

Problem Statement:

I have a L7812 setup to give my circuit a 12V DC power. The L7812 has bridge rectifier, caps, and transformer 120V to 15V. From the LM7812 I pass the current through a pnp transistor that is fully saturated. Looks like I get about 18-19V into the L7812 and when the motors (small pc fan motors) are off (pnp open) I see a stable ~12V.

I have a small resistor in series (out of motors to ground) with the motors (3 in parallel) to limit the current. The motors are expected to draw 100mA. So I expect to drop a bit over 300mA across the circuit. My transformer and L7812 are all spec for up to 1A. When I turn the motors on (pnp saturated) the voltage sags to near 9V pulling about 300mA. So I’m not too sure why I’m seeing the sag as I should be able to drive plenty of current and with my resistor in series of the current path there should be current limited.

Any ideas? Thank you.

Issues:

(Harald Kapp) C2 is far too small. A rule of thumb is 1000µF per 1A of current, so instead of 33µF you should have at least 330µF at 300mA. I suggest 1000µF. If you measure the input voltage of the 7812 with an oscilloscope you will see lots of ripple with your current setup.

Resolution

Just added the 1000uF on the input and the voltage sag is gone.

With the power problem fixed my circuit worked! Now it was time to transfer my prototype to a PCB board. Soldering everything together went rather smoothly. The hardest part was holding the circuit and soldering at the same time. For all of my college projects we pretty much always did this work in a two person team which made things much easier and faster. As for packaging, I used an old wasabi peanut container, spray painted it black, and made cuts where I needed them. Not too fancy but it looks okay when sitting in the entertainment center. The fans used are basic PC fans. My circuit is designed to support 1A so I needed to be somewhat careful of which fans I bought. Tom helped me

After all the help here is the final (really simple) circuit.

Prototyping

As I mentioned the active parts didn’t simulate too well. So once I got something working close to what I wanted I placed the circuit on a bread board to see if it was functional. After some testing I then went back to the simulation and repeated this cycle several times. In my prototyping stages I used an old pc power supply for the 12V into my circuit. This worked out pretty well other than it ended up being another mini-project just to get the power supply working again.

Here is a quick picture of my test bench.

Assembly & Test

After the prototype checked out against the simulations (or verified where the sim was incorrect) it was time to wire it all up.  I remember now why in college we always worked in twos when soldering; it is really hard to solder by yourself, holding the solder, the board, and the soldering iron is tough with two hands and without a good holder.

As I placed parts I periodically did checks to make sure I didn’t short anything out unexpectedly. Also, I planned for the external inputs to be along the edges which worked out pretty well, but I neglected to set up the power rails in a very good place which in my opinion makes the circuit look a bit ugly. (Yes, I’m an engineer and circuits can be pretty and ugly).


A few angles of the board

angle #2

angle #3

The bottom of the board

Once it was all put together I made a several measurements of how the circuit was working, but I seem to have lost them. Well, at any rate, the circuit was working as I expected.

Final Integration

Here are the final integration pictures, right before things are all buttoned up


Looking inside the canister with the AC-AC converter. I ended up zip tying it down to the bottom which worked out really well. (which is kind of funny if you know about our latest Jeep incident where the techs broke something and used a zip tie to fix it).


Everything plugged in and working before I close up the lid


Top of the Lid

Final Product

There are two final product images.  The first is from the garage.

I did some testing inside my entertainment center and decided I needed more powerful fans to move the air.  So this second image is in from of the entertainment center with more powerful fans attached.

Final Thoughts

As a last second addition I placed a green LED to indicate if it was on or off. With all the fans in place it seems to work pretty well except for when the playstation is going. The PS3 just generates too much heat for me get out through just the back. So for now when I use the PS3 I still open up the doors. All in all, this worked out pretty well and is step 1 in baby proofing the entertainment center. Step 2 will be to lock the sliding doors and drawer, but that is a project for another day.

I’m happy I was able to make a circuit after not doing anything like this in a really long time and I had fun doing it. Perhaps I slightly earned my EE license for the year. It took way way longer than I expected which Lisa didn’t care for my late nights much. I think the cost of this thing was about $40, but I bought a lot of spare parts for future projects and really don’t know what the exact cost was.

Here is a zip file of the PDF and design files if anyone is looking for them
Temperature-Controlled-Fan-Final-Design.zip

Dilbert comic

Tags: , , , ,

« Older entries § Newer entries »