Skip to content

Instantly share code, notes, and snippets.

@maakcode
Last active December 10, 2018 03:41
Show Gist options
  • Save maakcode/439e4dc38e914660117d4b37999734fd to your computer and use it in GitHub Desktop.
Save maakcode/439e4dc38e914660117d4b37999734fd to your computer and use it in GitHub Desktop.
[Arduino] Arduino related #arduino

ATcommand

  • AT: 연결 테스트

    • 응답: OK
  • AT+RMAAD

  • AT+BAUD[n]: 보드레이드 설정, 파라메터 미입력시 현재 설정 표시

    • 응답: +BAUD=[n]
    입력 가능한 n Baud
    1 1200
    2 2400
    3 4800
    4 9600 (Default)
    5 19200
    6 38400
    7 57600
    8 115200
    9 230400
    A 460800
    B 921600
    C 1382400
  • AT+NAME[이름]: 이름 설정, 파라메터 미입력시 현재 설정 표시

    • 응답: +NAME=[이름]
    • 20글자 이내
  • AT+PIN[핀번호]: PIN 설정, 파라메터 미입력시 현재 설정 표시

    • 응답: +PIN=[핀번호]
    • HC-06의 경우 6자리 가능
  • AT+ADDR: 주소 표시

    • 응답: +ADDR=00:00:00:00:00:00
  • AT+ROLE[n]: 마스터/슬레이브 설정, 파라메터 미입력시 현재 설정 표시

    • 응답: +ROLE=[n]
    입력 가능한 n Role
    0 Slave
    1 Master
    2 Slave-Loop
  • AT+VERSION: 펌웨어 버전 체크

    • 응답: +VERSION=Firmware V3.0.6,Bluetooth V4.0 LE
  • AT+PN: 패리티 체크 없음

  • AT+PO: 홀수 패리티 체크

  • AT+PE: 짝수 패리티 체크

  • AT+HELP

********************************************************************
* Command             Description			           *
* ---------------------------------------------------------------- *
* AT                  Check if the command terminal work normally  *
* AT+RESET            Software reboot				   *
* AT+VERSION          Get firmware, bluetooth, HCI and LMP version *
* AT+HELP             List all the commands		           *
* AT+NAME             Get/Set local device name                    *
* AT+PIN              Get/Set pin code for pairing                 *
* AT+PASS             Get/Set pin code for pairing                 *
* AT+BAUD             Get/Set baud rate		                   *
* AT+LADDR            Get local bluetooth address		   *
* AT+ADDR             Get local bluetooth address		   *
* AT+DEFAULT          Restore factory default			   *
* AT+RENEW            Restore factory default			   *
* AT+STATE            Get current state				   *
* AT+PWRM             Get/Set power on mode(low power) 		   *
* AT+POWE             Get/Set RF transmit power 		   *
* AT+SLEEP            Sleep mode 		                   *
* AT+ROLE             Get/Set current role.	                   *
* AT+PARI             Get/Set UART parity bit.                     *
* AT+STOP             Get/Set UART stop bit.                       *
* AT+START            System start working.			   *
* AT+IMME             System wait for command when power on.	   *
* AT+IBEA             Switch iBeacon mode.	                   *
* AT+IBE0             Set iBeacon UUID 0.            	           *
* AT+IBE1             Set iBeacon UUID 1.            	           *
* AT+IBE2             Set iBeacon UUID 2.            	           *
* AT+IBE3             Set iBeacon UUID 3.            	           *
* AT+MARJ             Set iBeacon MARJ .            	           *
* AT+MINO             Set iBeacon MINO .            	           *
* AT+MEA              Set iBeacon MEA .            	           *
* AT+NOTI             Notify connection event .                    *
* AT+UUID             Get/Set system SERVER_UUID .            	   *
* AT+CHAR             Get/Set system CHAR_UUID .            	   *
* -----------------------------------------------------------------*
* Note: (M) = The command support slave mode only. 		   *
* For more information, please visit http://www.bolutek.com        *
* Copyright@2013 www.bolutek.com. All rights reserved.		   *
********************************************************************

ATTiny85 Module (Digispark) Spec.

  • Support for the Arduino IDE 1.0 + (OSX/Windows/Linux).
  • Power via USB or External Source or 7-16 v to 5 v (automatic selection).
  • The On - board, 150 ma 5 v Regulator.
  • Built - in USB and serial was debugging).
  • 6 I/O Pins (2 are informs the for USB only if your program actively communicates over USB, otherwise you can use all 6 even if you are programming via USB).
  • 8 k Flash Memory (about 6 k after bootloader).
  • The I2C and SPI (vis USI).
  • PWM on 3 pins (more possible with Software PWM).
  • The ADC on 4 pins.
  • The Power LED and the Test/Status leds.

ATTiny85 Module (Digispark) Pinout

  • All pins can be used as Digital I/O (모든 핀들은 디지털 I/O 핀으로 사용 가능함)
  • Pin 0 → I2C SDA, PWM (LED on Model B)
  • Pin 1 → PWM (LED on Model A)
  • Pin 2 → I2C SCK, Analog In
  • Pin 3 → Analog In (also used for USB+ when USB is in use)
  • Pin 4 → PWM, Analog (also used for USB- when USB is in use)
  • Pin 5 → Analog In
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment