Friday, December 16, 2011

Leh Trip

It was long…
It was tiring…
It was a spectacular journey…


Picassa web link
Let’s start from Day 1: (28th May)
All 4 of us met in Jammu. Sanchit and Naman came from Delhi via bus, while Pratyush and Neeraj came by Malwa Express from Indore. The weather was bad. A day before it had rained and now dusty sand storm prevailed. Even at 4pm sky got dark and dangerous. Took an auto and managed to get a descent hotel in jewel chowk. Next day, we had plans to leave early morning for Srinagar. But at night it rained a lot. We talked to locals and at Srinagar tourist center and got to know that in last 2 days it had rained heavily. Usually, May end is supposed to be hot and rains was a bad surprise. Travel agents said Srinagar-Kargil road will not be open and therefore there was no point in going to Srinagar. After talking at numerous places, we concluded that reaching Leh was out of reach. Therefore, we started thinking of 4-5 day treks in and around Srinagar. After discussing a lot, we planned to visit Vaishno Devi in next 2 days and see if roads get open later.
Day 2 (29th May)
Got ready by 7 and headed towards taxi stand. While bargaining for taxi, Neeraj fumbled saying what the rates for Srinagar are, and hence added to the chaos. After bargaining for half an hour and finalizing the destination, we kicked off for Srinagar. Jammu-Srinagar distance is 300kms and 8-10hr drive. Journey started with a handful of monkeys along the road till Udhampur. After that, Ghats started and began ascent till highest point on the way Patnitop(2500m). It began to rain thereafter and weather got cooler, a relief from Jammu’s hot weather. Along the way we ate lot of cherries, kubani and strawberries. After that we passed through Jawahar tunnel and finally reached Srinagar by 5. We wanted to stay close to the Dal Lake and finally bargained a house boat. It had rained a day before and weather was just awesome. After quickly occupying the house boat, we set out for 3 hr shikara ride. First went to floating garden and had hot yummy pakodas. Sight was just spectacular. On one side, you can see ice caped gulmarg with shades of sunset, on other side mountains with dark clouds hovering and in between Dal main road market. For me it was one of the most beautiful lakes ever seen. Later while shikara, we bought pashmina shawls and kesar. 3 hr boat ride felt too short for such a beautiful lake, but finally went off to sleep in our house boat.
Day 3 (30th May)
Got ready by 6 and off the house boat. After lot of bargaining on taxis, we set out of for Kargil. It is 220kms and an 8 hr drive. Roads had just opened and we drove off on a high note. Around 11 we reached Sonamarg. Throughout the way to Sonamarg, Sindh River coursed beside us. Because of recent rains, we saw fresh glaciers. Small village settlements amidst mountains and mountain sheep along the way added to the delight. We had our lunch at Sonamarg. Road from Sonamarg to Drass is one way and opens around 12-1. We waited till 2.30 when we finally got a clearance. Just we would have travelled for half an hour, all cars had to halt again at Zojila pass. Military men told, because of rains land slide had occurred. Got stuck there for another 2 hrs and finally resumed around 6. Luckily we carried some chocolates and chips as there was nothing to eat. Sunsets around 8, so we still could see the view around. Soon we passed Amarnath base camp, and Captain Mode. Captain Mode is one of the most dangerous and breathtaking road I had ever seen. With snow on both sides, it is definitely ‘A must watch’. It got pretty cold and darker. We were passing through 10m high snow walls on both sides which reminded us of song ‘Ye ishq hai’ from Jab We Met. We wanted to stop and play with snow, but it was very late and we had to move on. Finally, reached Kargil at 12:30 in night. It turned out to be a hectic 18 hour journey. An uncle was travelling with us in our shared taxi. Luckily, he had a guesthouse already booked and helped us get a room there. Exhausted we all went to sleep without having any dinner.
Day 4 (31st May)
Beside our guesthouse muddy Suru River flowed. We had negotiated with the same taxi for our Kargil-Leh Trip with same uncle accompanying us. He had travelled a lot in this region and briefed us throughout the way. Trip was again a distance of 230kms and an 8-10hr drive. With some local bread and tea we kicked off our journey. Soon terrain changed from green ice capped mountains to brown Rocky Mountains. Sindh River flowed along with us creating a small lush green patch on both of its side. Wheat and Sarson were the main crops of the region. It seemed like a running oasis besides us, amid a lifeless dessert. All of us couldn’t stop praising the greatest architect ‘The God’ for such a striking contrast of varied colored Rocky Mountains, river with a hint of greenery and snow atop. It seemed God had taken brown, orange, red, green and black colors in a palette and mixed it to produce all shades of mountains. I called it ‘The Barren Beauty’. We passed through Namkeen (because of salt like white deposits) and Swarana (truly golden in color) mountains and ‘Fatula Top’ (13479 FT) the highest point in Srinagar Leh road. Towards end, we entered an enormous plateaus region and roads became just fantastic. By 5 we reached Leh. We felt a sense of victory (but for me journey was still unfinished, which were still eying on Pangong Lake). We got a very nice homely guest house named Siala in old fort road. Guest house owners were really very hospitable and gave us every bit of information about the city. Even being in remote location, Leh seemed to be highly commercialized place with almost everything available in market. In evening we had a nice dinner in hotel Lamayuru and explored the city.
Day 5 (1st June)
Next day, we went for local sightseeing to Leh palace. Trying a shortcut, we went through local streets and finally managed to reach the entrance. It was 8 and palace usually opens around 10. We managed to find the person in charge and asked him to open the doors. He escorted us to the main temple room. It was beautiful and we sat there for a while. Rest of the palace was mostly dilapidated. We went till the top and had an awesome view of the Leh city. We could hear soothing Tibetan music being played in city market monastery and a cricket match played in distant small stadium. Even at 10am we could see the moon visible. Surrounded by Rocky Mountains with a tinge of snow on them, sun and moon overhead, view of the whole Leh city was a pleasure. While returning, saw some cute furry dogs and donkeys. I must say, Leh dogs are the most adorable and at the same time laziest. Few of them woke up from one side and lay down on other side of road under the sun.
Next, we hired 2 bikes Thunderbird and Avenger and did booking for Pangong Lake next day. With tanks filled, we roared off for the monasteries. First, we went to Shey. Climbing few stairs, we talked a bit about Buddhist rituals from the priest and explored around. We could see lot of beautiful stupas along the way. Next, we went to Thiksey. Presiding over a small hill, this monastery is really picturesque (looks similar to what we see in Hollywood movies or imagine Lhasa). There are lot of temples and paintings inside. We spent a quite a time relaxing there. Then we went to a restaurant nearby and had native Tibetans soups and main course. Suddenly the weather became rainy and we sped to our last destination Hemis monastery. Driving the ascent, through magical terrain was one of a lifetime experience. We went through small villages and saw mountain goats and Yak for the first time. Finally, browsing through the terrain, we got hold of Hemis monastery at a distance. It is really a beautiful tranquil settlement. Inside, we saw group of monks dancing to the hymns. There is a large museum inside, containing priceless possessions from Buddhist culture. I was flattered to see a book containing sacred text written fully in gold. Even the constitution and amendments were written in gold on silk cloth. Some of the artifacts were from 3 AD and is definitely a must watch. Finally, we returned to Leh city and explored more of Tibetan food for dinner.
Day 6 (2nd June)
Finally, my dream was going to be true. Yes I was going to Pangong Lake.
It is 150kms and roughly a 5 hr drive. On the way, we stopped at ‘Chang LA’, the world’s third highest pass at a height of 17,586 FT. Our hopes of running and playing in snow were finally fulfilled, which we missed out in Srinagar-Kargil road. With 30kms away, Sanchit got first glimpses of the Lake - A patch of blue like snake. Finally when we reached, I could only say ‘Wow’. Different shades of peacock blue color and seagulls’ swimming around were something to die for. 40% of the 160km lake is in India and rest in China. We went up till last point ‘Spangmik’ were civilians are allowed. This is where concluding part of ‘3 Idiots’ was shot. I called it ‘Phunsuk Wangdu’ point. Finally yay, my mission became complete. I put my fingers in the lake, only to realization that my fingers went numb. We could not stay there for long as we had to return back same day. Lake is supposed to change color as the day passes. I could see the change in color from dark blue to lighter shade by the time we started off. Had a lunch by lake side, and returned to Leh by 7. While returning we saw a rare animal of this region, ‘The Himalayan Marmot Phiya’. They were damn cute and looked like bear cubs. We went to sleep early, as some of us felt symptoms of AMS and exhausted.
Day 7 - 8(3rd – 4th June)
We had planned to leave from Leh on 4th to Manali. But luck was little bad and roads to Manali had not opened. Also taxis to Srinagar started at 4pm instead of morning. So, we decided to leave the same day. 3-4 hrs to leave, we explored Tibetan and main market and did some handicraft and souvenir shopping.
Journey to Srinagar is a 16hr cannon ball run. Left around 6, we first went to Magnetic hill. Got down and evaluated the optical illusion behind it. Later, we reached Drass at 2 in the morning. Drass-Sonamarg one way opens around 4 in the morning. Suddenly around 6am, we were in zojila pass near Amarnath base camp when a tragic thing happened – fuel over. Amid cloud and rain, we were freezing inside, when driver left us in agony for fuel in passing taxi. After one and half hours, he finally came back with 10 liters of petrol. At 11, finally we reached Srinagar. Weather was rainy and delightful. In the evening, we went to Lal Chowk and bought variety of dry fruits.
Day 9 (5 June)
We started off for Jammu from Lal Chowk around 9am. Tired we slept most of our way reaching Jammu around 7. We went straight to railway station and had some food. Boarded our train to Delhi around 9pm.
Day 10 (6 June)
Explored South Delhi and Noida after a long time.

Day 11 (7 June)
Flew back to Jaipur, with fantabulous memories of Leh trip.
Conclusion: Trip gives you a lifetime experience. You get a combined experience of Venice (Srinagar), Switzerland (Srinagar-Kargil),Grand Canyon (Kargil-Leh) and much more. Truly worth going!

Saturday, November 12, 2011

Sending SMS using ATmega16 and GSM Modem


Hello Friends, 
This is the part of my project at "Arnium Technology Pvt. Ltd." start-up at IIT Kanpur. In this project I need to continuously collect incoming analog sensor value at ADC port of ATmega16 and  send this value to a fixed mobile no. with an interval of 5mins.

AT Commands
These are the Attention Commands, used to control the many embedded systems. There   are set of at commands for GSM modem.
So to send SMS we have to send set of AT commands to GSM modem.

Eclipse with ARM plug-in
ARM plug-in in Eclipse IDE gives very high end facility to write code and configure ATmega16. Please go through the link to configure Eclipse for embedded use.
http://www.bricsworld.com/?i=8a229cc7bde8eefc56bceba5afe84ef6f89e8379

UART (Universal Asynchronous Receiver and Transmitter) to RS 232 converter
Since the Operating Voltage level of ATmega16 and GSM modem is different; this converter is used to provide the synchronization between the two.

Embedded C code to configure ATmega 16

#include <avr/io.h>
#include "lcd_lib.h"
#include <util/delay.h>
#include<stdio.h>
#include<adc_lib.h>
#include<uart_lib.h>
int adcpin1,i;
char a[15];
int main(void )
{
LCDinit();
LCDclr();
ADCinit();// Initializes ADC in 10 bit mode
char b="*";
char d="*";
char q[]="at+cmgs=",p[]="+919005813359",r[]="IITK";
DDRB=0xff;
set_uartbaud(9600);
while(1){
LCDclr( );
adcpin1 = read_adc(0);// returns the digital value of the analog i/p connected to pin 0 of port A
LCDGotoXY(0,0); //LCD control command, used to set the position of cursor
sprintf(a," ADC Pin1 = %d",adcpin1);
LCDdisplay(a);
_delay_ms(3000);
sendstring_uart(q);
_delay_ms(1000);     
sendchar_uart(0x22);
sendstring_uart(p); //sending AT Commands starts here
sendchar_uart(0x22);// actual command is : at+cmgs="mobileno"(return)message to be sent("ctrl+z") to complete the command.
sendchar_uart(0x0d);//sendchar is used to send character to atmega16 uart
_delay_ms(1000);    //delay of 1 second
sendstring_uart(r);
_delay_ms(1000);
sendstring_uart(a);
sendstring_uart(" ");
_delay_ms(1000);
sendchar_uart(0x1a);
LCDclr( );
LCDGotoXY(0,0);
LCDdisplay("IITK");
sprintf(a,"ADCpin1= %d",adcpin1);
LCDGotoXY(5,0);
LCDdisplay(a);
LCDGotoXY(0,1);
for(i=0;i<50;i++)// approx 5 mins delay
_delay_ms(300000);
}
return 0;
}

To download complete project please go through the link:
http://www.giftjaipur.com/Naman/downloads/SMS sending using ATmega16 and GMS Modem.zip

Thank you

Monday, June 6, 2011

Journey till first order on GiftJaipur.com


Guys before reading this article I would like you to inform yourselves about the CMS technology. In my experience, this technology has changed the complete procedure of website development. For most of the engineering graduates like me, code generation and its successful running is the most important task; designing and application development comes only after the successful execution of the code. But in CMS, we need to focus on the application of the code or the website. We need to concentrate on the designs and pictures to be included and on the issues regarding publishing of the website. In addition, there are lots of other features available to make your website successful.
So I started learning joomla, one of the CMS technology tool. My elder brother, Sanchit Garg, inspired me to learn it. I was completely fascinated by this technology. In the beginning, I was given a web space on my brother’s website. Learning cpanel went on side by side. After learning about the basics of joomla, I thought of developing an eCommerce website. The first thought that came to my mind was of selling Jaipur's world famous handicraft items. But I was suggested that there are many legal issues involved in this procedure regarding the custom duties, etc. So I thought of providing a platform to the people all over World to book their orders for celebrating the special occasions in their lives just by the click of a mouse.
I thought of developing the site giftjaipur.com through which people can order lovely gifts for their loved ones. For this, I learned how to create an eCommerce website using joomla. Then I got to know about virturemart extension of joomla. After getting success in using this component, I literally fell in love with joomla. My dream of creating an eCommerce website has come true.
After the successful testing of virtuemart extension, the most important part of eCommerce website came and that was the designing part; for which a highly professional template was required. Somehow I managed to get a template which after lot of modification served the requirements of the desired design. I changed the logo, and many of the pictures to give it the exclusive look of giftjaipur.com
Finally I achieved in my goal of creating a sample website, with sample products added, so that I can ask the local vendor shops to display their products on the site.

Sales and marketing Experience
My first target was the florists who sell quality flowers. Some vendors showed a lot of interest and gave a fantastic response. Our requirement of their product picture and related data was duly fulfilled.
We got same response from the cake and chocolate vendors.
Now the job was to upload of data to convert a sample website into a real one....

Experience of the first order
I got a phone call from Mr. Rahul works as a senior executive in Nokia Seamons. He wanted to present a birthday gift to his friend that would include a bunch of 20 red roses with a sunflower in between along with a birthday chocolate cake, and some chocolates. And this order was to be delivered at the midnight as he was planning for a surprise party. We packed all the items and in addition we also included some accessories like birthday cap, knife, candles, etc. which we thought were the small but important necessities of this order. This first order was very important to me and then Rahul’s feedback came. It was the happiest moment. He was overwhelmed by our service and our first order was a grand success.
Now, the site is running successfully and we receive a lot of orders every day. And we deliver them as per the desire of the customer, taking special care of the feelings and the requirements of the occasion involved, to make the special moments of your life simply PERFECT!!!

Tuesday, May 24, 2011

Domotics using bluetooth

Introduction
With the rising power of technology, we are able to accomplish things at a much quicker rate.  The project aims at controlling the switching of the home appliances with the help of a mobile phone using the Bluetooth technology. This will not only provide convenience to the common man but will be a boon for the elderly and disabled. It can also be extended to be used to control the home appliances via the remote areas which will not only reduce the energy and time wastage but will also provide security.
The basic idea of our project lies in the controlling of the various home appliances through our mobile phone. The mobile phone will act as a remote control which will control the switching on/off of all the appliances in the home. For this we will develop software which will provide a graphical interface to a common user so that he can easily control the switching of the different appliances. The bluetooth enabled mobile will do the function of sending the signals according to the command given by the user to a bluetooth chipset which will direct these signals to microcontroller and this microcontroller will enable/disable the relays accordingly to switch on/off the device.
Our project aims at data acquisition and based on the data acquired the control of the switching action of any device attached to the circuit. Data is transferred between two Bluetooth enabled devices, one act as the server and other as the client. All the controlling action is done by mobile phone.
The technology used (bluetooth) is wireless and inexpensive and uses an unlicensed radio spectrum with the main disadvantages being the range of operation. Bluetooth has a range of only 10m in closed spaces and 20m in the open thereby restricting the operational area.
The current alternatives available in the market are remotes based on infrared technology which suffer from the major drawbacks of line-of-sight transmission and no security. But this project makes your own mobile phone, your centralized remote and uses inbuilt Bluetooth which overcomes the shortcomings of IR technology This report throws a light on the various aspects which were considered to build this project.
 The basic block diagram mainly consisting a transmitter stage & receiver stage.  Mobile phone will acts is transmitter & microcontroller will acts as receiver.  The Data transmission between transmitter & receiver is making through the Bluetooth module.  The status from the relay is transmitted to mobile through Bluetooth module and process of controlling is taking place in mobile phone which is our controller.

PRACTICALITY AND FEASIBILITY
The project designed is very practical in nature because everything can be controlled with the help of just a mobile phone which is widely available nowadays and also proves to be handy. Also the project is feasible because the cost of the project is very less as compared to the expensive Wi-fi home control systems presently available in the market which require an additional cost of internet services.

FUTURE SCOPE
This project can be further developed by integrating it with the internet to monitor your home while sitting in a remote area. By doing this, one can keep an eye on his or her home through an internet connected to the user’s mobile phone or PC or laptop. This will not only improve the security of your home in this modern day world but will also assist in conservation of energy like if you left any home appliance switched on by mistake, then you can check the status of the appliance on the graphical interface made on your mobile and can switch it off using the internet connectivity.