Pasta sauce hack: How to make creamy tomato pasta the easy way.

It was a lazy Sunday afternoon, and I was craving something that’s tasty, but not too difficult to make and pasta sounded like a good idea. I really love creamy Alfredo sauce, but i had no parmesan cheese on hand. I also like tomato pasta sauce, but when made fresh. I really hate the taste of store bought pasta sauces, they are way too sour and leave a weird aftertaste. But these sauces are super convenient, so I always have them in stock.

So, the only stuff I had on hand was tomato (with garlic and basil) pasta sauce, heavy whipping cream and penne pasta. I cooked the pasta as per the instructions on the box, then drained the pasta. Heated some butter in the pan, added the tomato pasta sauce and while it was about to heat up added some of the heavy cream, garlic powder, dried basil leaves, and Voila!. the result was this awesome creamy, rich bright reddish orange pasta sauce, that was easy to make and tasted awesome(and looked beautiful too). I added some finely chopped cilantro to the sauce too, since I really love the taste of fresh cilantro.

20160724_153732

Working on a “secret” project, and fighting feature creep!

I started work on a new design, I have long had a desire to create a “product” from scratch using minimal off-the-shelf stuff. This design should help me achieve that goal, and help me learn project management(albeit on a micro scale! :P). Last year I spent some time on an esp8266 based design, new ideas got added to the design midway and a couple iterations later, i have OSHpark purple “art”. FEATURE CREEP,  as it’s called, its very hard to fight off.

This time i decided to start simple. The design has tight constraints (ultra low power consumption, dimesions) but fewer variables that might get affected by feature creep. I feel, I have mostly been successful to fight it off this time. I wouldn’t tell what the project is just yet, and i haven’t committed it to a public git repo yet(of course, it’ll be OSH). I shall make it public soon :) . I think it’ll be fun, and hopefully I teach myself a few lessons in project management, and how to be persistent and finish my hobby projects!

In the mean time here’s a sneak peek of the schematic! 😀

 

Capture

Quick post: Logitech Mx MASTER Fix

Saw this post on hackaday and decided to work on fixing my own Mx Master which had the infamous scroll wheel issue. I could not toggle between the scroll modes of the mouse. The feature stopped working the very next day i started using the mouse. It seems to be a design issue on logitech’s part. But its a quick and simple fix, check the hackaday post above for more info.

 

20160605_1347521

Electronics Inside a Philips Sonicare Electric toothbrush

Today a coworker of mine gave me his old Philips Sonicare toothbrush. He said it had stopped charging and would no longer work. That was a good opportunity for a tear down 😉

Lets see what makes this baby chooch….(As the great man himself said https://www.youtube.com/watch?v=lA0kiYqyBmo)

12562858_10206868876974739_1096742337_o

There’s very little to this device. it seems like there’s just a micro controller running the show, like every other product. (there’s more horsepower in a toothbrush these days than an a 50 year old Supercomputer!) it probably does the following tasks( my guesstimate)

  1. Running the motors
  2. Reading user input via the two push buttons (I accidentally De-soldered one Push button, while trying to De-solder the battery)
  3. Battery charging and discharging
  4. LEDs and Blinkenlights (Coz humans love ’em )

12544927_10206868900655331_127689890_o

 

Quick hardware analysis

A quick analysis of the PCB shows a micro controller(PIC16F726 to be precise) . Q1 seems to be a dual P channel MOSFET ( marked as ISC 6981D ). Q2 is marked AO8808A a dual N Channel MOSFET. The MOSFETs formed an H bridge which drives the “Ultrasonic motor” which I plan to get to run soon. then there’s a few sundry(read boring/uninteresting) components which probably are there for over voltage protection, an LDO, Li-Ion battery charger Etc. (High Res Image of the PCB ).

Then there seems to be 6 test Points which are conveniently labelled for easy debugging( or hacking I guess!) I’ll probe those and see what they do probably try out a few common baud rates and see what the Micro spits out. There are plenty of test points on the PCB that should include the programming pins for the micro as well.

That’s pretty much it for the electronics side of things.

Then there are other things like the Motor, A AA size Li-Ion battery, a charging coil. The coil probably forms an air core transformer with the charging dock, but I;m still not clear on how it is rectified back in to DC for charging the battery, with so few components and no bulky capacitors on the PCB.

I’ll probably power up the micro controller and see whats being sent out over the UART. Next on my To-do list would be to get the motor running and after that i would like to check out how the charging subsystem works with the weird air core coil arrangement. The weekend is fast approaching, so this guy should keep me busy for a good part of the weekend.

 

Special Thanks to Alex for donation :)

 

Murli’s blog has a new home

Last weekend over thanksgiving, I finally found some time to move over my blog to a custom hosted solution over from the old one. I now have a custom WordPress install(this might change soon, as I’m looking at other options, which are more efficient like jekyll ).  The blog should now be snappier, also i’m planning to add a few bells and whistles on the backend (git server, host some files etc). On the hardware front, I am currently working on the ESP8266 on adding an Epaper display and a few custom sensors. I’m using a rather interesting and firmware framework called SMING, which is an interesting hybrid between the Arduino framework and native GCC. Sming I feel is still rather nascent, but the developers are working hard on refining it. I plan to finish the e paper display interface this week, and then I can go ahead with finishing the project, something that looks more like a product than a quick hack. I’ve had a few stumbling blocks along the way, which i have put them aside for now.

Its been a long time dream of mine to build some thing that look more like a store-bought product than something hacked together. This is proving to be a much tougher and more resource intensive than I expected, but I’m being persistent and have been working on and off on it for a while now. Hopefully I will have something cool to show off soon, and will be richer with interesting experiences on developing a product from scratch. 

Also my Rpi Zero came in this weekend. I played around with it a bit, I’m waiting on some cables to come so I can have a stable setup, the cables from my previous Rpi hack are kinda dodgy and dont seem to work very well, I will post a detailed review on the Zero soon.

Raspberry Pi laptop

Recently, I got a used Atrix 4g lapdock for 30 bucks off of craigslist. It was a really good deal for a device that packs a USB hub, a 10+ inch LCD a keyboard, a trackpad and also a 10000mAh battery. Supply it with a processor and it can be a full fledged laptop computer. My atrix 2 worked fine with the lapdock. I used it a lot for watching youtube videos and for PDFs.

The good thing about the lapdock is that it has everything that is needed to setup a raspberry pi. I had one of the earliest revisions of the raspberry pi which up until now I used as my media file server. And the only was i would interact with it was over SSH since i really hated the mess of wires that would come with setting up the monitor and keyboard for the Pi. The lapdock was a very elegant solution to this problem. it was just a matter of splicing some wires together and some soldering before i would get my very own Rpi Laptop. Here’s the finished product.

1015455_10202044834936703_1783134473_o

If you are looking to make one below are some resources.

Here’s the instructional video from Adafruit that i referred to make this project. do check it out.

Here’s another blogpost which i think managed to do away with the soldering altogether but you might end up spending some extra money. but is more rugged and sturdy than the home-made cable solution. http://rpidock.blogspot.com/2012/05/raspberry-pi-and-motorola-lapdock.html

Here are the cables and stuff that you will need for this project.

1.      Micro USB B Male Female M/F Extension Charging Cable

2.     HDMI 1.4 D type Micro HDMI Male to Micro HDMI Female M/F

3.     HDMI Male to Micro HDMI Female Adapter/Converter

4.     Micro USB cable

You will also need Soldering iron and some heat shrink tubing for the project. So keep that handy.

Do let me know how it goes.

Questions?? Fell free to post them in the comments below!

 

Teardown of a 13 year old canon digital camera.

IMG_0685IMG_0684IMG_0686IMG_0687IMG_0688IMG_0689
IMG_0690IMG_0691IMG_0692IMG_0693IMG_0694IMG_0695
IMG_0696IMG_0697IMG_0698IMG_0699IMG_0700IMG_0701
IMG_0702IMG_0703IMG_0704IMG_0705IMG_0706IMG_0707

canon camera teardown, a set on Flickr.

A couple weeks ago, at work I found a digital camera that was thrown away in the recycle bin, it had a broken LCD and everything else seems to be in good shape. It was a 2.1 Megapixel Shooter so i figured it must really old. On googling I found that it was launched in 2001 and one of the smallest digital cameras of its time. and cost like $600 US! these days you can get a decent DSLR for that price. Check out the review of this device here!

Enough chit-chat, lets get to the real deal. I wanted to take the sucker apart and see the innards and understand its working. The camera is enclosed in a metal enclosure and could easily take a drop or two without taking much damage. Dissaembly was easy as the entire case was held together by philips head screws. The canon engineers were able to cram in a lot of stuff into a relatively tiny case,about the size of a pack of cards. It even had its own Li-Ion battery with a seperate external charger.

I have posted the photos of the teardown on my Flickr account. The pictures have elaborate descriptions feel free to browse through them. Feel free to ask any questions in the comments below! Enjoy!

Restoring the Windows Boot Partition…..

I have a Dual Boot boot system Running Ubuntu 12.04(LTS) and Windows & Home Premium(x64).

The other day i was booted into ubuntu and had to use gparted to partition and format a flash drive to use with my Pogoplug-B01. And i by-mistake formatted the windows boot partition . Oops. I restarted my system and could not  boot into windows! For me Windows is like a necessary Evil . Its where all my games reside! All for the other programming related stuff i use ubuntu. So i needed to get the windows partition up and running.

Also before you go ahead i would recommend you take a backup just in case anything goes wrong by booting into the system by a ubuntu live CD.

This can only be used to repair a system where the boot partition is either formatted or is corrupted. This would not work if the main system partition containing the OS itself is damaged.

Starting Windows Vista Microsoft made the boot partition a separate partition (generally 100MB)from the partition containing the actual OS files.

Step 1 Get the appropriate WIN 7 recovery Image from here.

Step 2 Create the CD/DVD or the USB stick(Skip to Method 2 in this Link )

Step 3 Without the boot sector When you turn on your computer u will get a ‘no Operating system Found’ error . So you will need to set your boot drive to the DVD or the USB drive Depending upon whta media you are using.

Step 4 Once you Boot into the Repair Disk Hit Startup Repair. If that fixes the issue. you are all set! But for me that was not so Easy. I Selected the Command Prompt Option the type in the following commands and hit enter after each command

diskpart

list disk

select disk (followed by the number of the OS disk; most likely 0)

list partition

select partition (followed by the number of the Boot partition; most likely the 100-200Mb partition)

active

exit

Step 5 Now again type

diskpart

list disk

select disk(followed by the number of the OS disk; most likely 0)

list partition

make Sure there’s a star(*) against the selected boot partition

then type format and hit enter. This will format the boot partition to NTFS.

Step 6 Now to repair the boot partition make the boot partition active by repeating the STEP 4

next enter following commands and hit enter after each command.

bootrec /fixmbr

bootrec /fixboot

bootrec /rebuildbcd

Step 7 Now restart the computer with the recovery media plugged in.

now in the recovery options select the ‘Startup Repair’ option. It should b able to fix any other issue with the boot sector and restore it to the optimal state.

Now Restart the computer and this time remember to unplug the media when the system shuts down.

Have Fun.

Let me know how i goes in the comments below! :)

Best of Luck!

These Posts Were really helpful:

[1] http://www.windowsreinstall.com/winre/createfromiso/#.Uhm2oG3tx24

[2] http://www.selectrealsecurity.com/fix-windows-startup

[3] http://windows.microsoft.com/en-US/windows-vista/What-are-system-partitions-and-boot-partitions

[4] http://windows.microsoft.com/en-us/windows7/create-a-system-repair-disc

select partition (followed by the number of the OS partition; most likely the largest partition)

Playing with the UART on the TI Stellaris Launchpad.

I just started playing around with the TI Stellaris Launchpad a couple of days ago.

The Launchpad is a pretty powerful little dev board. It has  ARM Cortex-M4F core at it heart. The really awesome thing is that there’s a Full fledged  debugger built-in which makes it a really good board to start with ARM micros.

I was fiddling with the UART trying to setup two way communication with the micro. so i started out with the uart_echo project included in the Stellarisware bundle.

The uart_echo code works with the UART0 of the micro and i wanted to get it running on the UART1, Sound simple right? But for a Newbie to this micro-controller it might be a bit difficult. That was what happened it took some amount of digging around the internets and the documentation to get the code to do what i wanted but finally it started working

Here’s what i ended up doing. First i reconfigured all the I/Os the UART1 Pins can be used either on PB0,1 or on PC4.5. I used the PB0 and PB1 pins. changed the code in all the other relevant places in the main code, tried running the code . I got the “Enter Text” messgae on the terminal. It means the Tx was working fine. but i could get a echo back from the micro. The uart_echo uses the uart receive interrupt which was not being triggered. So i needed to get the interrupt triggered when the data comes in on the RX pin. by the way i did try the echo function running in the while loop and that confirmed that the physical connection was good and that the code was working.

I stumbled upon a forum post by another person facing similiar problems where he suggested that i make changes to the interrupt vector table in the startup_ccs.c file  i simply replaced the IntDefaultHandler with the UART1IntHandler which is the interrupt handler for UART1 and like magic the code started working! Here’s the final Ti Code Composer studio v5.2 project. You can Import the code directly into CCS using the import option.

Planning to get the PWM working now…..will post on it soon…