Search found 11 matches
- Thu Mar 21, 2024 8:12 pm
- Forum: Hardware
- Topic: Sparkfun MPRLS pressure sensor not responding to activation byte
- Replies: 3
- Views: 1256
Re: Sparkfun MPRLS pressure sensor not responding to activation byte
Hi, yes I tried appending these combinations but nothing works. 0xAA, 0, 0, 0 0xAA, 0, 0 0xAA, 0x00, 0x00 The sensor is definitely powered but the status byte never leaves 0x60. The driver I’m writing takes heavy inspiration from the Adafruit arduino library. I’m going to try my luck with the sensor...
- Thu Mar 21, 2024 6:16 am
- Forum: Hardware
- Topic: Sparkfun MPRLS pressure sensor not responding to activation byte
- Replies: 3
- Views: 1256
Sparkfun MPRLS pressure sensor not responding to activation byte
Hi, I have a Sparkfun MPRLS pressure sensor breakout board. I have connected it via i2c and I'm attempting to write a driver. See my code below: #include "p_module.h" #include <stdio.h> #include <stdint.h> #include <math.h> #include "driver/i2c.h" #define I2C_MASTER_SCL_IO 22 /*!< GPIO number used f...
- Sun Feb 18, 2024 6:56 pm
- Forum: Hardware
- Topic: ICM42688 driver implementation keeps crashing when I read any register
- Replies: 1
- Views: 950
ICM42688 driver implementation keeps crashing when I read any register
I am writing a driver for the ICM42688 IMU. The build compiles just fine and the i2c bus initializes successfully. I also double checked the jumper wires and the pin mappings and they seem to be correct. Below is the code: #include"icm42688.h" #include <stdio.h> #include <stdint.h> #include <math.h>...
- Sun Dec 03, 2023 8:11 am
- Forum: Hardware
- Topic: Battery Driver Issue
- Replies: 2
- Views: 6209
Re: Battery Driver Issue
Thanks for your help!
- Sat Dec 02, 2023 10:02 am
- Forum: Hardware
- Topic: Battery Driver Issue
- Replies: 2
- Views: 6209
Battery Driver Issue
Hi, I wrote this implementation to calculate the battery percentage using the voltage however the battery percentage readings seem off and the output stays at 100 percent for most of the time. Can you spot the issues in the code? #include"_battery.h" //https://en.ovcharov.me/2020/02/29/how-to-measur...
- Wed Nov 15, 2023 4:42 am
- Forum: Hardware
- Topic: BMI088 data not making sense
- Replies: 5
- Views: 2404
Re: BMI088 data not making sense
Thanks, I made the changes you requested and this improved it a lot. I still had problems with pitch roll and yaw however after a lot of combing through I realized I was using gyroscope values instead of accelerometer values for the pitch and roll. So I modified this: (USING GYROSCOPE) double BMI088...
- Sun Nov 12, 2023 11:20 pm
- Forum: Hardware
- Topic: BMI088 data not making sense
- Replies: 5
- Views: 2404
Re: BMI088 data not making sense
Thanks! that fixed the big discrepancy of the axis values.However it seems that my pitch roll and yaw calculations may be off as they jump massively even though I laid the PCBs flat on a surface. Do you have any thoughts as to what else I'm doing wrong? I (338) main_task: Started on CPU0 I (348) mai...
- Sun Nov 12, 2023 6:27 am
- Forum: Hardware
- Topic: BMI088 data not making sense
- Replies: 5
- Views: 2404
BMI088 data not making sense
I have written this basic driver for BMI088 in which I am able to read registers from the sensor. #include "bmi088.h" #include <stdio.h> #include <stdint.h> #include <math.h> #include "esp_timer.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_log.h" #include "driver/i2c.h"...
- Sun Sep 24, 2023 2:03 am
- Forum: Sample Code
- Topic: BMI088 driver sample code
- Replies: 0
- Views: 23729
BMI088 driver sample code
Hi guys
Does anyone have a working driver for bmi088 IMU for esp-idf?
Does anyone have a working driver for bmi088 IMU for esp-idf?
- Sun Aug 13, 2023 6:43 am
- Forum: General Discussion
- Topic: Recent working driver for BNO055 IMU on ESP-IDF 5.1?
- Replies: 0
- Views: 1373
Recent working driver for BNO055 IMU on ESP-IDF 5.1?
Does anyone have a recent driver implementation for the BNO055 IMU that they have used recently (ESP-IDF 5.1). Most examples I can find have deprecated methods and were written years ago.