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


Naver

[MPlap X IDE 다운로드] (▶LINK)

[mplap]

[mplab IDE HI_TECH.]




http://www.cs.ucr.edu/~eblock/pages/pictools/install.html

ftp://ftp.microchip.com/

▲FTP Link Hi-Tech C Compiler  (picc-9_82-win.exe 추천......9.71보다 더 많은칩을 지원해준다.)

여기서 다운받고자 할때는 아래 분할압축파일 이용(=하이텍 9.82버젼)

picc-9_82-win.vol1.egg


picc-9_82-win.vol2.egg


이 Plug-In을 설치해야만 MPLAB IDE와 Hi-Tech가 연동이 된다.


UniversalToolsuite-1.37.exe




Hi-Tech C 설치법 (☜링크)

Hi-Tech설치과정 (까끔한 정리)

HI-TECH Universal RSA Keygen.exe

▲ Keygen(=키젠)


MPLAB IDE를 설치한다.

Hi-Tech PICC를 설치한다.

두개를 Integrate 시킨다.



==========================================================================================




방법은 LPLAB IDE를 열고

Set Language Tool Locations... 로 가서

▼Hi-Tech경로를 찾아가서 Apply를 누른다.




Apply 시키고 OK 누르면 끝~@@!

실행하고자하는 프로젝트(*.mcp)를 우클릭하고 Build options...

Include파일을을 포함시키기위해서

Hi-Tech안에있는 Include폴더를 경로로 지정해준다. (Include Search Path)

이안의 모든 Include파일들을 포함하게 된다.

적용을 누르면 끝.






도움이 되셨다면 공감 + 댓글 남겨주세요

전자라서 그런지 카테고리설정이 어렵군요 ㅠ (IT인터넷, 모바일, 게임, 과학 이런것만 있으니)



'MPLAB > MPLAB Language Toolsuite' 카테고리의 다른 글

Hi-Tech C Compiler 설치과정  (0) 2017.01.20
Posted by ElectricShock
:
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

http://www.martyncurrey.com/hc-05-and-hc-06-zs-040-bluetooth-modules-first-look/


▼질문 있는 분은 아래 댓글 남겨주세요


HC-05.pdf    (중국어 메뉴얼, 판매자, email 포함 + 회로도)

hc-05_at_commands.pdf

AT+UART=<Param1>,<Param2>,<Param3>

AT+UART=115200,1,2 라고 입력하면 Response는 OK이다.

AT+UART? 라고 입력하면 Response는 +UART:9600,1,2 이다.

HC-05의 특징은...

button switch가 있다.

핀이 6개 이다.

Master/Slave로 역할을 바꿀 수 있다.





▼AT Command입력모드로 진입하기전에 설정법

http://www.martyncurrey.com/arduino-with-hc-05-bluetooth-module-at-mode/

If using the button switch, remove power, press and hold the button switch, re-apply power (while holding the button switch). When you see the LED come release the button switch.

The LED should be blinking slowly on/off once every couple of seconds. This indicates AT mode.

버튼을 hold한채로 전원공급을 다시한다.

그리고 LED가 켜졌을때 버튼을 release한다.

그러면 LED가 1초에 한번씩 깜빡이는데 이때가 AT Mode에 진입한 상태이다.


https://www.youtube.com/watch?v=rbq7wj3L-6U&feature=youtu.be



Default BaudRate는 38400 이다. (◀우선 38400으로 해줘야 AT Command가 먹힌다.)

http://instructables.tistory.com/175 ☜ 여기 링크를 통해서 9600으로 바꿔줘야만 한다.





In case of using HC-06, I recommand you to use Ultra-Serial-Port-Monitor program.

(▶LINK)

HC-06.pdf

(AT+BAUD+4  를 입력했을때, OK9600이 떠야만한다.)

(AT+NAME)

(AT+PINxxxx  :  xxxx는 PW에 해당한다. (Default는 1234이다.))

우선

– the HC-06 does not have a button switch
– the HC-06 only 4 header pins
– the HC-06 does not have pins 31-34 connected







Button Switch

The push button switch connects VCC (3.3v) to pin 34 

and is used to put the EGBT-045MS / HC-05 in to AT mode.

푸쉬 버튼은 AT mode로 들어가는데 쓰인다.


There are 2 AT modes, I refer to them as “mini mode” and “full mode”. 

Briefly pressing the button switch puts the modules 

in to mini mode 

and not all commands work.

두가지 AT modes가 있다, 난 참조한다. to them as "mini mode" 그리고 "full mode".

간단히 누르기.. the 버튼 스위치를 ..는 puts한다. the모듈을

into mini mode

and 모든 commands는 동작하지않는다.


Keeping the switch closed puts the modules 

in to full AT mode where all AT commands work.

Releasing the switch returns pin 34 LOW.
For more on AT commands 

see Arduino with HC-05 (ZS-040) Bluetooth module – AT MODE

Most HC-06 modules do not have the button switch (the space is empty) 

and bringing pin 34 HIGH on the HC-06 

does not do anything.

유지하기.. the 스위치를 닫힌상태로 ..는 puts한다. the modules를

into full AT mode로 where 모든 AT commands가 동작하는.

풀기.. the 스위치를 ..는 returns시킨다. pin 34를 LOW로.

For 더많은걸위해 on AT commands에 대해

보길 바란다. Arduino 와 HC-05 블루투스 모듈 -AT MODE를 (위 사이크 클릭)

대부분의 HC-06 모듈은 do not 갖고있지않다. the 버튼 스위치를 (빈자리 이다.)

and 가져온 pin 34 HIGH on the HC-06상에서 

은 아무것도 하지않는다.


STATE Pin

From the above photo you can see that the STATE pin is connected to pin 32 

and to pin 25 of the small blue tooth modules.

위 사진으로부터 넌 can 볼수있다. that the STATE 핀이 연결되있다고 to 핀 32에

and to 핀 25에 of the 작은 BlueTooth modules에.

Pin 32 is LED2 on the EGBT-045MS/HC-05.

Pin 32 is LOW when the module is not connected 

and HIGH when the module is connected.

핀 32는 LED2이다. on the HC-05상에서.

핀 32는 LOW이다. when the 모듈이 연결되있지않으면

and HIGH이다. when the 모듈이 연결되있으면.


This gives us an easy way to determine 

if the HC-05 is actually connected or not.

Connect the STATE pin to an Arduino digital pin 

and if digitalRead() returns HIGH you know the module has an active connection.

이건 준다 우리에게 an 쉬운방법을 to 결정하는데

if HC-05가 실질적으로 연결되있는지 or 아닌지.

연결해라. the STATE 핀을 to an Arduino 디지털 핀에

and if digitalRead()가 반환하면 HIGH를, 넌 알게된다. the module이 갖고있다고 실제 연결을.


You can, of course, connect an LED to the STATE pin 

as a visual indicator of a connection.

I haven’t tried this on a HC-06 yet 

but since this is not mentioned in the manual 

I believe it is not active.

넌 can, 물론, 연결할수있다. an LED를 to the STATE 핀에

as a 시각적 표시등으로써 of a 연결의.

난 시도해본적없다. 이걸 on HC-06에서 아직

but since 이게 not 언급되지않았기때문에 in the 메뉴얼에

난 믿는다. 그게 not 액티브하지않는다고.


EN Pin

Pulling the EN pin on the HC-05 LOW disables the module.

되돌리기 the EN 핀을 ........LOW로 ..는 disables시킨다. the 모듈을.

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


Naver

[bt master slave] :: 마스터 슬레이브 설정 하는법 댓글로 문의주셔도 됩니다.

[serial monitor 프로그램] :: 추천프로그램들을 정리했습니다.

Bing

[퍼티 hc-06]






★이 글이 도움이 되셨다면 블로그 곳곳의 광고들 클릭과 제일 하단의 공감 부탁드립니다.

★추가로 써줬으면 하는 내용이 있다면 언제든 댓글 주세요



Ultra Serial Port Monitor 사용법

우선 파일 받고 설명 들어주세요!@


ultra-serial-port-monitor.exe


Bluetooth-UART-Board-User-Guide.pdf


▲Putty보다 사용이 편합니다.


포트를 맞춰준다. (장치관리자에 가서 확인해보면 알 수 있다.)

하단에 빨간색으로 표시한 3개를 모두 눌러준다.

툴바 바로 아래에 있는 ▶ 를 눌러준다.

<<F5>> 를 눌러서 통신이 제대로 되고 있는지 확인한다. (Enter가 아니라 F5임에 유의한다.)


블루투스(=Bluetooth)의 버젼을 체크해보도록하자.

유의할점은 전부 대문자로 써줘야한다.

AT+VERSION 그리고 F5를 누르면 아래그림처럼 Bluetooth module의 version을 체크할 수 있다.






7. putty.exe


Putty 사용법


▼Serial을 통해서 통신속도를 조절해주면 된다.






Putty는 다른나라에서도 많이 쓰인다.

Serial Number없이도 그냥 사용할 수 있는 Freeware 이기도 하다.

위와같이 COM 포트를 체크하고 BaudRate를 39400으로 맞춘다.

한번 세팅시키고 Save를 누르면 앞으로 사용할때 다시 세팅하는 번거로움이 없다.

그대로 Open을 눌러준다.


OK값을 띄우기 위해서 Ultra Serial Port Monitor 처럼 F5를 누르거나, 그냥 Enter를 누르면 안된다.

"AT"를 타이핑하고 Enter를 눌러야한다. (대소문자 구분없이 인식한다.)

▼AT Command 명령어표 (Master/Slave 역할전환에 필요하다.)

hc-05_at_commands_qqjP15d3k3.pdf




AT Command를 입력하기전에 BlueTooth모듈을 입력가능케 해야한다.

http://instructables.tistory.com/176

여기를 참고하면 알겠지만 아래 순서대로 하면 된다.

전원제거>>button swich누른채로 전원 다시연결>>수초간 기다리면 LED깜빡임

처음에는 1초에 두번깜빡이던데 1초에 한번깜빡이는걸로 느려진다.

지금 상태가 AT Command 입력상태이다.


AT

AT+VERSION

AT+ROLE=1    (여기서 1은 Master, 0은 Slave이다.)

AT+ROLE


주의사항

Caps Lock키를 눌러서 대문자입력으로 바꿔주는게 편하다.

AT Command Mode에서의 BaudRate는 39400이다. (이는 컴퓨터와 BT간의 BaudRate 이다.)

(BT와 BT간의 BaudRate는 여전히 9600이니 햇갈리지 않아야한다.)

중간에 +,= 역시 입력할것

Enter를 치면 계속 출력값이 나오고, Enter를 한번더 눌러주면 출력값이 멈추며 다음 입력을 넣을 수 있다.

Default Role은 0이며 이때의 Role은 Slave다. (Master로 전환시켜줄것만 AT Command 작업을 해주면 된다.)



아래그림들은 명령어를 넣었을때 화면들이다.


▼버젼확인 상태에서 AT+ROLE=1 명령을 넣었는데 별다른 변화가 없다.

▼역할이 제대로 바뀌었는지 확인하기위해 AT+ROLE 명령을 넣어봤다.

▼Baud Rate를 확인하기위해 AT+UART를 입력


▼보너스로 BlueTooth의 주소를 확인해봤다.






Bluetooth HC-05 Test V1.2


bluetooth_hc05_test_v1.2c.rar

▲알약에서는 바이러스로 인식하니 정지후 사용해주세요

▲이 프로그램은 HC-05용 프로그램입니다. (HC-05는 STATUS 그리고 EN 핀이 없다.)

▲HC-05의 초기설정은 Slave입니다. (This module is configured as Slave by Default)

http://www.martyncurrey.com/hc-05-and-hc-06-zs-040-bluetooth-modules-first-look/


▼아래 그림은 HC-05의 핀구성이다.

중요한건 PIO8, PIO9, PIO11이다.

PIO8 : LED indicating the status. It blinks after power ON.

PIO9 : LED indicating paring. It is steady ON when paring is successful.

PIO11: It is used to set this two mode:

AT command mode (If the pin is connected to 3.3V)

Automatic binding transparent data mode (if the pin is connected to GND)

The AT command mode is used to configure some characteristics of the device.

(for example the Master, Slave or Loopback modes)

AT커멘드 모드는 사용된다. to 구성하기위해 몇몇 특성들을 of the 디바이스의

(예를들어 Master, Slave, Loopback 모드들)


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)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백