{"product_id":"mikroe-3449","title":"Gyro 3 click","description":"\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eThe I3G4250 IC supports both I2C and SPI interfaces, which allows Gyro 3 click to be interfaced with a wide range of different MCUs. Although it is very sensitive (down to 0.008 dps\/LSB) it is very resistant to shock and has a non-linearity of only 0.2% of the full-scale value (FS). These features make Gyro 3 click a perfect solution for the development and testing of a wide range of applications which rely on an accurate angular rate sensing. This includes gyro-stabilization for various types of robots, drones, UAVs and RC vehicles, game controllers, orientation sensing, gesture-based HMI applications, VR glasses, and similar types of applications.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eHow does it work?\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eGyro 3 click is based on the \u003ca href=\"https:\/\/download.mikroe.com\/documents\/datasheets\/I3G4250D.pdf\" target=\"_blank\"\u003eI3G4250\u003c\/a\u003e, a three-axis digital gyroscope sensor IC, by \u003ca href=\"https:\/\/www.st.com\/content\/st_com\/en.html\" target=\"_blank\"\u003eSTMicroelectronics\u003c\/a\u003e. This device is produced using a proprietary CMOS micromachining technology, which results in a high level of integration, allowing very good linearity over temperature, and increased output stability when no motion applied (referred to as a zero-rate level in the I3G4250 datasheet). It also makes it resistant to shocks, allowing it to be used for speeds up to 2000 dps. It supports signal conditioning including low and high-pass filtering, as well as the threshold detection on each axis.\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"https:\/\/www.mikroe.com\/img\/images\/gyro-3-click-inner-img.jpg\" alt=\"Mikroe Click Boards Sensors Gyro 3 Click\"\u003e\u003c\/p\u003e\n\u003cp\u003eTypically, higher dps range results in lower sensitivity. Therefore, the I3G4250 allows to dynamically select the full-scale range (FSR) value in several discrete steps: ±245, ±500, and ±2000 dps. This allows optimized performance for a given usage scenario. For example, if used in applications with faster angle rates such as sports equipment monitoring (golf club or tennis racket), a higher FSR might be required, at a cost of lower sensitivity.\u003c\/p\u003e\n\u003cp\u003eThe MEMS output voltage is sampled by a high-accuracy 16-bit A\/D converter, allowing the output in 2’s complement format. As mentioned above, different FS ranges have different sensitivity per LSB. Therefore, raw output values of the sensor will have to be multiplied with the sensitivity to obtain the values in degrees per second (dps). These values can be obtained from the I3G4250 datasheet, for every FS range, respectively.\u003c\/p\u003e\n\u003cp\u003eThere are two filters available on the I3G4250 sensor: an external low-pass (LP) filter, and a digital high-pass (HP) filter with user-selectable cutoff frequency. Both of these signals can be digitally selected and applied to an angular speed measurement, allowing the developer to reduce the noise or fine-tune the sensitivity within a desired bandwidth.\u003c\/p\u003e\n\u003cp\u003eThe I3G4250 device features a FIFO buffer, which in combination with a dedicated interrupt line, allows firmware optimizations while reducing the power consumption of the application as a result. The FIFO buffer has 32 slots, each 16-bit wide, used to store output values. The I3G4250 device can be configured to use the FIFO buffer in three different modes: Bypass mode, FIFO mode, and Stream mode. While the first mode allows the developer to read the values directly from the output registers, two other modes allow the utilization of the buffer. The FIFO mode will collect the data and stop collecting until its read (or reset), while the Streaming mode will continuously fill the buffer, discarding the oldest value.\u003c\/p\u003e\n\u003cp\u003eOne of the two interrupt lines is labeled as DRDY\/INT2 on the schematic, and it is routed to the mikroBUS™ AN pin (labeled as DI2). This line is used to report one of the programmable FIFO events: watermark level is reached, FIFO buffer is empty, and there is an overrun event on the FIFO buffer (FIFO is full). The pin can also be used to report when there is a new data available at the output after the conversion period (data ready). To find out which event exactly has occurred, the host MCU should read the status of the respective flag bits from the STATUS register.\u003c\/p\u003e\n\u003cp\u003eThe second interrupt line is used to report when the programmed threshold is reached. It is possible to detect events which are above or below a programmable threshold, and trigger an interrupt on the INT1 pin, routed to the mikroBUS™ INT pin. By directing the I3G4250 device to wait for a built-in timer to expire, a false triggering can be prevented. To detect an interrupt source, the MCU can should read the status of the respective flag bits from the INT1_SRC register.\u003c\/p\u003e\n\u003cp\u003eGyro 3 click offers two communication interfaces. It can be used with either I2C or SPI. The onboard SMD jumpers labeled as COMM SEL allow switching between the two interfaces. Note that all the jumpers have to be positioned either I2C or to SPI position. When I2C interface is selected, an additional SMD jumper labeled as ADDR SEL becomes available, determining the least significant bit of the I3G4250 slave I2C address. The Click board™ should be interfaced only with MCUs that use logic levels of 3.3V.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSpecifications\u003c\/strong\u003e\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eType\u003c\/td\u003e\n\u003ctd\u003eMotion\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eApplications\u003c\/td\u003e\n\u003ctd\u003eIt can be used to develop applications for gyro-stabilization of different types of robots, drones, UAVs and RC vehicles, game controllers, orientation sensing, gesture-based HMI applications, VR glasses, and similar types of applications.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOn-board modules\u003c\/td\u003e\n\u003ctd\u003eI3G4250, a three-axis digital gyroscope sensor IC, by STMicroelectronics.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eKey Features\u003c\/td\u003e\n\u003ctd\u003eAdvanced interrupt engine allows simplified firmware development and better system-wide power consumption, very good reliability, precision, and zero-level stability, signal conditioning in a form of low and high-pass filtering, both SPI and I2C interface…\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eI2C,SPI\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInput Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eClick board size\u003c\/td\u003e\n\u003ctd\u003eM (42.9 x 25.4 mm)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003ePinout Diagram\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis table shows how the pinout on \u003cstrong\u003eGyro 3 click\u003c\/strong\u003e corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).\u003c\/p\u003e\n\u003ctable style=\"width: 549px;\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth colspan=\"4\"\u003e\u003ca href=\"http:\/\/www.mikroe.com\/mikrobus\/\"\u003e\u003cimg src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\" alt=\"Mikrobus logo.png\"\u003e\u003c\/a\u003e\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eINT \/ Data Ready\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eDI2\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003ctd\u003eAN\u003c\/td\u003e\n\u003ctd\u003ePWM\u003c\/td\u003e\n\u003ctd\u003e16\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003ctd\u003eRST\u003c\/td\u003e\n\u003ctd\u003eINT\u003c\/td\u003e\n\u003ctd\u003e15\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eINT\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eInterrupt\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI Chip Select\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eCS\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e3\u003c\/td\u003e\n\u003ctd\u003eCS\u003c\/td\u003e\n\u003ctd\u003eRX\u003c\/td\u003e\n\u003ctd\u003e14\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI Clock\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSCK\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e4\u003c\/td\u003e\n\u003ctd\u003eSCK\u003c\/td\u003e\n\u003ctd\u003eTX\u003c\/td\u003e\n\u003ctd\u003e13\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI Data OUT\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSDO\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e5\u003c\/td\u003e\n\u003ctd\u003eMISO\u003c\/td\u003e\n\u003ctd\u003eSCL\u003c\/td\u003e\n\u003ctd\u003e12\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSCL\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eI2C Clock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI Data IN\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSDI\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e6\u003c\/td\u003e\n\u003ctd\u003eMOSI\u003c\/td\u003e\n\u003ctd\u003eSDA\u003c\/td\u003e\n\u003ctd\u003e11\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSDA\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eI2C Data\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003ePower Supply\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e3.3V\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e7\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003ctd\u003e5V\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e Ground\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e8\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003e9\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003eOnboard Settings And Indicators\u003c\/strong\u003e\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eLabel\u003c\/th\u003e\n\u003cth\u003eName\u003c\/th\u003e\n\u003cth\u003eDefault\u003c\/th\u003e\n\u003cth\u003e Description\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003ePWR\u003c\/td\u003e\n\u003ctd\u003ePWR\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003ePower LED indicator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eJP1-JP4\u003c\/td\u003e\n\u003ctd\u003eSEL COMM\u003c\/td\u003e\n\u003ctd\u003eRight\u003c\/td\u003e\n\u003ctd\u003eCommunication interface selection: left position SPI, right position I2C\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eJP5\u003c\/td\u003e\n\u003ctd\u003eI2C ADD\u003c\/td\u003e\n\u003ctd\u003eRight\u003c\/td\u003e\n\u003ctd\u003eI2C address LSB selection: left position 0, right position 1\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003eSoftware Support\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eWe provide a library for the \u003cstrong\u003eGyro 3 click\u003c\/strong\u003e on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2770\/gyro-3-click\" target=\"_blank\"\u003eLibStock\u003c\/a\u003e page, as well as a demo application (example), developed using MikroElektronika \u003ca href=\"https:\/\/www.mikroe.com\/compilers\" target=\"_blank\"\u003ecompilers\u003c\/a\u003e. The demo can run on all the main MikroElektronika \u003ca href=\"http:\/\/shop.mikroe.com\/development-boards\" target=\"_blank\"\u003edevelopment boards\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eLibrary Description\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eLibrary contains:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003efunctions for getting INT and AN pin states.\u003c\/li\u003e\n\u003cli\u003efunction for setting CS pin states.\u003c\/li\u003e\n\u003cli\u003efunctions for getting and setting register values.\u003c\/li\u003e\n\u003cli\u003efunction for getting temperature register value.\u003c\/li\u003e\n\u003cli\u003efunction for getting XYZ-Axes values.\u003c\/li\u003e\n\u003cli\u003efunction for setting basic device parameters.\u003c\/li\u003e\n\u003cli\u003efunction for getting status register value.\u003c\/li\u003e\n\u003cli\u003efunction for getting FIFO data level.\u003c\/li\u003e\n\u003cli\u003efunction for interrupt threshold values and interrupt wait time.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eKey functions:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ccode\u003evoid gyro3_config( void )\u003c\/code\u003e - sets basic settings to device.\u003c\/li\u003e\n\u003cli\u003e\n\u003ccode\u003evoid gyro3_getStatus( uint8_t * status_register )\u003c\/code\u003e - gets value of status register (27h).\u003c\/li\u003e\n\u003cli\u003e\n\u003ccode\u003evoid gyro3_getAxes( float * x_axis, float * y_axis, float * z_axis, uint8_t measurement_range )\u003c\/code\u003e - reads values from XYZ-Axes registers and converts them to degrees per second value based on measurement range setting.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eExamples description\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe application is composed of the three sections :\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eSystem Initialization - systemInit() - Initializes I2C interface, LOG interface and GPIO pins.\u003c\/li\u003e\n\u003cli\u003eApplication Initialization - applicationInit() - Initializes I2C driver and basic device configuratoin.\u003c\/li\u003e\n\u003cli\u003eApplication Task - applicationTask() - Checks if new data is available on all three axes, If yes then reads and logs their values.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre\u003evoid applicationTask( )\n{\ngyro3_getStatus( \u0026amp;status_register );\n\nif ((status_register \u0026amp; _GYRO3_ZYX_NEW_DATA_MASK) == _GYRO3_ZYX_NEW_DATA_MASK)\n{\ngyro3_getAxes( \u0026amp;x_axis, \u0026amp;y_axis, \u0026amp;z_axis, _GYRO3_MEAS_RANGE_2000 );\nmikrobus_logWrite( \"rn\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\u0026gt;\", _LOG_LINE );\nFloatToStr( x_axis, text );\nmikrobus_logWrite( \"x_axis : \", _LOG_TEXT );\nmikrobus_logWrite( text, _LOG_TEXT );\nmikrobus_logWrite( degrees_per_second, _LOG_LINE );\nFloatToStr( y_axis, text );\nmikrobus_logWrite( \"y_axis : \", _LOG_TEXT );\nmikrobus_logWrite( text, _LOG_TEXT );\nmikrobus_logWrite( degrees_per_second, _LOG_LINE );\nFloatToStr( z_axis, text );\nmikrobus_logWrite( \"z_axis : \", _LOG_TEXT );\nmikrobus_logWrite( text, _LOG_TEXT );\nmikrobus_logWrite( degrees_per_second, _LOG_LINE );\nmikrobus_logWrite( \"\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\u0026lt;\", _LOG_LINE );\n}\nDelay_ms(100);\n}\n\n\u003c\/pre\u003e\n\u003cp\u003eThe full application code, and ready to use projects can be found on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2770\/gyro-3-click\" target=\"_blank\"\u003eLibStock\u003c\/a\u003e page.\u003c\/p\u003e\n\u003cp\u003eOther mikroE Libraries used in the example:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ccode\u003eI2C\u003c\/code\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ccode\u003eUART\u003c\/code\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ccode\u003eSPI\u003c\/code\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eAdditional notes and informations\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eDepending on the development board you are using, you may need \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-click\" target=\"_blank\"\u003eUSB UART click\u003c\/a\u003e, \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-2-click\" target=\"_blank\"\u003eUSB UART 2 click\u003c\/a\u003e or \u003ca href=\"https:\/\/shop.mikroe.com\/rs232-click\" target=\"_blank\"\u003eRS232 click\u003c\/a\u003e to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/compilers\" target=\"_blank\"\u003ecompilers\u003c\/a\u003e, or any other terminal application of your choice, can be used to read the message.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eMIKROSDK\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis click board is supported with \u003ca href=\"https:\/\/www.mikroe.com\/mikrosdk\"\u003emikroSDK\u003c\/a\u003e - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2249\/mikrosdk\"\u003eLibStock\u003c\/a\u003e and installed for the compiler you are using.\u003cbr\u003e \u003cbr\u003e\u003cbr\u003e\u003c\/p\u003e","brand":"MikroElektronika","offers":[{"title":"Default Title","offer_id":47400896856347,"sku":"MIKROE-3449","price":2629.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0676\/3325\/0587\/products\/gyro-3-click-large_default-22xF1DyiW43wHbeL.jpg?v=1701963228","url":"https:\/\/mgsl.in\/products\/mikroe-3449","provider":"MG Super Labs","version":"1.0","type":"link"}