Pressure click board released!

Here you can find latest news on mikroElektronika products.
Post Reply
Author
Message
User avatar
anikolic
mikroElektronika team
Posts: 1775
Joined: 17 Aug 2009 16:51
Location: Belgrade
Contact:

Pressure click board released!

#1 Post by anikolic » 10 Apr 2013 16:34

Pressure click board released!

From now on measure the pressure with ease - Pressure click is here.

Image

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
Web Department Manager

djm2
Posts: 37
Joined: 23 Dec 2011 11:37

Re: Pressure click board released!

#2 Post by djm2 » 06 May 2013 11:07

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

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Pressure click board released!

#3 Post by marina.petrovic » 08 May 2013 10:30

Hi,

Please can you tell me which compiler you use (mikroC, mikroBasic or mikroPaskal)?

Best regards,
Marina

djm2
Posts: 37
Joined: 23 Dec 2011 11:37

Re: Pressure click board released!

#4 Post by djm2 » 08 May 2013 10:32

Hi there

I am using MikroC.

David

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Pressure click board released!

#5 Post by marina.petrovic » 08 May 2013 14:24

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

djm2
Posts: 37
Joined: 23 Dec 2011 11:37

Re: Pressure click board released!

#6 Post by djm2 » 08 May 2013 17:44

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
Attachments
screenshot.png
screenshot.png (49.47 KiB) Viewed 22389 times

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Pressure click board released!

#7 Post by marina.petrovic » 09 May 2013 13:38

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

djm2
Posts: 37
Joined: 23 Dec 2011 11:37

Re: Pressure click board released!

#8 Post by djm2 » 08 Oct 2013 12:55

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

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Pressure click board released!

#9 Post by marina.petrovic » 09 Oct 2013 13:09

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

Post Reply

Return to “Product Announcements”