{"product_id":"spx-17870-soft-power-switch","title":"Soft Power Switch","description":"\u003cp\u003eThe Soft Power Switch is a passive, hard on\/off switch with software feedback and control. In other words, it\\'s like the on\/off switch on a laptop. A simple press will turn the system on. Another press can (with MCU intervention) turn off the system. And if things go really wrong, pressing and holding the button will force a power-down. If you\\'re building something with an enclosed battery and need a good power button, this is the board you need.\u003c\/p\u003e\n\n\n\u003cp\u003e The Sense\/Control pin can act as an output to a microcontroller indicating the state of the power button (high = not pressed, low = user in pressing power button). This can be used as an input to your firmware to begin to shut down before power is lost. Alternatively, the Sense\/Control pin can be driven low by the system forcing power off via software. Additionally, the Fast Off pin can be used to immediately power down a system.\u003c\/p\u003e\n\n\n\u003cp\u003e The most common use case is something like this:\u003c\/p\u003e\n\n\n \u003cp\u003e* Microcontroller begins running code and checks to see if power button is still being pressed for X milliseconds.\n\u003cbr\u003e * If not, it\\'s just a tap, go back to sleep.\n\u003cbr\u003e * If yes, power up and run normal program.\u003c\/p\u003e\n\n\n\u003cp\u003e Later...\u003c\/p\u003e\n\n\n\u003cp\u003e * User presses power button in normal program\n\u003cbr\u003e * If power button is pressed for\u003c\/p\u003e","brand":"Sparkfun","offers":[{"title":"4-6 Days","offer_id":47645768483161,"sku":"SPX-17870\/B","price":5.78,"currency_code":"EUR","in_stock":false},{"title":"1 day","offer_id":47886201094489,"sku":"SPX-17870\/A","price":5.78,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47886333575513,"sku":"SPX-17870","price":5.78,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/17870-Soft_Power_Switch-01.jpg?v=1704498251","url":"https:\/\/xernuqvalzi.pro\/en\/products\/spx-17870-soft-power-switch","provider":"Robot Italy","version":"1.0","type":"link"}