This is IRIS electric door latch authentication project named dIRIS. This is not a completed project. Still in development stage. I will post completed project later.
Thursday, December 18, 2014
Android Tutorials - Installing Eclipse and SDKs (Tamil)
This video was done when we were in 2nd year for Device interface course. Purpose of this video is increasing Tamil content in the Internet.
Monday, November 17, 2014
Arduino සිංහලෙන් - හැදින්වීම (Introduction to Arduino)
Arduino drives හරියාකාරව ස්ථාපනය කර ගැනීමට නොහැකි වුවහොත් මෙම උපදෙස් පිළිපදින්න.
විශේෂ ස්තුතිය Amalan Mahendran
Saturday, November 15, 2014
Reverse Engineering LED lamp
+
This video was done when we were in second year. This is done for the Integrative Product Analysis & Design course.
This might helpful for you. There are lot of things to study.
Sunday, October 5, 2014
JSON
What is JSON?
JSON or JavaScript Object Notation, is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. JSON is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others.
Douglas Crockford was the first to specify and popularize the JSON format. JSON grew out of a perceived need for stateful, real-time server-to-browser communication without using browser plugins such as Flash or Java applets, which were the dominant method at the time.
JSON is built on two structures:
JSON is built on two structures:
- A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
- An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.
JSON can represent four primitive types (strings, numbers, Boolean and null) and two structured types (objects and arrays).
A string is a sequence of zero or more Unicode characters [UNICODE]. An object is an unordered collection of zero or more name/value pairs, where a name is a string and a value is a string, number, Boolean, null, object, or array. An array is an ordered sequence of zero or more values. The terms "object" and "array" come from the conventions of JavaScript.
JSON's design goals were for it to be minimal, portable, textual, and a subset of JavaScript.
A string is a sequence of zero or more Unicode characters [UNICODE]. An object is an unordered collection of zero or more name/value pairs, where a name is a string and a value is a string, number, Boolean, null, object, or array. An array is an ordered sequence of zero or more values. The terms "object" and "array" come from the conventions of JavaScript.
JSON's design goals were for it to be minimal, portable, textual, and a subset of JavaScript.
Advantages
JSON is easy for humans to read and write.
It is easy for machines to parse and generate.
JSON is a language-independent data format.
Compact data format to exchange data between applications.
JSON is very good tool support (almost every programming language supports JSON).
Less overhead while parsing and serialization than XML.
JSON can be parsed trivially using the eval() procedure in JavaScript
Compact data format to exchange data between applications.
JSON is very good tool support (almost every programming language supports JSON).
Less overhead while parsing and serialization than XML.
JSON can be parsed trivially using the eval() procedure in JavaScript
Applications
Web services responses. In the 'old' days, web services used XML as their primary data format for transmitting back data, but since JSON appeared, it has been the preferred format because it is much more lightweight.
If you are encoding PHP objects by default the encoding mechanism can only access public properties of these objects. When a method toJson() is implemented on an object to encode, Zend_Json calls this method and expects the object to return a JSON representation of its internal state.
If you are encoding PHP objects by default the encoding mechanism can only access public properties of these objects. When a method toJson() is implemented on an object to encode, Zend_Json calls this method and expects the object to return a JSON representation of its internal state.
Examples
Storing JSON Data
As a simple example, information about me might be written in JSON as follows:
var jason = {
"age" : "24",
"hometown" : "Missoula, MT",
"gender" : "male"
};
This creates an object that we access using the variable jason. By enclosing the variable’s value in curly braces, we’re indicating that the value is an object. Inside the object, we can declare any number of properties using a "name": "value" pairing, separated by commas. To access the information stored in jason, we can simply refer to the name of the property we need. For instance, to access information about me, we could use the following snippets:
document.write('Jason is ' jason.age); // Output: Jason is 24
document.write('Jason is a ' jason.gender); // Output: Jason is a male
Storing JSON Data in Arrays
A slightly more complicated example involves storing two people in one variable. To do this, we enclose multiple objects in square brackets, which signifies an array. For instance, if I needed to include information about myself and my brother in one variable, I might use the following:
var family = [{
"name" : "Jason",
"age" : "24",
"gender" : "male"
},
{
"name" : "Kyle",
"age" : "21",
"gender" : "male"
}];
To access this information, we need to access the array index of the person we wish to access. For example, we would use the following snippet to access info stored in family:
document.write(family[1].name); // Output: Kyle
document.write(family[0].age); // Output: 24
http://www.json.org/
http://www.secretgeek.net/json_3mins
Saturday, February 1, 2014
Installing Arduino Drives
To detect arduino there must be arduino drivers install in your PC. Sometime you have to install drivers manually. I am going to show this using Windows 8. But same steps are valid for Windows7, vista and XP. You must download Arduino IDE must first.
Plug your Arduino board in to PC. Sometimes PC will detect drives automatically. If not follow these steps.
1) Plug your Arduino board in to PC. Go to System properties and select Device Manager.
2) In this there is a Unknown device. Because still we didn't install arduino drivers.
I am using Arduino Mega 2560 board. I will show on this. Make sure to remember COM port number. later it will important when use Arduino IDE. In this case it is COM3.
See you in the next tutorial.
Saturday, January 25, 2014
Introduction to Arduino
Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. Arduino started in 2005 as a project for students at the Interaction Design Institute Ivrea in Ivrea, Italy. It's an open-source physical computing platform based on a simple microcontroller board, and a development environment for writing software for the board.
Arduino can be used to develop interactive objects, taking inputs from a variety of switches or sensors, and controlling a variety of lights, motors, and other physical outputs. Arduino projects can be stand-alone, or they can communicate with software running on your computer (e.g. Flash, Processing, MaxMSP.) The boards can be assembled by hand or purchased pre assembled; the open-source IDE can be downloaded for free.
Download the Arduino Software
There are so many different boards. But few boards are commonly use. We can select boards according to our project. These are the commonly use boards.
- Arduino Uno
- Arduino Mega ADK
- Arduino Mega 2560
- Arduino Nano
- Arduino Leonardo ect.
The special thing is there are so many arduino compatible Shields for these bords. There are libraries for this Shields. So that we can simply use these libraries and programme arduino. Some of the Shields are
- Arduino GSM Shield
- Arduino Ethernet Shield
- Arduino WiFi Shield
- Arduino Wireless SD Shield
- Arduino Motor Shield
- Arduino Wireless Proto Shield
- Arduino Proto Shield etc.
Arduino can sense the environment by receiving input from a variety of sensors and can affect its surroundings by controlling lights, motors, and other actuators. The microcontroller on the board is programmed using the Arduino programming language (based on Wiring) and the Arduino development environment (based on Processing). Arduino projects can be stand-alone or they can communicate with software running on a computer (e.g. Flash, Processing, MaxMSP).
http://arduino.cc/
http://en.wikipedia.org/wiki/Arduino
The Arduino programming language is an implementation of Wiring, a similar physical computing platform, which is based on the Processing multimedia programming environment.
Subscribe to:
Posts (Atom)