{"product_id":"mikroe-2366","title":"Thumbwheel Click","description":"\u003cp\u003eThumbwheel click is a mikroBUS™ add-on board with a 10-position rotary sprocket connected to a \u003ca href=\"http:\/\/datasheets.maximintegrated.com\/en\/ds\/DS2408.pdf\" target=\"_blank\"\u003e1-Wire 8-Channel Addressable Switch\u003c\/a\u003e. The starting position of the switch is marked with a small notch on the PCB above the wheel. Printed numerals from 1 to 10 clearly mark each position. The thumbwheel has a crown with small incisions for better finger traction. The board can use both a 3.3V or a 5V power supply. The One-Wire signal can be sent either through the mikroBUS AN or PWM pins. You choose which one by soldering the GP SEL jumper into the right position.\u003c\/p\u003e\n\u003ch4\u003e\u003cstrong\u003eSpecification\u003c\/strong\u003e\u003c\/h4\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eType\u003c\/td\u003e\n\u003ctd\u003ePort expander\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eApplications\u003c\/td\u003e\n\u003ctd\u003eUsed as a simple input device on a variety of instruments, machines, and similar devices\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOn-board modules\u003c\/td\u003e\n\u003ctd\u003eDS2408 8-channel addressable switch\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eKey Features\u003c\/td\u003e\n\u003ctd\u003e1-Wire 8-Channel 10-position thumbwheel switch\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eKey Benefits\u003c\/td\u003e\n\u003ctd\u003eConfigurable output pin (OW1 or OW2), Starting point marked with notch on PCB for easier orientation\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eGPIO\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInput Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V or 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCompatibility\u003c\/td\u003e\n\u003ctd\u003emikroBUS\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\u003ch4\u003e\u003cstrong\u003eFeatures and usage notes\u003c\/strong\u003e\u003c\/h4\u003e\n\u003cp\u003eThe starting position of the switch is marked with a small notch on the PCB above the wheel. Printed numerals from 1 to 10 clearly mark each position. The thumbwheel has a crown with small incisions for better finger traction. The board can use both a 3.3V or a 5V power supply. The One-Wire signal can be sent either through the mikroBUS AN or PWM pins. You choose which one by soldering the GP SEL jumper into the right position.\u003c\/p\u003e\n\u003cp\u003eThumwheel click is controlled through a simple Dallas One-Wire protocol with only three functions. There is a function for configuring the registers, a function for reading the current position of the thumbwheel, and a function for software reset. Hardware reset can be executed using the RST pin.\u003c\/p\u003e\n\u003cp\u003eMikroElektronika compilers contain a One-Wire library that works with this click.\u003c\/p\u003e\n\u003ch4\u003e\u003cstrong\u003eProgramming\u003c\/strong\u003e\u003c\/h4\u003e\n\u003cp\u003eThe following code snippet reads the current position of the thumbwheel\u003c\/p\u003e\n\u003cpre\u003e 1 char DS2408_ChannelRead() \n2 {\n3 int state;\n4 \n5 while( Ow_Reset( \u0026amp;GPIOA_BASE, 0 ) );\n6 \n7 Ow_Write( \u0026amp;GPIOA_BASE, 0, DS2408_SKIP_ROM_CMD );\n8 Ow_Write( \u0026amp;GPIOA_BASE, 0, DS2408_CHANNEL_READ_CMD );\n9 state = Ow_Read( \u0026amp;GPIOA_BASE, 0 );\n10 return state;\n11 }\n\u003c\/pre\u003e\n\u003cp\u003eCode examples that demonstrate the usage of Thumbwheel click with MikroElektronika hardware, written for mikroC, mikroBasic and mikroPascal for ARM, AVR, dsPIC, and PIC are available on [Libstock].\u003c\/p\u003e\n\u003ch4\u003e\u003cstrong\u003e \u003c\/strong\u003e\u003c\/h4\u003e","brand":"MikroElektronika","offers":[{"title":"Default Title","offer_id":47400890499355,"sku":"MIKROE-2366","price":3049.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0676\/3325\/0587\/products\/thumbwheel-click-thickbox_default-2IzVy4Ulcmhydn.jpg?v=1701962401","url":"https:\/\/mgsl.in\/products\/mikroe-2366","provider":"MG Super Labs","version":"1.0","type":"link"}