336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

의뢰는 http://instructables.tistory.com/64 로 오세요.~!


다운로더가 인식이 안될경우 FTDI칩의 이상일 가능성이 있다

그때 아래 프로그램안의 Setup을 실행시켜주면 좋다.

CDM20824.zip



AVR Studio4를 실행시키고

코드를 작성하는 과정은 생략하겠다.

컴파일 버튼은 상단 ToolBar에서 아래 빨간색으로 표시된 버튼이다.

Error가 없다면 아래와 같은 메세지를 확인할 수 있다.

Warnnings 의 갯수는 신경쓰기 않아도 된다.


이제 ToolBar에서 아래 빨간색으로 표시된 Upload버튼을 누르자.

누르기전에 내컴퓨터 우클릭 >> 장치관리자로 들어가서 아래 그림처럼 Driver가 잡혀있는지 확인해야한다.(그렇지않으면 AVR Studio가 ATmega128을 인식하지 못한다.)



프로그래머 종류는 경우에 따라 다르지만

JMOD-128-1의 경우는 내장 프로그래머 이므로 AVRISP를 선택후 Auto Port로 세팅하고

Connect 버튼을 누르면 된다.

(단, Jumper를 USB로 돌려놓고, 스위치를 ISP로 돌려놓은 상태로 Connect 버튼을 눌러야 한다.)

위 그림처럼 경고창이 뜬다면 취소버튼을 누른다.

실수로 확인 버튼을 누르면 AVR Studio가 꺼지는데 별로 큰 문제는 아니니 다시 처음부터 실행시키면된다.


팝업창이 뜨면 아래 그림처럼

Main ToolBar를 누르고 진입후 Read Signature를 눌러서 ATmega128이 정상적으로 인식되는지 확인한다.


이제 ToolBar에서 Program으로 진입후

" ... "버튼을 눌러서 아까 Compile해서 생성된 Hex를 Browse한다.

제대로 찾았다면 바로 아래의 Program 버튼을 누르면 Hex 얹을 수 있다.


'AVR > AVR Studio' 카테고리의 다른 글

ATMEL Studio 7 (Download)  (0) 2016.07.10
Optimization  (0) 2016.07.05
MK2 Error  (2) 2016.06.19
ISP Mode Error  (0) 2015.01.05
Posted by ElectricShock
:
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.




▼Slider를 이용해서 Servo를 제어할 경우

https://www.instructables.com/id/Arduino-MIT-App-Inventor-Servo-Motor-Controller/




저금통에 들어가는 BT 페어링 기본코드





▼버튼을 이용하여 Servo를 제어할 경우

https://www.instructables.com/id/Arduino-How-to-Control-Servo-Motor-Via-Bluetooth-w/



▼Global Variable을 주목해서 볼것

https://www.youtube.com/watch?v=JQ3tDhpmSFE



▼Blutooth로 LED제어

https://www.youtube.com/watch?v=pR2rTRDZ_-Y



https://learn2c.org/2015/02/02/part-2-sending-numeric-data-using-app-inventor-bluetooth-communications/



▼▼▼



3D 초안



'졸업작품 > App포함 졸작' 카테고리의 다른 글

하루 할당 물섭취량 체크  (8) 2016.08.22
Posted by ElectricShock
:
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

MQ뒤에 붙은 숫자들에 따라 용도가 살짝 다르다.

우선 가스센서는 MQ-4라는걸 기억하고 나머지는 참고하면 좋을듯 싶다.

MQ-2 Smoke Gas LPG Butane Hydrogen Gas Sensor Detector Module
MQ-3 Alcohol Ethanol Sensor Breath Gas Detector Ethanol Detection
MQ-4 Methane Gas Sensor Natural Coal Co methane detector module
MQ-5 Methane Gas Sensor Shield methane detector module
MQ-6 LPG Gas Sensor Isobutane Propane Sensor
MQ-7 Carbon Monoxide CO Gas Sensor Module
MQ-8 Hydrogen Gas Sensor Module Gas Sensor module
MQ-9 Combustible Gas Sensor Detection Carbon Monoxide Alarm Module
MQ-135 Sensor Air Quality Sensor Hazardous Gas Detection Module


모듈 사용시 아래 그림의 PinOut을 참조하면 된다.

2번핀을 제외한 3개의 핀을 사용하며 3번핀이 Signal Pin에 해당한다.


모듈을 사용하지 않을경우 6개의 핀중 어떤걸 사용해야하는지 알면 된다.

헌데 BreadBoard에 꼽기에는 핀이 다소 두껍다.

두께를 정확히 말하긴 어렵지만 굳이 비유하자면 Jumper Cable에 딱 들어가는 사이즈이다.

https://www.pololu.com/product/1479

https://www.sparkfun.com/products/8891





http://www.theorycircuit.com/choose-gas-sensor/

(중략)

Basically every MQ sensors have one Heater inside with an electro-chemical sensor.

They are best to smell Gas in indoors at room temperature,

by connecting load resistor as variable one we can calibrate the sensor gas detection sensitivity more or less.

연결함으로써 부하저항을 as 변수로써 우리가 조절할수있는 가스감지 민감도를.

(중략)

Connect both A pins together & B pins together

and apply +Vcc supply to the coupled A or B pins

and apply GND through variable load resistor (RL) to the remaining coupled A or B pins.

Make sure that heater pins H & H connected with Vcc and GND.

A끼리 그리고 B끼리 묶는다.


Posted by ElectricShock
:

BLOG main image
잡동사니들(지극히 개인취향인...) (다른글에도 댓글 부탁해요♥) You May Leave English Messages on GuestBook. by ElectricShock

공지사항

카테고리

분류 전체보기 (782)
MiDi (2)
Programming(=프로그래밍) (3)
Animation (4)
Blender (3D Graphic Program.. (10)
Blendtuts.com (Series) (1)
Blender 기초 팁들 (2)
Processing (디지털미디어과) (2)
Music (1)
Books in the world (0)
Communication(CAN, UART, et.. (12)
MCU Examples (PIC 기반) (7)
Transistor (1)
Mikro C Pro (11)
Mikro Pascal (1)
Proton IDE (0)
Robot (0)
Swift 3D (1)
Dummies Series (1)
All about Hacking (0)
제2 외국어 (1)
PIC 해외서적들 (3)
AVR (25)
PIC (MikroC) (MPLAB) (4)
Assembly (2)
ARM (3)
Arduino (26)
PSpice (1)
Proteus ISIS (14)
CodeVision (2)
FPGA (15)
MPLAB (24)
PCB (the Procedure) (15)
3D Printer (5)
PICKIT3 (6)
Matlab (11)
RaspBerry PI (15)
BeagleBone (1)
Android Studio (17)
졸업작품 (172)
Korea History (0)
Issue(사회) (73)
Multimeter 리뷰 (1)
Oscilloscope (1)
A (34)
B (19)
J (6)
C (32)
P (12)
T (37)
H (12)
I (12)
M (44)
R (5)
E (5)
F (2)
D (9)
O (2)
L (7)
S (9)
W (2)
V (6)
G (14)
Visual C++ or Visual Studio (2)
Android App Development (0)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백