LG TEST

#include <IRremote.h> IRsend irsend; void setup() {   Serial.begin(9600); } void sendLG(unsigned long data) {   Serial.println(data, HEX);     for (int i = 0; i < 3; i++) {       irsend.sendLG(data, 24);       delay(100);     }     delay(3000); } void loop() {   sendLG(0x88C005); //off   sendLG(0x8804B4);   sendLG(0x8808B4);   sendLG(0x880cB4);   sendLG(0x880cB2); }

삼성 lg 리모컨

lg testing

/*  * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv  * An IR detector/demodulator must be connected to the input RECV_PIN.  * Version 0.1 July, 2009  * Copyright 2009 Ken Shirriff  * http://arcfn.com  */ #include <IRremote.h> int RECV_PIN = 11; IRrecv irrecv(RECV_PIN); IRsend irsend; decode_results results; //declare variables float tempC; int tempPin = 0; void setup() {   Serial.begin(9600);   irrecv.enableIRIn(); // Start the receiver } void loop() {   tempC = analogRead(tempPin);           //read the value from the sensor   tempC = (5.0 * tempC * 100.0)/1024.0;  //convert the analog data to temperature   Serial.println(tempC,1);             //send the data to the computer   delay(1000);                           //wait one second before sendi...

Arduino Thermometer using LM35 sensor :: 네이버 블로그

이미지
Arduino Thermometer using LM35 sensor :: 네이버 블로그 : Arduino Thermometer using LM35 sensor Arduino 2010/08/12 01:40 http://blog.naver.com/lgiclee/40112342040 LM35를 이용한 초초간단 온도계 입니다. 아무것도 필요없고 LM35 와 아두이노만 있으면 됩니다. 분해능을 높이기 위해 내부기준전압 1.1V를 이용합니다. 참고로 mega168,328 은 내부기준전압이 1.1V이고 mega8은 2.56V 입니다. LM35 는 1도당 10mV 가 증가하는 사용하기 아주 쉬운 온도 센서 입니다. 100도면 1V 인것이죠. 1번핀 VCC(5V) 2번핀 아날로그 0번핀 3번핀 GND 소스를 간단히 설명하자면 내부기준전압 1.1V 를 사용했기 때문에 opamp 없이도 0.107(110/1024)도라는 높은 분해능을 만들 수 있습니다. map() 가 쓰였는데.. http://arduino.cc/en/Reference/Map 간단히 설명하면 어떤 범위의 값을 내가 원하는 범위로 만들어 주는 함수 입니다. 예를 들어 val 이라는 변수가 있는데.. map(val,0,1023,0,110); 이렇게 하면.. 0~1023 을 0~ 110으로 만들어 주는 것이죠. 단점은 정수형만 된다는 것입니다. 소수점이하의 값은 버려집니다. 그래서 소스에서는 0~1023 의 ADC 값을 110도 아닌 1100 으로 만든후에 10으로 나누어 소수점 첫번째 자리까지 표현합니다. ############################################################################### // 초간단 온도계 // LM35dz 이용 // mega168/328 내부 기준전압 1.1V 2~110도 까지 측정 ...

My Projects: Arduino LM35 Sensor

이미지
My Projects: Arduino LM35 Sensor : Arduino LM35 Sensor My son Paul and I recently finished a project using the Arduino Diecimila microcontroller in conjunction with the Processing open source programming environment to monitor temperature. The project contains 3 parts: 1. The Arduino board with sensor circuit. 2. The Arduino program. 3. The Processing program. The Arduino Board with Sensor Circuit The Arduino circuit board is connected to the LM35 Celsius Temperature sensor. Here is a picture of the project circuit with illustrated wires connected to the temperature sensor. We used the on board power source (5v and Gnd) to power the LM35 and analog pin 0 (zero) to read the analog output from the sensor. Here's a picture of the circuit wired on a breadboard . The LM35 temperature sensor's pin-out and package information is as follows: The Arduino Program The open-source Arduino environment allows us to write code and load it onto the Arduino board's memory. The ...

REST-ful URI design | RedRata

REST-ful URI design | RedRata : REST-ful URI design What are the criteria for a good REST-ful URI? I assert: Short (as possible) . This makes them easy to write down or spell or remember. Hackable ‘up the tree’ . The user should be able to remove the leaf path and get an expected page back. e.g. http://example.com/cars/alfa-romeos/gt you could remove the gt bit and expect to get back all the alfa-romeos. Meaningful. Describes the resource . I should have a hint at the type of resource I am looking at (a blog post, or a conversation). Ideally I would have a clue about the actual content of the URI (e.g. a uri like uri-design-essay) Predictable. Human-guessable . If your URLs are meaningful they may also be predictable. If your users understand them and can predict what a url for a given resource is then may be able to go ‘straight there’ without having to find a hyperlink on a page. If your URIs are predictable, then your developers will argue less over what should be used f...