전체 글
-
-
Miscillaneous Operatorsc# 2016. 7. 8. 21:13
OperatorDescriptionExamplesizeof()Returns the size of a data type.sizeof(int), returns 4.typeof()Returns the type of a class.typeof(StreamReader);&Returns the address of an variable.&a; returns actual address of the variable.*Pointer to a variable.*a; creates pointer named 'a' to a variable.? :Conditional ExpressionIf Condition is true ? Then value X : Otherwise value YisDetermines whether an ob..
-
태양전지 이것 저것만들기 2016. 7. 6. 11:09
1. 태양전지 셀 1개의 전압 및 전류량 태양전지 셀1개의 전입은 0.6v이고 저률는 300mA임, 이셀을 병렬/직렬로 연결해서 원하는 전압을 만들어 냄. 요놈은 내가 알리에서 구입한 태양전지 모듈인데 6v(오픈전압 7v) /300mA 2w용량이다. 자세히 보면 태양전지 셀이 12개가 직렬로 연결되어 있는 구성을 같고 있다. 1.brand-new ROHS approved mini Solar panel2.The solar cells are encased and protected by a durable outer poly frame3.polycrystalline silicon4.Max work voltage: 6V5.Max work current: 0- 0.33A Max 6.Open-circuit volta..
-
프로그램1-시리얼 통신2아두이노 2016. 7. 4. 22:08
아두이노 1.0에서 새롭게 추가된 serialEvent함수 이용. serialEvent함수는 loop함수가 순환될때 마다 호출 된다. //SerialRecive Serial event const int ledPin =13;int blinkRate =0; void setup(){Serial.begin(9600); //9600으로 시리얼 포트 초기화pinMode(ledPin,OUTPUT);} void loop() {blink(); } void serialEvent(){ while(Serial.available()){ char ch = Serial.read();Serial.write(ch); if(isDigit(ch)) {blinkRate = (ch - '0');blinkRate = blinkRate*100;..
-
프로그램1-시리얼통신아두이노 2016. 7. 3. 21:57
주제: PC에서 전송한 숫자를 읽어서 13번 LED 블링크 시간을 조절한다. const int ledPin = 13; int blinkRate=0; void setup() { // put your setup code here, to run once: Serial.begin(9600); //Searial port resetpinMode(ledPin,OUTPUT);} void loop() { // put your main code here, to run repeatedly: if(Serial.available()) { char ch =Serial.read(); //시리얼 포트에서 데이터 읽음 if( isDigit(ch)) { blinkRate=(ch -'0'); blinkRate = blinkRate* 10..
-
ESP8266 Firmware Update with FTDIESP2866 2016. 7. 2. 11:24
필요한 물품 1. ESP82562. FTDI3.브레드 보드 ESP8266은 WIFI SOC(system on chip) 이다. AT 명령어 프로세스를 탑재하고 있으며 serial to WIFI Bridge역활을 수행해서 Iot의 중요한 모듈로 인기를 얻고 있다. 단계1. 연결 FTDI GND - GND ESP8266 + GPIO 0 ESP8266FTDI VCC - VCC ESP8266 + GPIO 2 ESP8266FTDI TX - RXD ESP8266FTDI RX - TXD ESP8266Note: FTDI's CTS and DTR pins, leave blank.Note: ESP8266's CH_PD and RST pins, connect them. 여러가지 연결 방법이 있으나 나는 안전하게 외부에서 전..