Search This Blog

Sunday, 25 December 2016

How to Install Android SDK and Android Studio

Related image
As a mobile developer, the Android SDK is an integral part of your development environment, and as such it’s important for new developers to know how to download and install Android SDK or, the more popular, Android Studio. The main difference between the two is package size, and features. The Android SDK is the bare bones version of the package and it doesn’t include either of the two IDEs (interactive development environments): Android Studio or Eclipse. Android Studio includes its own IDE as well as a second IDE, known as Eclipse. If you elect to download Android Studio, on the other hand, your package will contain both IDEs, as well as the Android SDK.
Don’t worry too much about this, as you can always download and install additional Android SDK packages later should you opt for the stand-alone SDK package as opposed to Android Studio.
Just for good measure, here’s how to install both. We’ll start with the bigger of the two packages, Android Studio.

How to Install Android Studio

Before we get started, you’ll need to ensure that you have installed JDK 6 or higher (JDK7 is required for Android 5.0 and higher) on your PC.
Note: All of the following instructions, as well as the installation tutorials are for your PC. You can’t download or install Android Studio on your Android device.
To check your version, open terminal (OS specific details below) and type:
javac -version
If the JDK doesn’t show up, or you have an older version and would like to upgrade, download JDK here.

How to Install Android Studio on Windows

windows logo
  1. Download and launch the .exe file to your PC from the Android Studio home page.
  2. Follow the instructions on the setup wizard to install Android Studio.
  3. If asked to point to where Java is installed, you need to set an environment variable in order to direct the installer to the proper location. To do that, select Start menu > Computer > System Properties > Advanced System Properties. From there you’ll open the “Advanced” tab and click “Environment Variables.” Here you’ll add a new system variable titled JAVA_HOME that points to your JDK folder.
For example:
C:Program FilesJavajdk1.7.0_21
The actual tools and other SDK packages are stored outside of the directory that contains Android Studio. To access the tools directly, open the command prompt (Apps > Windows System > Command Prompt) and use the following to find them:
Users<user>sdk

How to Set Up Android Studio on Mac OS X

mac logo
  1. Download the installer to your PC and launch the .dmg  file from the Android Studio home page.
  2. Drag and drop the .dmg into your Applications folder.
  3. Open Android Studio and follow the instructions from the setup wizard.
If you get a warning saying that the file is damaged and should be moved to the trash, go to System Preferences > Security & Privacy and under the “Allow applications downloaded from” section select “Anywhere.” From here you can repeat Step 3 and install the program.
To access Android SDK tools from the command line (Finder > Applications > Utilities > Terminal):
/users/Library/Android/sdk/

How to Set Up Android Studio on Linux

Linux  logo
  1. Download and unpack the ZIP file on to your PC. The installer is found at the Android Studio home page.
  2. Launch Android Studio by navigating to the/android-studio/bin/directory in Terminal (Applications > Accessories > Terminal) and execute the following:studio.sh
  3. Addandroid-studio/binto your PATH environmental variable so that you can start Android Studio from any directory.
  4. Follow the setup wizard and install SDK tools

Adding & Installing Packages

  1. Click “SDK manager” in the toolbar and select one of the following from the Tools directory:
    • Android SDK Tools
    • Android SDK Platform-tools
    • Android SDK Build-tools (select the highest version)
  2. And/Or select the following from the Android X.X (latest version) folder:
    • SDK Platform
    • System image for emulation, such as ARM EABI v7a System Image
  3. Click Install X packages
  4. Accept the license agreement
  5. Click Install

How to Install Android SDK

First, download the stand-alone SDK files to your Mac, Windows or Linux PC. Next…
Note: All of the following steps will take place on your PC. You cannot install Android SDK on your phone or tablet

Windows

  1. Double click the .exe
  2. Note the name and location of the SDK on your system so that you can refer back to it easily when using the SDK tools from the command line.
  3. Wait for the installation to finish, and Android SDK Manager will start automatically.

Mac

  1. Unpack the .zip file and move it to the desired location.
  2. Make a note of the name and location of the SDK directory on your system so that you can refer back to it easily when using the SDK tools from the command line.

Linux

  1. Unpack the .zip file.
  2. Make a note of the location of the SDK directory on your system so that you can refer back to it easily when using the SDK tools from the command line.

Wednesday, 23 November 2016

Electrical Power Usage Calculation in Units

Estimating Electricity Usage
When you get your electricity bill each month, you may not think a whole lot about what goes into it.
 But in reality, every appliance or electronic device adds a little something to your bill. By figuring out
what the biggest energy hogs are in your home, you can adjust your usage by unplugging or simply using the device less.
Every change you make should help whittle down your energy expenses.
Calculating the energy cost of an appliance or electronic device is fairly easy. Most devices have a label that lists how many watts it uses,
 either on the device or in the owner's manual. You will need to find this number to figure out how much the appliance is costing you.
You will also need to estimate how many hours a day you use a particular appliance.
  
The Wattage Label









If you can't find the wattage label, there are other options to determine how much power your device uses.
 For example, you can purchase a wattage measuring device, such as the Kill A Watt®. Simply plug your appliance
or electronic device into the Kill A Watt® to determine how much power it uses. Or you can contact the manufacturer,
with your model number, to find out how many watts a particular device consumes. You can also check the list at the
 bottom of the page for common wattage on household devices. Though your particular device may vary,
 it should give you a rough estimate of the energy expenses related to the device.

Calculate Electricity Consumption - 4 Easy Steps

STEP 1
Watts Per Day

To calculate energy consumption costs, simply multiply the unit's wattage by the number of hours you use it t
o find the number of watt-hours consumed each day. For example, let's say you use a 125 watt television for three hours per day.
 By multiplying the wattage by the number of hours used per day, we find that you are using 375 watt-hours per day.
125 watts X 3 hours =
375 watt-hours per day

STEP 2
Convert to Kilowatts

But electricity is measure in kilowatt hours on your electricity bill. Since we know that 1 kilowatt is equal to 1,000 watts,
 calculating how many kWh a particular device uses is as easy as dividing by 1,000.
375 watt-hours per day / 1000 =
0.375 kWh per day

STEP 3
Usage Over a Month Period

Now to find out how much that's actually going to cost you on your electric bill, you'll have to take the equation a bit further.
 First you'll need to figure out how many kWh the TV uses per month.
375 watt-hours per day X 30 days =
11.25 kWh per month

STEP 4
Figuring Out the Cost

Next, pull out your last electric bill and see how much you pay per kWh. For this example,
let's say you pay 10 cents per kilowatt hour. To find how much the TV is costing you in a month,
multiply your electricity rate by the kWh per month that you calculated above.
11.25 kWh per month X $0.10 per kWh =
$1.13 per month

Common Wattages for Household Appliances
The wattage on appliances or electronics varies by device. Typically, older model appliances
use more energy, but newer models tend to be more efficient. You can also purchase
ENERGY STAR appliances, which are among the most efficient appliances.
According to the EPA, here's a list of typical wattage levels for your everyday devices.
Coffee maker
900-1200 watts
Microwave
750-1100 watts
Toaster
800-1400 watts
Dishwasher
1200-2400 watts
Washer
350-500 watts
Dryer
1800-5000 watts
Iron
100-1800 watts
Ceiling fan
65-175 watts
Space heater (40gal)
4500-5500 watts
Hair dryer
1200-1875 watts
Laptop
50 watts
Computer monitor
150 watts
Computer tower
120 watts
Television 19"-36"
65-133 watts
Television 53"-61"
170 watts

Canan IR 3320 or 3320I

General Features
Device: printer/scanner/copier/fax;
Type of printing: black and white;
At work printing: Laser;
Placement: floor;
Sphere of application: large office;
Printer
The maximum size: A3;
Automatic two-sided printing: Yes;
The maximum resolution for b/w printing: 2400x600 dpi;
Print speed: 33 pages/minute (b/w A4);
Warm-up time: 40.2 to;
Scanner
Scanner Type: Tablet/prolonged;
Maximum Original Size: A3;
Shades of gray: 256;
Feeder originals: Bilateral;
Cam
Maximum Copy Resolution (B/W): 1200x600 dpi;
Copy speed: 33 pages/minute (b/w A4), 16 pages/minute (b/w A3);
Time to first copy: 6;
Rescaling: 25-800%;
Step zoom: 1%;
The maximum number of copies per cycle: 999;
Trays
Paper Feed: 4550 list. (Standard);
Paper output: 300 sheets. (Standard);
Finisher
Sort shift: Yes;
Expendables
Paper weight: 64-128 g/m2;
Printing on: card stock, transparencies, labels, glossy paper, envelopes, matte paper;
Drum life: 55,000 pages;
Memory/Processor
The amount of memory: 192 MB;
Hard Drive Capacity: 10 GB;
Fax
PC Fax: Yes;
Interfaces
Interfaces: Ethernet (RJ-45), USB;
Additional Information
OS Support: Windows, Mac OS;
Information Display: LCD Panel;
Power consumption (in operation): 1350 W;
Dimensions (WxHxD): 565x769x678 mm;
Weight: 80 kg;

Tuesday, 15 November 2016

Arduino lcd Tutorial

Lcd Arduino 16*2

The LiquidCrystal library allows you to control LCD displays that are compatible with the Hitachi HD44780 driver. There are many of them out there, and you can usually tell them by the 16-pin interface.

The LCDs have a parallel interface, meaning that the microcontroller has to manipulate several interface pins at once to control the display. The interface consists of the following pins:

A register select (RS) pin that controls where in the LCD's memory you're writing data to. You can select either the data register, which holds what goes on the screen, or an instruction register, which is where the LCD's controller looks for instructions on what to do next.

A Read/Write (R/W) pin that selects reading mode or writing mode

An Enable pin that enables writing to the registers

8 data pins (D0 -D7). The states of these pins (high or low) are the bits that you're writing to a register when you write, or the values you're reading when you read.

There's also a display constrast pin (Vo), power supply pins (+5V and Gnd) and LED Backlight (Bklt+ and BKlt-) pins that you can use to power the LCD, control the display contrast, and turn on and off the LED backlight, respectively.

The process of controlling the display involves putting the data that form the image of what you want to display into the data registers, then putting instructions in the instruction register. The LiquidCrystal Library simplifies this for you so you don't need to know the low-level instructions.

Image result for 16*2 lcd


Hardware & Components

Arduino or Genuino Board
LCD Screen (compatible with Hitachi HD44780 driver)
pin headers to solder to the LCD display pins
10k ohm potentiometer
220 ohm resistor
hook-up wires
breadboard

Circuit Pin Modes 
Before wiring the LCD screen to your Arduino or Genuino board we suggest to solder a pin header strip to the 14 (or 16) pin count connector of the LCD screen, as you can see in the image above.
To wire your LCD screen to your board, connect the following pins:

LCD RS pin to digital pin 12
LCD Enable pin to digital pin 11
LCD D4 pin to digital pin 5
LCD D5 pin to digital pin 4
LCD D6 pin to digital pin 3
LCD D7 pin to digital pin 2
Additionally, wire a 10k pot to +5V and GND, with it's wiper (output) to LCD screens VO pin (pin3). A 330 or 220 ohm resistor is used to power the backlight of the display, usually on pin 15 and 16 of the LCD connector

Connect the wire as in the Picture 

Arduino Codings  With library 

Or can get this codes from arduino, Files/Examples/LiquidCrystal 


*
  LiquidCrystal Library - Hello World

 Demonstrates the use a 16x2 LCD display.  The LiquidCrystal
 library works with all LCD displays that are compatible with the
 Hitachi HD44780 driver. There are many of them out there, and you
 can usually tell them by the 16-pin interface.

 This sketch prints "Hello World!" to the LCD
 and shows the time.

  The circuit:
 * LCD RS pin to digital pin 12
 * LCD Enable pin to digital pin 11 
 * LCD D4 pin to digital pin 5
 * LCD D5 pin to digital pin 4
 * LCD D6 pin to digital pin 3
 * LCD D7 pin to digital pin 2
 * LCD R/W pin to ground
 * LCD VSS pin to ground
 * LCD VCC pin to 5V
 * 10K resistor:
 * ends to +5V and ground
 * wiper to LCD VO pin (pin 3)

 Library originally added 18 Apr 2008
 by David A. Mellis
 library modified 5 Jul 2009
 by Limor Fried (http://www.ladyada.net)
 example added 9 Jul 2009
 by Tom Igoe
 modified 22 Nov 2010
 by Tom Igoe

 This example code is in the public domain.

 http://www.arduino.cc/en/Tutorial/LiquidCrystal
 */


// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("Hello, ARDUINO");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis() / 1000);
}


                                                                                                   Follow the video for more Description








Saturday, 29 October 2016

How to Add & Remove keyboard language in Win XP, Vista, 7

Adding and Removing keyboard language's

Do you regularly need to type in multiple languages in Windows?  Here I show you the easy way to add and change input languages to your keyboard in XP, Vista, and Windows 7.
Windows Vista and 7 come preinstalled with support for viewing a wide variety of languages, so adding an input language is fairly simply.  Adding an input language is slightly more difficult in XP, and requires installing additional files if you need an Asian or Complex script language.  First we show how to add an input language in Windows Vista and 7; it’s basically the same in both versions.  Then, we show how to add a language to XP, and also how to add Complex Script support. 
In All the versions of windows we can change the keyboard language in simple way 

Follow the video for more Easy Way


Step 1 
Go to search box inside the Start menu .and Type Keyboard then select “Change keyboards or other input methods”.
Searching in the start menu 


Step 2

After clicking the “Change keyboards or other input methods” a new Dialog box open "Region and Language" 
Region and Language 
Step 3

Now click "Change Keyboards" to add another keyboard language or change your default one




Step 4

My default input language is US English Your's could be Different, and My default keyboard is the US keyboard layout.  Click Add to insert another input language while still leaving your default input language installed.
Here I am selecting the Arabic (Kuwait) . But you can select any language you want.  Windows offers almost any language you can imagine, so just look for the language you want, select it, and click Ok.
Step 5
If you want, you can click Preview to see your layout choice before accepting it.  This is only the default characters, not ones that will be activated with Shift or other keys (many Asian languages use many more characters than English, and require the use of Shift and other keys to access them all).  Once your finished previewing, click close and then press Ok on the previous dialog.

Step 6
Now you will see both of the  keyboard languages in the Installed services box.  You can click Add to go back and get more, or move your selected language up or down (to change its priority), or simply click Apply to add the new language.

Step 7

Also, you can now change the default input language from the top menu.  This is the language that your keyboard will start with when you boot your computer.  So, if you mainly use English but also use another language, usually it is best to leave English as your default input language. 



Step 8

Now here you can Remove the language what language you want by just selecting it and remove  by click " Remove"


Step 8


Once you’ve pressed Apply or Ok, you will see a new icon beside your system tray with the initials of your default input language.

If you click it, you can switch between input languages.  Alternately you can switch input languages by pressing Alt+Shift on your keyboard.

We can place the language bar On desktop where ever we want by clicking " Show the Language bar and place it where you want and switch it to your desired language.




For more Blogs and Videous subscribe my channel on Youtube/wisdom of electronic