µµ¼­(BOOK)
Å°Æ®(KIT)
ƯÆÇ »óÇ°
Á¹¾÷ÀÛÇ°&ÀüÀÚ±âÃÊ
ÀÀ¿ë¸ðµâ
ÀüÀÚºÎÇ°
¸ðÅÍ
±â±¸
¿£Å¬·ÎÁ®
°³ÀΰáÁ¦¿ë
 
°í°´¼¾ÅÍ °Ô½ÃÆÇ
ÀÚÀ¯°Ô½ÃÆÇ
MCU ÅëÇÕ °Ô½ÃÆÇ
°­ÁÂ-RaspberryPi
°­ÁÂ-µå·Ð(ÄõµåÄßÅÍ)
°­ÁÂ-¾ÆµÎÀ̳ë(±âÃÊ)
°­ÁÂ-¾ÆµÎÀ̳ë(ÀÀ¿ë)
½ÅÁ¦Ç°/½Å±â¼ú ¼Ò°³
DIY °øÀÛ °Ô½ÃÆÇ
À±±³¼öÀÇ ¿¬±¸½Ç Ä®·³
 
 
 
1 ÀÚ·á½ÇÀÌ¿ë½Ã Âü°í»çÇ×
 
 
2 2024³â °©Áø³â (Ë£òãÒ´) »õ..
 
 
3 »ç¹«½Ç ÀÌÀü ¾È³»
 
 
4 2023 °è¹¦³â »õÇØ º¹ ¸¹ÀÌ..
 
 
5 AVR128DA64 Á¤º¹ Ãâ°£¾È³»
 
 
 
 
 
 
 ¢Ï : 02-776-4868

 £Æ: 02-779-6757
À̸ÞÀϹ®ÀÇ
 
¢Ñ ÆòÀÏ(¿ù~±Ý) : 10~17½Ã
¢Ñ ÁÖ¸», °øÈÞÀÏ ÈÞ¹«
 
±¹¹Î822437-04-008415
¢Ñ ¿¹±ÝÁÖ : À̹ÎÈñ(¿È»ç(OHM»ç))
 
 
1 À±±³¼öÀÇ ¸¶ÀÌÅ©·ÎÇÁ·Î¼¼¼­ ¿ùµå
 
2 (ÁÖ)¼®¿µºê¶óÀ̽ºÅæ
 

 

 
°­ÁÂ-¾ÆµÎÀ̳ë(ÀÀ¿ë)
 
2014. 06. 07 (12:01)
Á¦¸ñ[¾ÆµÎÀ̳ë ÀÀ¿ë] 1. ºí·çÅõ½º ½¯µå - 1
ÀÛ¼ºÀÚohmsa Á¶È¸ : 11378


1. ºí·çÅõ½º ½¯µå(Bluetooth Shield) - 1

÷ºÎÆÄÀÏ
BTSoftware_Instruction.pdf
Bluetooth_Shield_Demo_Code-master.zip

Bluetooth_module.pdf


¾ÆµÎÀ̳ë ÀÀ¿ëÀÇ Ã¹ °­Á¸¦ ¾î¶² ³»¿ëÀ¸·Î ½ÃÀÛÀ» ÇØ º¼±î¡¦¸¹Àº °í¹ÎÀ» Çϸ鼭, ¿©·¯ Ä«Æ並 º¸¸é¼­ ºñ±³Àû ¸¹Àº Áú¹®ÀÌ ¿Ã¶ó¿Í ÀÖ´Â ºí·çÅõ½º¿¡ ´ëÇؼ­ ´Ù·ï º¸±â·Î Çß´Ù. ¹°·Ð, ¸¹Àº ³»¿ëÀ» ´Ù·ê ¼ö´Â ¾øÁö¸¸, »ó¿ë ºí·çÅõ½º ½¯µå¸¦ ¼Ò°³ÇÏ°í, ¿¹Á¦¸¦ ½ÇÇà ½ÃÄÑ º¸µµ·Ï ÇÏ°Ú´Ù.

 

ÀÌ °­Á¿¡¼­ »ç¿ëÇÏ°Ô µÉ ½¯µå´Â Seeed studioÀÇ ºí·çÅõ½º ½¯µå V1.1À» »ç¿ëÇÑ´Ù. ´ë·«ÀûÀÎ »ç¾çÀº ¾Æ·¡¿Í °°À¸´Ï Âü°íÇϱ⠹ٶõ´Ù


Bluetooth Shield

Introduction

The Bluetooth Shield integrates a Serial Bluetooth module. It can be easily used with Arduino/Seeedstudio for transparent wireless serial communication. You can choose two pins from Arduino D0 to D7 as Software Serial Ports to communicate with Bluetooth Shield (D0 and D1 is Hardware Serial Port). The shield also has two Grove connectors (one is Digital, the other is Analog) for you to install Grove modules.


Model:SLD63030P

 

Features

  • Input Voltage: 3.3V
  • Baudrate: 9600, 19200, 38400, 57600, 115200, 230400, 460800
  • Seeeduino/Arduino compatible
  • Up to10m communication distance in house without obstacle
  • UART interface (TTL) with programmable baud rate (SPP firmware installed)
  • Default Baud rate: 38400, Data bits: 8, Stop bit: 1, Parity: No parity
  • Default PINCODE:¡±0000¡±
  • A full set of configuration commands
  • On board PCB Antenna
  • FCC Part 15 Certificated

Interface function


Pad Type

Description

PIO1

Status instruction port of Bluetooth module can be read by Arduino A1 port: low-disconnected, high-connected.

BT_RX

UART Data input of Bluetooth module.

BT_TX

UART Data output Bluetooth module.

Two Grove connectors

One is Digital (D8 and D9), the other is I2C/Analog (A4 and A5).

 

 


À§ ³»¿ëÀº õõÈ÷ Àß ÀÐ¾î º¸½Ã°í¡¦Áß¿äÇÑ ³»¿ëÀº ºÓÀº»ö ±Û¾¾·Î ¾²¿© ÀÖ´Â µÎ ÁÙ¸¸ ±â¾ïÇÏ¸é µÈ´Ù. ÀÌ ½¯µå¿¡¼­ »ç¿ëÇÏ°í ÀÖ´Â ºí·çÅõ½º ¸ðµâÀº UART·Î Á¦¾îÇϱ⠶§¹®¿¡, µðÆúÆ® ¼Óµµ´Â 38400bpsÀÌ°í, TTL ·¹º§·Î Á¦¾î¸¦ ÇÑ´Ù.

±×¸®³ª, ¾ÆµÎÀÌ³ë ¿ì³ë º¸µå´Â ½Ã¸®¾ó Æ÷Æ®°¡ 1°³ »ÓÀ̱⠶§¹®¿¡, ÀÌ ½¯µå¸¦ Á¦¾îÇϱâ À§Çؼ­ ¼ÒÇÁÆ®¿þ¾î ½Ã¸®¾óÆ÷Æ®¸¦ »ç¿ëÇÏ°Ô µÈ´Ù. ¾ÆµÎÀÌ³ë º¸µåÀÇ ±âº» UART Æ÷Æ®´Â D0, D1ÀÌÁö¸¸, ¿©±â¼­´Â D6, D7À» »ç¿ëÇÒ ¿¹Á¤ÀÌ´Ù. ¾Æ·¡ »çÁøÀÇ »¡°£ ¹Ú½º ºÎºÐÀÌ Á¡ÆÛ·Î ¿¬°áÇÏ´Â ¹æ¹ýÀ¸·Î ¼ÒÇÁÆ®¿þ¾î RX´Â D6, TX´Â D7·Î ¼³Á¤ÇÑ´Ù.

¸ðµâ¿¡ ´ëÇÑ ¼³¸í¼­´Â ÷ºÎ ÆÄÀÏÀ» Âü°íÇϱ⠹ٶõ´Ù.



Á¦°øµÈ ¿¹Á¦¸¦ ÀÌ¿ëÇÏ¿© °£´ÜÇÑ ½ÇÇèÀ» ÇØ º¸µµ·Ï ÇÏÀÚ. ÷ºÎ ÆÄÀÏ¿¡ Æ÷ÇÔµÈ µ¥¸ð Äڵ带 ¹Þ¾Æ¼­ ¾ÆµÎÀ̳ë Æú´õÀÇ ¿¹Á¦ Æú´õ¿¡ ¾ÐÃàÀ» Ç®¾î ³õ´Â´Ù.

 

¾Æ·¡¿Í °°ÀÌ Slave_led ¿¹Á¦¸¦ ºÒ·¯ ¿Â´Ù.

     

 

#include    //Software Serial Port

 

#define RxD         6

#define TxD         7

 

#define PINLED      9

 

#define LEDON()     digitalWrite(PINLED, HIGH)

#define LEDOFF()    digitalWrite(PINLED, LOW)

 

#define DEBUG_ENABLED  1

 

SoftwareSerial blueToothSerial(RxD,TxD);

 

void setup()

{

    Serial.begin(9600);

    pinMode(RxD, INPUT);

    pinMode(TxD, OUTPUT);

    pinMode(PINLED, OUTPUT);

    LEDOFF();

   

    setupBlueToothConnection();

}

 

void loop()

{

    char recvChar;

   

    while(1)

    {

        if(blueToothSerial.available())

        {//check if there's any data sent from the remote bluetooth shield

            recvChar = blueToothSerial.read();

            Serial.print(recvChar);

           

            if(recvChar == '1')

            {

                LEDON();

            }

            else if(recvChar == '0')

            {

                LEDOFF();

            }

        }

    }

}

 

void setupBlueToothConnection()

{

    // Set BluetoothBee BaudRate to default baud rate 38400

blueToothSerial.begin(38400);

// set the bluetooth work in slave mode

blueToothSerial.print("\r\n+STWMOD=0\r\n");

// set the bluetooth name as "SeeedBTSlave"

blueToothSerial.print("\r\n+STNA=SeeedBTSlave\r\n");

    // Permit Paired device to connect me

blueToothSerial.print("\r\n+STOAUT=1\r\n");

// Auto-connection should be forbidden here

blueToothSerial.print("\r\n+STAUTO=0\r\n");    

delay(2000); // This delay is required.

    // make the slave bluetooth inquirable

blueToothSerial.print("\r\n+INQ=1\r\n");

    Serial.println("The slave bluetooth is inquirable!");

    delay(2000); // This delay is required.

    blueToothSerial.flush();

}

 


À§¿¡¼­ ¾ð±ÞÇßµíÀÌ, ¼ÒÇÁÆ®¿þ¾î ½Ã¸®¾óÆ÷Æ®¸¦ ÀÌ¿ëÇÏ¿© ºí·çÅõ½º ½¯µå¸¦ Á¦¾îÇϱ⠶§¹®¿¡,

 

           SoftwareSerial blueToothSerial(RxD,TxD);

 

¿Í °°ÀÌ ¼³Á¤ÇÑ´Ù.

À§ ÄÚµåÀÇ ³»¿ë Áß¿¡¼­´Â ºÓÀº»öÀ¸·Î Ç¥½ÃÇÑ ³»¿ëÀº ºí·çÅõ½º ¸ðµâÀ» ÃʱâÈ­ÇÏ´Â ¹æ¹ýÀ¸·Î, ÷ºÎ ÆÄÀÏÀÇ ¸í·É¾îÀÇ ³»¿ëÀ» Âü°í ¹Ù¶õ´Ù.

 

À§ ÄÚµå´Â ½½·¹ÀÌºê ¸ðµå·Î »ç¿ëÀ» Çϸç, D9 Æ÷Æ®¿¡ ¿¬°áµÇ¾î ÀÖ´Â LED¸¦ On/OffÇÏ´Â ¿¹Á¦ÀÌ´Ù.

¸¶½ºÅÍ ºí·çÅõ½º¸¦ ÅëÇؼ­ ¡®1¡¯À» Àü¼ÛÇϸé LED°¡ ONµÇ°í, ¡®0¡¯À» Àü¼ÛÇϸé LED°¡ OFFÇÏ°Ô µÈ´Ù. µ¿½Ã¿¡ ½Ã¸®¾ó Å͹̳ÎÀ» ÅëÇؼ­µµ ±× Àü¼ÛµÈ °ªÀÌ Ãâ·ÂÀÌ µÈ´Ù.

 

¾ÆµÎÀÌ³ë º¸µå¿Í ºí·çÅõ½º ½¯µå º¸µå´Â ¾Æ·¡ »çÁø°ú °°ÀÌ ¿¬°áÇϸç, ±× À§¿¡ ºê·¹µåº¸µå ½¯µå¸¦ ¿¬°áÇÏ¿©, LED ȸ·Î¸¦ ±¸¼ºÇÑ´Ù


¿ì¼±, À§ÀÇ Äڵ带 ¾ÆµÎÀÌ³ë º¸µå¿¡ ¾÷·Îµå ÇÑ ÈÄ¿¡, ½º¸¶Æ®ÆùÀÇ ¾îÇÃÀ» ´Ù¿î¹Þ¾Æ¼­ µ¿ÀÛ ½ÇÇèÀ» ÇØ º¸µµ·Ï ÇÑ´Ù.

 

¾Èµå·ÎÀ̵åÆùÀ» ¿¹·Î Bluetooth SPP·Î °Ë»öÇÏ¿©, ±× Áß Çϳª¸¦ ´Ù¿î¹Þ¾Æ¼­ º»ÀÎÀÇ ½º¸¶Æ®Æù¿¡ ¼³Ä¡ÇØ º»´Ù. ÀÌ ¿Ü¿¡µµ ºí·çÅõ½º Å͹̳Π°ü·ÃµÈ ¾îÇÃÀº ¹¹µç ±¦ÂúÀ¸´Ï, º»ÀÎÀÌ ¸¾¿¡ µå´Â ¾îÇÃÀ» ¹Þ¾Æ¼­ ¼³Ä¡Çصµ µÈ´Ù.



¿©±â¼­´Â Bluetooth spp tools pro¸¦ ÀÌ¿ëÇϱâ·Î Çϸç, ¾îÇÃÀ» ½ÇÇà ½ÃŲ ÈÄ¿¡ ½ºÄµÀ» ÅëÇؼ­ ºí·çÅõ¼ö ¸ðµâÀ» °Ë»öÇÑ´Ù


SeedBTSlave¶ó°í °Ë»öÀÌ µÇ¸é, [Connect]¹öÆ°À» Ŭ¸¯ÇÏ¿©, ¿¬°áÀ» ½ÃµµÇÑ´Ù.


¿¬°áÀÌ µÈ ÈÄ¿¡´Â ¾Æ·¡¿Í °°ÀÌ, 3°¡Áö ¸ðµå Áß¿¡¼­ ÇÑ°¡Áö¸¦ ¼±ÅÃÇÑ´Ù. ¿©±â¼­´Â Byte stream mode ¸¦ »ç¿ëÇÑ´Ù.


ºí·çÅõ½º Å͹̳ÎÀ» ÅëÇؼ­ ¡®1¡¯°ú ¡®0¡¯À» Àü¼ÛÇØ º¸¸é,



±¸¼ºµÈ ȸ·ÎÀÇ LED°¡ Àü¼ÛµÇ´Â °ª¿¡ µû¶ó¼­ On/Off¸¦ ÇÏ´Â °ÍÀ» º¼ ¼ö ÀÖ´Ù.



http://blog.naver.com/rnc_ohm
http://cafe.naver.com/rnc2013.cafe
ºñ¹Ð¹øÈ£ È®ÀÎ ´Ý±â
name password
  Content name date hits
[¾ÆµÎÀ̳ë ÀÀ¿ë] 1. ºí·çÅõ½º ½¯µå - 1  
2014/06/07 11378


Copyright ¨Ï µµ¼­ÃâÆÇ ¿È»ç All Rights Reserved. ¢Ï : 02-776-4868 ,£Æ: 02-779-6757
»óÈ£¸í : ¿È»ç(OHM»ç) »ç¾÷Àå¼ÒÀçÁö : ¼­¿ïƯº°½Ã ¿µµîÆ÷±¸ ´ë¸²·Î170-1, 1Ãþ(´ë¸²µ¿)
»ç¾÷ÀÚµî·Ï¹øÈ£ : 416-18-31168 [»ç¾÷ÀÚÁ¤º¸È®ÀÎ] Åë½ÅÆǸž÷½Å°í¹øÈ£ : Á¦2023-¼­¿ï¿ë»ê-1034È£
´ëÇ¥ : À̹ÎÈñ °³ÀÎÁ¤º¸ º¸È£ Ã¥ÀÓÀÚ : Á¤È«±â