0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MIKROE-2387

MIKROE-2387

  • 厂商:

    MIKRO

  • 封装:

    -

  • 描述:

    DIFFPRESSURECLICK

  • 数据手册
  • 价格&库存
MIKROE-2387 数据手册
Page 1 of 2 Diff pressure click From MikroElektonika Documentation Diff pressure is a mikroBUS™ add-on board carrying an NXP MPXV5010DP signal conditioned, temperature compensated and calibrated pressure sensor with two axial ports to accommodate industrial grade tubing. It is designed for comparing two pressure measurements. Diff pressure click Features and usage notes The two ports on Diff pressure click are designated as Pressure side (P1) and Vacuum side (P2). The sensor is designed to operate with a positive differential pressure where P1 > P2. Schematic also available in PDF (http://cdndocs.mikroe.com/images/0/0d/Diff_pressure_click_sc The P1 and P2 ports are not marked on the sensor itself, but according to the vendor’s data sheet, P1 is on the side of part markings. In the case of Diff pressure click, that’s the top half of the sensor. The measurement range is from 0 to 10 kPa. In the temperature range between 0º and 85ºC, the sensor has a maximum error rate of 5.0%. MPXV5010DP IC has an analog output. The signal passes through the onboard 22-bit ADC before being outputted through the mikroBUS™ SPI interface (CS, SCK, MISO). Diff pressure click is designed to use either a 3.3V or a 5V power supply. It’s 3.3V by default. To change it to 5V, resolder the onboard jumpers (zero Ohm resistors) Diff pressure click IC/Module MPXV5010DP (http://www.nxp.com/files/sensors/doc/data_sheet/MPX5010.pdf) Interface SPI Power 3.3V, 5V supply Website www.mikroe.com/click/diff-pressure (http://www.mikroe.com/click/diff-pressure) Programming The following code snippet initializes SPI, UART and the Diff Pressure click and reads the difference between the two pressures to the UART terminal. 1 void main() 2 { 3 //Local Declarations 4 int32_t buffer = 0; 5 char uart_text[20] = { 0 }; 6 float difference = 0; 7 status_t status; 8 9 //GPIOs GPIO_Digital_Input( &GPIO_PORT_24_31, _GPIO_PINMASK_6 ); 10 GPIO_Digital_Output( &GPIO_PORT_24_31, _GPIO_PINMASK_4 ); 11 12 //UART 13 UART1_Init( 9600 ); 14 Delay_ms(200); 15 UART1_Write_Text( "UART Initialized\r\n" ); 16 17 // SPI 18 SPIM1_Init_Advanced( _SPI_MASTER_CLK_RATIO_4, _SPI_CFG_PHASE_CAPTURE_RISING | 19 _SPI_CFG_POLARITY_IDLE_LOW | _SPI_CFG_SS_AUTO_DISABLE | 20 _SPI_CFG_FIFO_DISABLE, _SPI_SS_LINE_NONE ); 21 Delay_ms(200); 22 UART1_Write_Text( "SPI Initialized\r\n" ); 23 24 //Diff Pressure Click 25 diff_pressure_init(); 26 UART1_Write_Text( "Diff Pressure Click Initialized\r\n" ); 27 28 while (1) 29 { 30 status = diff_pressure_read_adc( &buffer ); //Read ADC 31 if ( status == OK ) 32 { 33 //Get Pressure Difference 34 difference = diff_pressure_get_kpa_difference( buffer ); 35 //Write it out 36 UART1_Write_Text( "KPA Difference: " ); 37 FloatToStr( difference, uart_text ); 38 UART1_Write_Text( uart_text ); 39 UART1_Write_Text( "\r\n" ); 40 buffer = 0; 41 } 42 else if ( status == OVH ) //Overflow High 43 UART1_Write_Text( "Overflow happened\r\n" ); 44 else if ( status == OVL ) //Overflow Low 45 UART1_Write_Text( "Underflow happened\r\n" ); 46 else //Data wasn't ready 47 UART1_Write_Text( "Not Ready\r\n" ); 48 Page 2 of 2 49 50 51 52 } } Code examples that demonstrate the usage of Diff press click with MikroElektronika hardware, written for mikroC for ARM, AVR, dsPIC, PIC and PIC32 are available on Libstock (http://libstock.mikroe.com/projects/view/1901/diff-pressure-click). Resources - Diff pressure click example on Libstock (http://libstock.mikroe.com/projects/view/1901/diff-pressure-click) - Vendor’s data sheet (http://www.nxp.com/files/sensors/doc/data_sheet/MPX5010.pdf) - MCP3551 ADC data sheet (http://ww1.microchip.com/downloads/en/devicedoc/21950b.pdf) - mikroBUS™ standard specifications (http://download.mikroe.com/documents/standards/mikrobus/mikrobus-standard-specification-v200.pdf) http://docs.mikroe.com/Diff_pressure_click 9/15/2016
MIKROE-2387 价格&库存

很抱歉,暂时无法提供与“MIKROE-2387”相匹配的价格&库存,您可以联系我们找货

免费人工找货