2016년 5월 30일 월요일

Glassfish Installation in Debian

Before installation of the glassfish, make sure of java version. the Glassfish V3 need the JDK 1.7.0 and the Glassfish V4 need the JDK 1.8.0. scwook@debian:~/Download# java -version java version "1.8.0_91" Java(TM) SE Runtime Environment (build 1.8.0_91-b14) Java...

2016년 5월 25일 수요일

Java Installation in the Debain Jessie

Using update-alternatives command, you can add new Java version in the Jessie. First, check current Java version. scwook@debian:~$ java -version openjdk version "1.8.0_72-internal" OpenJDK Runtime Environment (build 1.8.0_72-internal-b15) OpenJDK 64-Bit Server VM (build 25.72-b15, mixed mode) Download new Java version form the web page...

2016년 5월 24일 화요일

Raspberry Pi - PIR Motion Sensor test

PIR motion sensor used to detect whether a object which emits infrared radiation has moved in or out the sensor range. If the sensor detect a moving object, it make output signal. More infromation about the sensor can be found in the following web page. In order to test,...

2016년 5월 20일 금요일

Raspberry Pi - wiringPi Installation

One method to use GPIO Port of raspberry pi is using wiringPi. Basic information and guide is in wiringPi web site. http://wiringpi.com/ wiringPi can be downloaded form git. So git must be installed first. pi@raspberrypi ~$ sudo su - root@raspberrypi:~# aptitude...

Rasbperry Pi - wiringPi 설치

Raspberry Pi에서 GPIO Port를 사용할 수 있는 방법 중 하나는 wiringPi를 이용하는 것이다. wiringPi에 대한 기본적인 사용 방법 및 wiringPi 홈페이지에서 확인할 수 있다. http://wiringpi.com/ wiringPi는 소스 코드는 git에서 받을 수 있으며, 코드를 빌드 하는것으로 설치는 끝난다. git이 설치되어 있지 않다면 git을 먼저 설치한다. pi@raspberrypi ~$ sudo su - root@raspberrypi:~#...

2016년 5월 19일 목요일

Raspberry Pi - PIR Motion Sensor 테스트

PIR Motion Sensor는 적외선으로 움직임을 감지하는 센서로 일정한 범위 내에 적외선을 방출하는 물체가 움직일 경우 이를 감지하여 출력 신호로 내보낸다. 센서에 대한 자세한 사양은 다음 웹페이지에서 확인할 수 있으며 테스트를 위해서는 wiringPi가 설치되어 있어야 한다. http://www.dfrobot.com/wiki/index.php/PIR_Motion_Sensor_V1.0_SKU:SEN0171 테스트 회로는 그림과 같이 PIR Motion Sensor에 5V의...

Raspberry Pi - GPIO input test with Button

Let's turn on LED when a button is pushed. Before the test, wiringPi must be installed. The test circuit is shown as in figure. one leg of button is connect to 5V output pin and another leg is connect to #1 pin of GPIO and 10kΩ pull-down resistor is used...

2016년 5월 18일 수요일

Raspberry Pi - Button을 이용한 GPIO 입력 테스트

Raspberry Pi의 GPIO를 이용하여 버튼이 눌러졌을 때 LED를 켜는 테스트를 해 보자. 테스트를 위해서는 기본적으로 wiringPi가 설치되어 있어야 한다. 테스트 회로는 그림과 같이 Push Button을 눌렀을 때 1번 Pin에 High가 인가 되도록 5V를 연결하였으며 10kΩ의 Pull-down 저항을 연결하였다. LED는 버튼이 눌러진 것을 확인하기 위해 연결하였다. ※ LED의 극성을 반대로 연결하면 LED가 고장 나므로 주의해서 연결한다. 길이가 짧은...

Raspberry Pi - GPIO output test with LED

Let's turn on LED using a Raspberry Pi GPIO port. Before the test, wiringPi must be installed.  ※ Be careful!!. If LED is connected to reverse polarity, it will be broken. Long leg is positive(+) and short leg is negative(-). Component Raspberry Pi 2 Model B LED...

2016년 5월 17일 화요일

Raspberry Pi - LED를 이용한 GPIO 출력 테스트

Raspberry Pi의 GPIO를 이용하여 간단한 LED를 켜는 테스트를 해 보자. 테스트에 앞서 wiringPi가 설치되어 있지 않다면 wiringPi를 먼저 설치하도록 한다. 테스트 회로는 다음과 같이 발광 다이오드의 (+)를 1번에 연결하고 (-)를 GND에 연결하였으며 (+)와 1번 사이에 250Ω의 저항을 연결하였다. ※ LED의 극성을 반대로 연결하면 LED가 고장 나므로 주의해서 연결한다. 길이가 짧은 쪽이(-), 긴 쪽이 (+)이다.  회로 및 구성 Raspberry...

2016년 5월 16일 월요일

Debian에서 Glassfish 설치

Glassfish를 설치하기 전 Java 버전을 먼저 확인한다. Glassfish V3는 JDK 1.7.0, Glassfish V4는 JDK 1.8.0 이상 설치되어 있어야 한다. scwook@debian:~/Download# java -version java version "1.8.0_91" Java(TM) SE Runtime Environment (build 1.8.0_91-b14) Java HotSpot(TM) 64-Bit Server VM (build...

2016년 5월 15일 일요일

Olog Mysql Database Schema

This is a schema for MySQL Olog database. Just copy and make a file such as "olog.sql". following command can load the file. mysql> source olog.sql; -- MySQL dump 10.13  Distrib 5.5.49, for debian-linux-gnu (x86_64) -- -- Host: localhost    Database: olog -- ------------------------------------------------------ -- Server version...