Pressure click board released!
From now on measure the pressure with ease - Pressure click is here.
Pressure Click™ is a compact and easy solution for adding pressure measurement to your design.
It features LPS331AP digital output pressure sensor. LPS331AP IC is an ultra compact absolute
piezoresistive pressure sensor capable to measure pressure (260-1260 mbar) or temperature
(-40°C to 80°C) and provide a digital signal to main board microcontroller. Pressure Click™
communicates with the target board microcontroller via mikroBUS™ SPI (MOSI, MISO, SCK, CS),
I2C (SDA, SCL) and INT lines. The board is designed to use 3.3V power supply only.
Yours sincerely,
mikroElektronika
Pressure click board released!
Pressure click board released!
Web Department Manager
Re: Pressure click board released!
Hi there
Just got the pressure click board and tried it out with the code on Libstock but it does not work.
If I look at the I2C bus there is x2 writes of 0xBA one following directly behind the other. This is strange because the board is meant to be initialized first which does not contain a write of 0xBA.
I was trying it with a PIC18f46K22 and it did not work so I changed back to a PIC18F45K22 to make it exactly the same as the example code. I also tried putting in an extra delay after the initialization of the I2C and before the initialization of the pressure sensor but this had no effect.
Does anyone know if any issues with this? Has anyone got the sample code to work?
I am using MikroC and Easypic7. - 8mHz PLL to 32MHz
David
Just got the pressure click board and tried it out with the code on Libstock but it does not work.
If I look at the I2C bus there is x2 writes of 0xBA one following directly behind the other. This is strange because the board is meant to be initialized first which does not contain a write of 0xBA.
I was trying it with a PIC18f46K22 and it did not work so I changed back to a PIC18F45K22 to make it exactly the same as the example code. I also tried putting in an extra delay after the initialization of the I2C and before the initialization of the pressure sensor but this had no effect.
Does anyone know if any issues with this? Has anyone got the sample code to work?
I am using MikroC and Easypic7. - 8mHz PLL to 32MHz
David
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: Pressure click board released!
Hi,
Please can you tell me which compiler you use (mikroC, mikroBasic or mikroPaskal)?
Best regards,
Marina
Please can you tell me which compiler you use (mikroC, mikroBasic or mikroPaskal)?
Best regards,
Marina
Re: Pressure click board released!
Hi there
I am using MikroC.
David
I am using MikroC.
David
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: Pressure click board released!
Hi,
We tried example for Pressure click from LibStock on EasyPIC v7 (mikroBUS socket 1), using PIC18F45K22, mikroC compiler,
and everything works as expected.
Can you explain me a little bit more where the problem occurs?
Best regards,
Marina
We tried example for Pressure click from LibStock on EasyPIC v7 (mikroBUS socket 1), using PIC18F45K22, mikroC compiler,
and everything works as expected.
Can you explain me a little bit more where the problem occurs?
Best regards,
Marina
Re: Pressure click board released!
Hi there
Just to make sure I have downloaded a fresh copy of the project.
I have attached a copy of the screen shot of the traffic on the I2C bus. This is the only activity. The program does not even get as far as putting anything on the LCD. I know the LCD part works fine. If I comment out I2C code then it will print to the LCD no problem. I really cant understand where the double sending on a 0XBA comes from.
According to the code the first thing to be sent should be from inside Pressure_Init(); "Pressure_Write(_RES_CONF, 0x78);" which should result in 0xBA, 0x10, 0x78 being sent on the I2C bus which is not what I am seeing. All I see is x2 0XBA.
David
Just to make sure I have downloaded a fresh copy of the project.
I have attached a copy of the screen shot of the traffic on the I2C bus. This is the only activity. The program does not even get as far as putting anything on the LCD. I know the LCD part works fine. If I comment out I2C code then it will print to the LCD no problem. I really cant understand where the double sending on a 0XBA comes from.
According to the code the first thing to be sent should be from inside Pressure_Init(); "Pressure_Write(_RES_CONF, 0x78);" which should result in 0xBA, 0x10, 0x78 being sent on the I2C bus which is not what I am seeing. All I see is x2 0XBA.
David
- Attachments
-
- screenshot.png (49.47 KiB) Viewed 22444 times
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: Pressure click board released!
Hi,
Can you run your code in ICD Debug mode, and with F8 go through code and try to determine the moment
when the value of x2 0XBA is being sent?
Best regards,
Marina
Can you run your code in ICD Debug mode, and with F8 go through code and try to determine the moment
when the value of x2 0XBA is being sent?
Best regards,
Marina
Re: Pressure click board released!
Hi there
I have come back to this board because of problems I am having with the compass board - there seems to be some sort of connection - http://www.mikroe.com/forum/viewtopic.php?f=88&t=56676
If you check the other post you will see I have used this problem to try and pin point the underlying issue. I have found the reason why there is 2 transmissions - listed in the other post.
I have also used the .hex file in the examples folder for the pressure click and programmed the PIC with the .hex file to rule out any compiler issues if you say that the example works at your end. I also know that the I2C does work because it works with the EEPROM example.
David
I have come back to this board because of problems I am having with the compass board - there seems to be some sort of connection - http://www.mikroe.com/forum/viewtopic.php?f=88&t=56676
If you check the other post you will see I have used this problem to try and pin point the underlying issue. I have found the reason why there is 2 transmissions - listed in the other post.
I have also used the .hex file in the examples folder for the pressure click and programmed the PIC with the .hex file to rule out any compiler issues if you say that the example works at your end. I also know that the I2C does work because it works with the EEPROM example.
David
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: Pressure click board released!
Hi,
I believe I already answered you on this question on the following forum topic:
http://www.mikroe.com/forum/viewtopic.p ... 80#p223780
Best regards,
Marina
I believe I already answered you on this question on the following forum topic:
http://www.mikroe.com/forum/viewtopic.p ... 80#p223780
Best regards,
Marina