본문 바로가기

전체 글210

flysky ibus 아두이노로 수신 사용하는 RC 송신기는 FS-i6, RC 수신기는 FS-A8S이다. ​ flysky의 rx protocol인 ibus에 대한 정보를 찾다가 아두이노 라이브러리가 있길래 한 번 써봤다. https://github.com/bmellink/IBusBM bmellink/IBusBM Arduino library for RC IBUS protocol - servo (receive) and sensors/telemetry (send) using hardware UART - bmellink/IBusBM github.com 이 라이브러리에서 ibus uart rx를 serial0 rx로 고정해놨는데 이게 업로드에 쓰는 유아트 핀이라 업로드할 때는 수신기 ibus 핀을 빼놔야 한다. ​ 송신기가 꺼져있을 때는 0값을 유지.. 2021. 2. 20.
stm32f4로 RC 조종기 사용하기 1 이번엔 조종데이터 받아서 무선으로 모터 돌려보려고 한다. ​ https://github.com/mokhwasomssi/stm32f4_hal_flysky_ibus mokhwasomssi/stm32f4_hal_flysky_ibus stm32f4 library for flysky ibus protocol. Contribute to mokhwasomssi/stm32f4_hal_flysky_ibus development by creating an account on GitHub. github.com 할 일 1. 송신기 사용법 - 설명서가 있더라 2. 수신 데이터 받고 3. 드론 조립하고 4. 모터 간단히 돌려보기 (+ 비행 시뮬도) ​ 일단 수신 데이터 받으면 드론 조립해서 모터 4개 동시에 구동해보려고 한다. .. 2021. 2. 20.
드론 dshot 프로토콜 직접 구현 개발환경 : stm32cubeide, stm32f4 개발보드, hal 라이브러리 https://github.com/mokhwasomssi/stm32f4_hal_dshot mokhwasomssi/stm32f4_hal_dshot stm32f4 hal dshot(drone esc protocol) source code. Contribute to mokhwasomssi/stm32f4_hal_dshot development by creating an account on GitHub. github.com 매우 간단하게 코드를 짰다. 원래는 이것저것 넣으려고 했지만 모터는 잘 돌아가는 것 같아서 나중에 필요할 때 넣기로 했다. 디샷 패킷 변하는 것도 찍었어야 했는데ㅠ dshot600 속도 제어만 가능 (48 - 20.. 2021. 2. 19.
stm32f4로 DShot 신호 만들기 2 모터 돌아감 ​ 타이머 2로 디샷 패킷 보내고 타이머 11는 디샷 신호 보내는 주기 설정 : 1khz ​ 별 내용 없음. 와 모터 돌아간다~ 이정도? 설명은 차후에... github.com/mokhwasomssi/stm32f4_hal_dshot mokhwasomssi/stm32f4_hal_dshot stm32f4 hal dshot(drone esc protocol) source code. Contribute to mokhwasomssi/stm32f4_hal_dshot development by creating an account on GitHub. github.com 2021. 2. 19.
ICM-20948 라이브러리 만들긴 했다... https://github.com/mokhwasomssi/stm32_hal_icm20948 GitHub - mokhwasomssi/stm32_hal_icm20948: ICM-20948 library with STM32 HAL driver ICM-20948 library with STM32 HAL driver. Contribute to mokhwasomssi/stm32_hal_icm20948 development by creating an account on GitHub. github.com 2020.11.30. 부터 2021.01.03. 까지 35일. 한달 조금 넘게? 84시간 52분 걸렸다. ​ 처음엔 stm32cubeide 툴은 처음 써보고 SPI 통신도 몰랐고 stm32 spi 함수 쓸 줄도 몰랐고.. 2021. 2. 19.
ICM-20948 라이브러리 만드는 중 ICM-20948은 드론 자세 제어에 필요한 IMU센서이다. (9축 센서 = 3축 각속도 + 3축 가속도 + 3축 지자계) 보통 IMU센서하면 MPU6050(I2C 통신)이나 MPU9250(SPI 통신)을 사용하고 자료도 많다. ​ 근데 제조사에서는 MPU 시리즈는 현재 추천하지 않고 ICM 시리즈를 추천하고 있어서 새로운 센서도 써볼겸 ICM-20948 센서 모듈을 샀다. ​ 내가 아는 한에서 이 제품이 관련문서 공개가 가장 많이 되어있다. https://www.sparkfun.com/products/15335 SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic) - SEN-15335 - SparkFun Electronics about a year ago by Member.. 2021. 2. 19.