Digital pressure sensor Driver

Discussions and support about ChibiOS/EX, the External Peripherals Abstraction Layer.
User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Digital pressure sensor Driver

Postby tfAteba » Sun May 29, 2016 7:30 pm

Hi RM,

Here is the hal_classes for thermometer and barometer.

Now I hope every thing is ok :mrgreen:.

I'm waiting for your feedback to start the driver side.

Thanks

Theo.
Attachments
hal_barometer&thermometer.rar
(3.24 KiB) Downloaded 220 times

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Digital pressure sensor Driver

Postby RoccoMarco » Mon May 30, 2016 6:35 pm

Hi Theo,
I will take a look soon. I will commit some changes to baseSensor first changing axes in channels.
Ciao,
RM

User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Digital pressure sensor Driver

Postby tfAteba » Mon May 30, 2016 9:05 pm

Hi RM,

No problem, I'm going to start to focus on the driver for my sensor while waiting your feedback and your change on the baseSensor.

Did you test you lsm303dlhc driver with a device ? I'm going to look on it to make mine :D

regards,

Theo.

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Digital pressure sensor Driver

Postby RoccoMarco » Mon May 30, 2016 9:08 pm

All commited driver are tested and hopefully free from bugs. Demos are under testhal.
Ciao,
RM

User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Digital pressure sensor Driver

Postby tfAteba » Mon May 30, 2016 10:07 pm

Yes I saw the demo, they are very clear, but the driver is a bit difficult to understand in some point. I will ask questions later if need.

Theo.

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Digital pressure sensor Driver

Postby RoccoMarco » Mon May 30, 2016 10:09 pm

Contact me for any concerns.
Ciao,
RM

User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Digital pressure sensor Driver

Postby tfAteba » Tue May 31, 2016 8:09 pm

Hi RM,

While reading your Driver and your demo program for the lsm303dlhc I found 2 confusing things for the moment:

1. in the I2C-LSM303DLHC demo, from the readme file on the line 2, I think it should be
** ChibiOS/HAL + ChibiOS/EX - I2C + LSM303DLHC demo for STM32F4xx. **

instead of
** ChibiOS/HAL + ChibiOS/EX - SPI + LSM303DLHC demo for STM32F4xx. **


2. In the lsm303dlhc.h file in line 101, when checking for configuration, you wrote:
#error "LSM303DLHC_SHARED_SPI requires I2C_USE_MUTUAL_EXCLUSION"

maybe it should be:
#error "LSM303DLHC_SHARED_I2C requires I2C_USE_MUTUAL_EXCLUSION"


regards,

Theo.

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Digital pressure sensor Driver

Postby RoccoMarco » Tue May 31, 2016 8:51 pm

Good catches. I will fix them and read all my code again. I have edited them more than once.
Ciao,
RM

User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Digital pressure sensor Driver

Postby tfAteba » Thu Jun 02, 2016 12:21 am

Hi RM,

Another remark for your readme file in the I2C-LSM303DLHC demo:
The comment tell that the on board LED is blinking by using a thread. But in your demo, there is no thread, your LED is toggle in the main loop :) .

About the BMP085 driver and the demo, I just finished a beta version and I can read temperature and pressure from the sensor :D but I still need to clean the code a bit before to share. I hope I will have time before next week to do that.

regards,

Theo.

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Digital pressure sensor Driver

Postby RoccoMarco » Thu Jun 02, 2016 12:39 am

Thanks I'll check this too. I have been busy with other things.
Ciao
RM


Return to “ChibiOS/EX”

Who is online

Users browsing this forum: No registered users and 31 guests