[BLE] Bike Data Acquisition (ble 최종)
·
Project/BLE
Development Environment이전at command firmware flash와달리,현재download tool이update됨에따라,flash가능한bin file의개수가줄어현재의flash download tool로는이전과같은bin file을모두flash하는것이불가능-> Atcomman를upload하고수정을하지않고사용하므로factory_WROOM-32.bin file하나로upload해도된다.-> 따라서, factory file을upload,address 0x0,DoNotChgBincheck를통해flashData CheckBLE Scanning Application : nRF Connect, BLE Name : Cycplus C3 12025CSC Measurement로 value가 찍히는 것을 ..
[BLE] esp32 communication using AT command
·
Project/BLE
esp32에는 아주 특별히 at command라는 것이 있다.이는 개발 단계에서 이미 지정한 하나의 매크로로써, 코드를 입력하지않고 간단한 커맨드만으로 동작을 수행할 수 있게 한다.AT command TypesBLE AT commandWi-Fi AT commandExisting Development GoalsThe existing problemAT+CWLAP, AT+CIFSR 등으로 불러온 AP List, Wi-Fi information을어떻게 저장해서 보내는가? -> AT command에는 buffer에 저장하는 기능이 없다.++phone으로 보낼 때, 보낼 데이터의 길이를 지정해주어야되는데 길이를 알 수 없다.-> Atmega를 추가적으로 활용하여 at command로 불러온 정보를 buffer에 저..
[BLE] esp32 communication using wifi, ble, uart
·
Project/BLE
이전 글인 esp32 study를 바탕으로 communication을 시도해보았다.Development Goals현재 목표는, 버튼을 통해 인터럽트를 주고 그 인터럽트를 통해microchip과 esp32는 서로 uart를 통한 communication으로 data를 주고 받는다.esp32는 그 data를 다시 ble를 통해 phone app으로 주고 받고,socket과도 wifi를 통해 data를 주고 받는다.총 esp32는 3개의 communication을 주고 받는다.Development EnvironmentArduino IDE에서 ESP32와 연결된 port를 선택, 이때, port는 장치관리자를 통해 어떤 port인 지 확인Upload는 à 모양의 icon을 통해 가능하다.파일 -> 환경설정 ->..
[BLE] esp32 study
·
Project/BLE
자전거와 esp32를 연결하여 자전거로 운동을 한다면,얼마나 칼로리가 소모됐는 지, 몇 시간 했는지를 알기위해 사용할 device인 esp32를 공부해보았다.device : esp32-wroom-32ddevice spec : SchematicsPin MapESP32-WROOM-32D SpecificationsStrapping Pins : ESP32 has five strapping pins,1.MTDI(GPIO12)2.GPIO03.GPIO24.MTDO(GPIO15)5.GPIO5Software can read the values of these five bits from register “GPIO_STRAPPING”During Chip’s system reset release( power-on reset,..
[IOT] 2. Fan Control with BLE
·
Project/BLE
우선, BLE란, Bluetooth low energy의 줄임말이다.앞서, iot 선풍기 제어를 만들 때, 최종 목표는 bluetooth로 스마트폰에서 on,off 제어를 하는 것이었다.기본적인 작동방식은 bluetooth module(가장 왼쪽)과 arduino가 tx rx를 통해 신호를 주고 받을 것이다.스마트폰과 bluetooth module이 bluetooth로 통신을 하고, 스마트폰에서 on or off의 command를 주면,bluetooth module에서 command에 따른 신호를 arduino로 tx,arduino에서 신호를 rx해서, relay module이 control해주는 구성이 된다. bluetooth module과 arduino는 serial로 통신하고,bluetooth mo..
[IOT] 1. Fan Control with Arduino,relay Module
·
Project/BLE
목표 : bluetooth module을 통해 Client에서 신호를 주고 그 신호에 따른 Fan Control신호에 따라 Fan Control에 있어서 relay module을 사용해서 전기 신호에 따른 switch역할을 수행할 것이다. bluetooth module을 사용하기 전 relay module의 공부를 위해 arduino로 신호를 주는 형태로 먼저 수행해보았다.그래서 이번 포스팅은 arduino로 신호를 주고 그 신호에 따라 relay module에서 선풍기를 껐다 켰다 하는 용도이다.  * 본 코드는 Arduino code이며 5초동안 9번핀을 통해 High or Low signal을 주는 용도이다.* 이후에는 Arduino가 빠지고 bluetooth module을 통해 신호를 줄 것이다...
황공진
'Project/BLE' 카테고리의 글 목록