Author Topic: RESET push button really necessary or ever used for products?  (Read 1541 times)

0 Members and 1 Guest are viewing this topic.

Offline ricko_ukTopic starter

  • Super Contributor
  • ***
  • Posts: 1152
  • Country: gb
RESET push button really necessary or ever used for products?
« on: October 30, 2024, 03:59:09 am »
Hi,
just curious....
for years I added a reset push button (for the micros MCLR pin) in the products for various customer, but to be honest I don't think it has ever been used once because people just turn off then on the entire equipment.

Does anybody ever add reset button in products where the entire system is running ONLY if the micro is running? i.e. if the entire system is off (and safe) when the micro has no power.

If so, why? What are the advantages and practical uses f having it?

Thank you
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2066
  • Country: au
Re: RESET push button really necessary or ever used for products?
« Reply #1 on: October 30, 2024, 04:09:35 am »
 There are multiple cases either way :

 We did work for Alarm companies, and they specified a power-removal watchdog.
That covers a lot more locked-up cases than a reset pin, which is better labeled reset request on some parts. ::)
Energy from close by lightning strikes can latch-up some parts, which a MCU reset pin has no hope of correcting.

Systems with contained batteries often have some 'reset hole', as power removal on those is not simple.
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 3009
  • Country: us
  • Not An Expert
Re: RESET push button really necessary or ever used for products?
« Reply #2 on: October 30, 2024, 05:37:48 am »
I put a place for the button on the PCB, but I almost never actually install it for production boards.
 

Online coromonadalix

  • Super Contributor
  • ***
  • Posts: 6894
  • Country: ca
Re: RESET push button really necessary or ever used for products?
« Reply #3 on: October 30, 2024, 07:10:21 am »
mcu resets, or equipment are needed

i have one with many people use, and they have a tedency to f... things up,  i have to forcefully reset it once in a while,  but the hard ways, have to delete config files in it thru a console ... 

The latest iteration now has a full reset on 5 secs hold ....

eh eh  i asked for this one ..
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 9219
  • Country: fi
Re: RESET push button really necessary or ever used for products?
« Reply #4 on: October 30, 2024, 07:53:52 am »
Almost never found any use for microcontroller reset. It would be pushed in rare troubleshooting procedures in which case it is much easier to instruct users to plug off power and plug it in again, which has the added advantage of resetting "everything else" on the board too.

It would make more sense to add a generic push button to GPIO pin so that you can assign it a more complex purpose when needed. Something reset-like, "reload configuration" or "run self-check" or whatever.
« Last Edit: October 30, 2024, 07:55:32 am by Siwastaja »
 

Offline SteveThackery

  • Frequent Contributor
  • **
  • Posts: 759
  • Country: gb
Re: RESET push button really necessary or ever used for products?
« Reply #5 on: October 30, 2024, 10:00:15 am »
I think there is a case for a push-and-hold reset function. Not connected directly to the microcontroller's reset pin, because that's not much different from a power cycle. Rather, as a way of initiating a "factory reset" feature which dumps all the "learned" parameters and returns it to its out-of-the-box state.
 
The following users thanked this post: Siwastaja

Offline PGPG

  • Frequent Contributor
  • **
  • Posts: 386
  • Country: pl
Re: RESET push button really necessary or ever used for products?
« Reply #6 on: October 30, 2024, 10:11:19 am »
In 80s/90s when microcontrollers didn't had integrated brown-out detection and watchdog I used RESET pin to force reset on power on, but never used any reset push-button.
Since I don't remember how long I don't use external reset as self contained brown-out does the job.
 

Offline Haenk

  • Super Contributor
  • ***
  • Posts: 1278
  • Country: de
Re: RESET push button really necessary or ever used for products?
« Reply #7 on: October 30, 2024, 10:21:59 am »
That's more of a "reset to factory defaults" than "restart" today, I guess.
 

Offline CaptDon

  • Super Contributor
  • ***
  • Posts: 2132
  • Country: is
Re: RESET push button really necessary or ever used for products?
« Reply #8 on: October 31, 2024, 01:16:51 am »
Yes,we included them, much like the ones on laptops. A non-evident little hole in the case with a click detent PCB mounted push to reset button. Why, because power line glitches, nearby lightning strikes and dry atmosphere static sparks can crash boards with microprosessors and sometimes even the watchdog can get fooled. We need to include the "Insert paperclip here" forced reset.
Collector and repairer of vintage and not so vintage electronic gadgets and test equipment. What's the difference between a pizza and a musician? A pizza can feed a family of four!! Classically trained guitarist. Sound engineer.
 

Offline ricko_ukTopic starter

  • Super Contributor
  • ***
  • Posts: 1152
  • Country: gb
Re: RESET push button really necessary or ever used for products?
« Reply #9 on: October 31, 2024, 12:00:26 pm »
Thank you all for the feedback.

For those of you who say that they include them, going back to my OP, you obtain the exact same result by switching off and on the equipment (in the scenarios I mentioned), so I still don't understand the advantage.

For example @CaptDon mentioned that power lines glitches, lightning etc can crash the board, but what does the rest button achieve that powering off/on the board does not?

Thank you
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 8177
  • Country: nl
  • Current job: ATEX product design
Re: RESET push button really necessary or ever used for products?
« Reply #10 on: October 31, 2024, 12:13:58 pm »
I had them previously. The systems we were selling were integrated, complex. You had dozens of PCBs each with their own microcontroller, and one power switch. Our customers were running tests on them that lasted sometimes months, you wanted to be able to reset individual boards without affecting the other ones.
Or you would want to reset something and keep the external SRAM.
Or reset the microcontroller to invoke a bootloader, without powering off the USB transceiver thus disconnecting it from your PC. Some bootloader won't even work if you don't do it that way.
So there are some reasons to do, depends on the product you make.
 
The following users thanked this post: ricko_uk

Offline ricko_ukTopic starter

  • Super Contributor
  • ***
  • Posts: 1152
  • Country: gb
Re: RESET push button really necessary or ever used for products?
« Reply #11 on: October 31, 2024, 12:21:46 pm »
Yes, all fair points.  :-+

I was thinking about simple products with just one micro and as mentioned in the OP, no external "dependencies" i.e. the whole system runs only when the micro is running.

Thank you :)

 

Offline PGPG

  • Frequent Contributor
  • **
  • Posts: 386
  • Country: pl
Re: RESET push button really necessary or ever used for products?
« Reply #12 on: October 31, 2024, 12:27:43 pm »
For example @CaptDon mentioned that power lines glitches, lightning etc can crash the board, but what does the rest button achieve that powering off/on the board does not?

It is not a question what reset button achieve that powering off/on board does not, but if it is easier for user to use paperclip to reset laptop (it was @CaptDon example) or to open its case and find the battery to disconnect it.
 

Offline eleguy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: fi
Re: RESET push button really necessary or ever used for products?
« Reply #13 on: October 31, 2024, 12:37:48 pm »
Reset button is more than useful when doing development. At least my code seems to get stuck now and then.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 9219
  • Country: fi
Re: RESET push button really necessary or ever used for products?
« Reply #14 on: October 31, 2024, 12:39:48 pm »
Yes,we included them, much like the ones on laptops. A non-evident little hole in the case with a click detent PCB mounted push to reset button. Why, because power line glitches, nearby lightning strikes and dry atmosphere static sparks can crash boards with microprosessors and sometimes even the watchdog can get fooled. We need to include the "Insert paperclip here" forced reset.

This make no sense. MCU reset pin is completely different to what those "paperclip holes" in consumer devices do. They are mainly for resetting to factory settings; the whole point is they do something totally different than cycling power, because every user can cycle power. They are not wired up to reset pins of any CPU or MCU, they connect to an IO pin which triggers a specialized piece of software (like I suggested in my earlier reply). This code would, for example, override all user settings with factory defaults and then restart the device.

Stuck laptops are normally turned off by holding the power button for 5 seconds, after which you can restart as usual. I'm not aware of a laptop with a paperclip hole but I'm 99% certain the switch behind the hole is not directly wired to any reset signal of any microcontroller or processor.
« Last Edit: October 31, 2024, 12:44:46 pm by Siwastaja »
 

Offline PGPG

  • Frequent Contributor
  • **
  • Posts: 386
  • Country: pl
Re: RESET push button really necessary or ever used for products?
« Reply #15 on: October 31, 2024, 01:05:29 pm »
This make no sense. MCU reset pin is completely different to what those "paperclip holes" in consumer devices do. They are mainly for resetting to factory settings;

I'm not sure what are these peperclip holes rests for but if the consumer device has any user interface than resetting to factory settings need not any reset pin - user can select the right menu item.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 9219
  • Country: fi
Re: RESET push button really necessary or ever used for products?
« Reply #16 on: October 31, 2024, 01:11:58 pm »
I'm not sure what are these peperclip holes rests for but if the consumer device has any user interface than resetting to factory settings need not any reset pin - user can select the right menu item.

These holes are usual in devices which have no physical menu available. Like a home router / wifi access point. If you lose the admin password or configure the network weirdly, you can't access the "menu". Then you reset it to factory settings.
 
The following users thanked this post: SteveThackery

Offline SteveThackery

  • Frequent Contributor
  • **
  • Posts: 759
  • Country: gb
Re: RESET push button really necessary or ever used for products?
« Reply #17 on: October 31, 2024, 01:19:27 pm »
This make no sense. MCU reset pin is completely different to what those "paperclip holes" in consumer devices do. They are mainly for resetting to factory settings;

I'm not sure what are these peperclip holes rests for but if the consumer device has any user interface than resetting to factory settings need not any reset pin - user can select the right menu item.

Only if the UI is actually working.  Sometimes, bad parameters in flash memory can render a product unusable. In that case a press-and-hold "factory reset" feature is essential.

We need to be clear about the difference: a switch connected to the reset pin of the microcontroller does much the same thing as a power cycle, so is usually pointless.  A press-and-hold button to reset any flash-based parameters (ie a factory reset) is a different thing and might be essential.

Finally, if it is not possible to power-cycle the microcontroller due to it being permanently connected to an internal battery, then a switch connected to the reset pin is probably essential.

It is a good design discipline to build a degree of resilience into a product. "Resilience" in this case being the facility for the end user to restore the product to working order if it somehow enters an illegal state.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 9219
  • Country: fi
Re: RESET push button really necessary or ever used for products?
« Reply #18 on: October 31, 2024, 01:43:03 pm »
Only if the UI is actually working.  Sometimes, bad parameters in flash memory can render a product unusable. In that case a press-and-hold "factory reset" feature is essential.

One obvious example would be password lockout of the configuration menu, very typically available to prevent unauthorized people accidentally or purposely changing settings. If you then lose the password, you would use the paperclip. Maybe it would physically hidden in a hard-to-access location. It's not security against true malice - anyone can use the paperclip after all -, but security against unnecessarily zealous workers/customers changing settings on a whim.
 
The following users thanked this post: SteveThackery

Offline ebastler

  • Super Contributor
  • ***
  • Posts: 7347
  • Country: de
Re: RESET push button really necessary or ever used for products?
« Reply #19 on: October 31, 2024, 01:54:49 pm »
I have used a Reset button as a simple soft power switch a couple of times: Use a "magic number" in non-initialized RAM to let the microcontroller check whether it was previously running or switched off. Depending on the previous state, either put the system to deep sleep/standby or boot it up.

This allows you to also power off under software control e.g. after a certain inactivity period, and has the option of storing operating parameters in EEPROM (or flash, if that's all the µC has) before really shutting things down. And the reset will ensure that the system always responds, even in case the software got stuck before.
 
The following users thanked this post: Kim Christensen

Offline BlownUpCapacitor

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: us
  • I kinda suck at the art of electronics tbh
Re: RESET push button really necessary or ever used for products?
« Reply #20 on: October 31, 2024, 03:44:42 pm »
Texas Instrument calculators have a reset button. On my go-to scientific calculator, the TI-34, the reset button is under the case though in the form of only carbon tracks for a carbon soft button. You'll have to short those to reset the calculator.

On higher end calculators like the TI-84, the reset button is built-in.
Hehe, spooked my friends with an exploding electrolytic capacitor the other day 😁.
 

Offline Salitronic

  • Contributor
  • Posts: 38
  • Country: mt
  • Electronic Design Engineer
    • Salitronic | Electronic Design Services
Re: RESET push button really necessary or ever used for products?
« Reply #21 on: November 02, 2024, 11:33:18 am »
Normally one reason you might need a reset button (apart from development purposes) is if you want a way to jump to some kind of bootloader on a battery powered device. But even that is not normally done with just a reset button. In a commercial design a reset button is rarely included.
« Last Edit: November 03, 2024, 10:51:08 pm by Salitronic »
 

Offline CaptDon

  • Super Contributor
  • ***
  • Posts: 2132
  • Country: is
Re: RESET push button really necessary or ever used for products?
« Reply #22 on: November 02, 2024, 01:42:16 pm »
Our 'secret' reset button WAS connected to the watchdog / CPU reset and WAS NOT a flash recovery. What does that do that a simple power cycle won't do, actually nothing! Did you ever think that in industrial settings the 'power cycle' could be a disconnect mounted on the wall 10 feet away? Those machines typically have an ESTOP and not a handy power switch. And maybe during maintaining or calibration or indexing procedures it might be handy to have a local reset? Not every hidden reset on laptops does a factory restore of bios!! It helps get past the stupid 'soft switch failure' when the system crashes and hangs and you can't shut the laptop off. Insert paper clip OR remove external power AND take the battery out, oh wait, what about the ones where you can't take the battery out? Well, then you hold the secret button handshake for 30 seconds in some cases. Yes, there are certain cases where a reset button is very handy and certain cases where no one should have access to any form of reset. It just depends on the product.
Collector and repairer of vintage and not so vintage electronic gadgets and test equipment. What's the difference between a pizza and a musician? A pizza can feed a family of four!! Classically trained guitarist. Sound engineer.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 9219
  • Country: fi
Re: RESET push button really necessary or ever used for products?
« Reply #23 on: November 02, 2024, 04:37:22 pm »
Not every hidden reset on laptops does a factory restore of bios!! It helps get past the stupid 'soft switch failure' when the system crashes and hangs and you can't shut the laptop off. Insert paper clip OR remove external power AND take the battery out ...

... but it's still not connected to the CPU or MCU reset pin.

Really, read the opening post of the thread you are replying to.
 

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1819
  • Country: ca
Re: RESET push button really necessary or ever used for products?
« Reply #24 on: November 02, 2024, 05:47:11 pm »
I've used the reset input as a start button on a small MCU with limited pins. User pushes the reset/start button, MCU runs it's code, and then enters sleep mode.
« Last Edit: November 02, 2024, 05:55:09 pm by Kim Christensen »
 
The following users thanked this post: Siwastaja


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf