Pages

Tuesday, February 9, 2016

New journey in the world with IoT(Internet of Things)

The Internet of Things (IoT) is the network of physical objects—devices, vehicles, buildings and other items which are embedded with electronics, software, sensors, and network connectivity, which enables these objects to collect and exchange data (Ref. wiki).

In simple terms, small embedded controller(IoT) can be controlled or monitored over internet. For ex. you can log the your room temperature into the server and it can be view-able anywhere in the world. Similarly, you can turn on/off your room light from anywhere in the world with the help internet.

The whole world is already jumped into the concept of IoTs and giving lot of flexibility in developing programs to create solutions for world hunger problem. The big companies like google, matlab, cisco, microsoft, sap, GE and many other are provided platform already to build solutions.

As a curious embedded programmer i have started developing my first IoT device to monitor my room temperature over the internet. I have used below components/services for my application,
1) Arduino uno - Development kit
2) ESP8266 - Wifi module
3) https://thingspeak.com/ - IoT server
4) B57703M0103G040 - NTC sensor
5) My mobile as wifi hotspot with my GPRS service
6) some resistors and connecting wire.

I will share my thoughts and experience in futures posts. Stay tuned for it.

Monday, March 23, 2015

Excel based tool for timing diagram

Hi Folks, Today I came across a problem in plotting timing diagram based on the timers and the triggering instances. So i thought of creating excel macro based tool to solve this specific type of the requirement...

This tool helps in creating timing waveform based on the the values in the excel cell. Beauty of this tool is it can plot N number of triggers with N numbers of timers in one group. Also you can have multiple diagrams on a single sheet.

Here i have attached the Excel macro based tool with the WebEx recorders for its usage. Drop comments if you find it is useful.


WebEx demo
Excel tool.
useful video on timing diagram creation on excel

Tuesday, January 22, 2013

Micromax A116 is better than A110

Micromax launched a new smartphone A116 Canvas HD with Android 4.1 (Jelly Bean) and powered by a 1.2 GHz quad-core processor, the company’s first quad-core processor smartphone (As the world's first commercialized quad-core Cortex-A7 SoC).


Micromax A116 Canvas HD Specs
  • 5-inch (1280 x 720 pixels) HD IPS display, colour depth of 16.7 million
  • 1.2 GHz quad-core MediaTek MT6589 processor
  • Dual Sim
  • 1GB RAM
  • 4GB internal memory
  • Expandable up to 32GB
  • 8-megapixel rear camera, LED flash and 4X zoom
  • VGA front camera
  • 2100 mAh battery
  • Android 4.1 JellyBean (up-gradable to 4.2)
  • 3G, WiFi 802.11 b/g/n, Bluetooth, GPS/A-GPS
  • 3.5mm audio jack

The price of the smartphone is expected to be below Rs 15,000, and it will be available in India from the first week of February 2013.

Video Review

Monday, November 5, 2012

SMpool - Study Material Pool


Hi all,

we have created new public website http://SMpool.com . to provide free service for everyone to Share - Search - Download any study material.. I need all of your support and encouragement to reach one who needs it..

Also it has free webhosting service with many free features. To know more about thease, please visit below links

Show your Encouragement by subscribing to below social networks,






Tuesday, October 23, 2012

C# code for ADFLY API and it works for similar services

Do you want program to create dynamic short url from your application?? Then here is the class file written in C# programming language. This is very simple code and any one can modify and reuse this code. Also enhancement are appreciated if you have done on top of this code. This is specifically written and tested for adf.ly short url service. Just by modifying APP_ID and USERID you can use it for your url shortner account.

Here i provided full class file written in C#.NET technology. Below this class program, i have provided how to call this class. Calling this service is pretty much simpler and just two line needed. Use GenerateShortUrl function under try catch block, you can see any error occurred in class file as an exception; otherwise you will get short url successfully obtained from adf.ly website.

Code C#


using System.Net;
using System.IO;

 public class UrlShortService
    {
        private string _APIKEY;
        private string _UID;
        public enum AdvertType {Banner, FullPage};
        public enum Domain {Adf_ly,q_gs};
        private string  _AdvType;
        private string  _Domain;
        private string _UrlBaseAddress;
        private string _RequestURL;
        private string GetAdvType(AdvertType adv)
        {
            string tmpAdType;
            if (adv == AdvertType.FullPage)
                tmpAdType = "int";
            else
                tmpAdType = "banner";
            return tmpAdType;
        }
        public UrlShortService(string APPKEY, string UID, AdvertType AdvType, Domain DomainType)
        {
            _UrlBaseAddress = "http://api.adf.ly/api.php";
            _APIKEY = APPKEY;
            _UID = UID;
            _AdvType = GetAdvType(AdvType);
            _Domain = GetDomainName(DomainType);
            _RequestURL = string.Format("{0}?key={1}&uid={2}&advert_type={3}&domain={4}&url=", _UrlBaseAddress, _APIKEY, _UID, _AdvType, _Domain);
        }

        public UrlShortService(AdvertType AdvType)
        {
            _UrlBaseAddress = "http://api.adf.ly/api.php";
            _APIKEY = "1a01cb1aa861a0d11f293beba530e6a7"; //provide your appkey
            _UID = "2655514"; // provide your User ID
            _AdvType = GetAdvType(AdvType);
            _Domain = GetDomainName(Domain.Adf_ly);
            _RequestURL = string.Format("{0}?key={1}&uid={2}&advert_type={3}&domain={4}&url=", _UrlBaseAddress, _APIKEY, _UID, _AdvType, _Domain);
        }

        public UrlShortService()
        {
            _UrlBaseAddress = "http://api.adf.ly/api.php";
            _APIKEY = "1a01cb1aa861a0d11f293beba530e6a7";
            _UID = "2655514";
            _AdvType = GetAdvType(AdvertType.Banner);
            _Domain = GetDomainName(Domain.Adf_ly);
            _RequestURL = string.Format("{0}?key={1}&uid={2}&advert_type={3}&domain={4}&url=", _UrlBaseAddress, _APIKEY, _UID, _AdvType, _Domain);
        }

        
        public string GenerateShortUrl(string UrlName)
        {
            string Result;
            try
            {
                HttpWebRequest httpReq = (HttpWebRequest)HttpWebRequest.Create(_RequestURL+UrlName);
                HttpWebResponse httpResp = (HttpWebResponse)httpReq.GetResponse();

                Result = new StreamReader(httpResp.GetResponseStream()).ReadToEnd().Trim();

                if (Result.ToLower() == "error")
                {
                    throw new Exception("ShortUrl Response Error");
                }
            }
            catch (Exception err)
            {
                throw new Exception("ShortUrl Conversion Error: " + err.Message);
            }

            return Result;
        }        
        
        }

How to Use:


            UrlShortService urlshort = new UrlShortService();
            string ShortUrl = urlshort.GenerateShortUrl("http://intbuzz.blogspot.com");

ShortUrl contains value
 http://adf.ly/DxO9t

Please feel free to ask any doubts in your mind. Also provide comment if it is useful to you.