본문 바로가기

Nordic

(42)
[nRF52 xBee EVM] - 기본동작 테스트 - UART (IAR) nRF52 xBee EVM 보드의 UART 테스트를 위해 nRF5 SDK의 /examples/peripheral/uart 예제를 테스트 했다. [nRF52 xBee EVM] 보드의 UART 핀은 P6, P8에 할당되어 있다. pca10040.h 파일에서 핀맵 수정이 가능하다. /components/boards/pca10040.h UART 동작 테스트는 CP2105 USB2UART 보드를 이용하여 PC와 통신 할수 있도록 했다. int main(void) { uint32_t err_code; bsp_board_init(BSP_INIT_LEDS); const app_uart_comm_params_t comm_params = { RX_PIN_NUMBER, TX_PIN_NUMBER, RTS_PIN_NUMBER,..
[nRF52 xBee EVM] 개발환경 설정 (IAR, nRF52810) nRF52 보드 조립하고 JLINK로 연결 했는데... 연결이 안된다. nRF51보드는 잘 연결된다. 뭐가 문제 일까? 기존 nRF51822 보드와 동일한 핀맵으로 제작 되었기 때문에 같은 환경이라 문제가 없어야 하는데... 사용한 칩셋이 nRF52 시리즈 중 가장 저렴한 nRF52810 칩이다. 이게 문제 인가? 구글링 결과 nRF Command-Line Tools 를 설치 하라고 한다. https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools nRF Command Line Tools The nRF Command Line Tools are used for development, programming, and debuggin..
[nRF52 xBee EVM] Bluetooth Low Energy 보드 제작 Bluetooth 5.2 SoC supporting Bluetooth Low Energy [nRF52 xBee EVM] 보드를 표준핀맵의 xBee EVM 형태로 제작 했다. 이전에 제작 했던 [nRF51 xBee EVM] 보드와 동일하 형태 이지만 MCU 및 Bluetooth 성능이 향상된 보드이다. 64 MHz Cortex-M4 192 KB Flash, 24 KB RAM 2.4 GHz transceiver 2 Mbps, 1 Mbps Bluetooth Low Energy ANT +4 dBm TX power 128-bit AES UART, SPI, TWI, PDM PWM 12-bit ADC [nRF52 xBee EVM] 핀맵 [nRF52 xBee EVM] 보드는 다양한 형태의 xBee EVM 확장테스트 보..
[nRF51822 xBee EVM] Arduino BLE Keyboard Test BLE테스트를 위한 기본 설정은 [nRF51822 xBee EVM] Arduino BLE UART Test 를 참고로 해서 설정해 주면 되고 BLE KeyBoard 예제를 구동하면 #include #include // define pins (varies per shield/board) #define BLE_REQ 6 #define BLE_RDY 7 #define BLE_RST 4 //#define ANDROID_CENTRAL // create peripheral instance, see pinouts above BLEHIDPeripheral bleHIDPeripheral = BLEHIDPeripheral(BLE_REQ, BLE_RDY, BLE_RST); BLEKeyboard bleKeyboard; voi..
[nRF51822 xBee EVM] Arduino BLE UART Test nRF51822의 BLE기능을 Arduino에서 사용하기 위해 소프트디바이스 설정과 BLE 라이브러리 설치를 해야 한다. 소프트디바이스 설정은 [nRF51822 xBee EVM] BLE 테스트 - BLE UART(IAR) 를 참고 해서 설정하고 Arduino IDE에서 사용여부를 설정해 주면 된다. BLE 라이브러리는 BLEPeripheral 을 설치 해 주면 된다. 기본 으로 제공되는 BLE UART 예제를 수정해서 앱에서 전송되는 UART 값에 따라 LED On/Off 하는 예제를 작성해 보았다. #define PIN_LED1 13 // create ble serial instance, see pinouts above BLESerial BLESerial(BLE_REQ, BLE_RDY, BLE_RST)..
[nRF51822 xBee EVM] Arduino 테스트 - I2C VL53L0X, PCF8574 #include #include #define PCF_8574_ADDR 0x20 void write8(uint8_t Address, uint8_t Value) { Wire.beginTransmission(Address); Wire.write(Value); Wire.endTransmission(); } uint8_t read8(uint8_t Address, uint8_t Value) { uint8_t ret; Wire.beginTransmission(Address); Wire.write(Value); Wire.endTransmission(); Serial.println("1"); Wire.requestFrom(Address, (uint8_t)1); ret = Wire.read(); return ret; }..
[nRF51822 xBee EVM] Arduino 테스트 - SSD1306 OLED 테스트 [xBee-S EVM] 보드를 이용하면 I2C 인터페이스의 OLED를 연결해서 테스트 가능하다 Arduino에서 SSD1306 OLED제어를 위한 라이브러리를 사용하면 쉽게 LCD에 출력 할 수 있다. SSD1306 라이브러리 기본예제를 수정해서 간단히 OLED에 출력하는 예제를 구동하면 정상 동작하는 것을 확인 할 수 있다. #define LED_PIN1 13 #define PCF_8574_ADDR 0x20 #include #include #include #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels // Declaration for an S..
[nRF51822 xBee EVM] Arduino 테스트 - I2C PCF8574 Test nRF51822의 I2C 테스트를 위해 가장 쉽게 테스트 해 볼 수 있는 I2C GPIO확장 모듈 [PCF8574 SSM EVM] 보드를 테스트 해 보았다. [nRF51822 xBee EVM] 보드의 I2C 는 아래와 같이 할당되어 있다. SCL -> IO21 SDA -> IO20 Arduino에서 PCF8574 제어를 위한 기본 코드를 실행하면 정상적으로 동작하는것을 확인 할 수 있다. #include #define LED_PIN1 13 #define PCF_8574_ADDR 0x20 void write8(uint8_t Address, uint8_t Value) { Wire.beginTransmission(Address); Wire.write(Value); Wire.endTransmission(); }..

반응형