Close
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Senior Member
    Join Date
    Mar 2014
    Posts
    560
    Thanks Given
    213
    Thanked 357 Times in 194 Posts
    Quote Originally Posted by icepick View Post
    Nice writeup!

    I wish AL would have thought of this, the confidence LED is far too bright and dimming it by any other means than what you have designed makes the alert intensity insufficient. Dark mode just makes me wonder... did I lose power?

    Great solution!
    I don't know, the only thing a constant LED tells me is that the system is powered up. But it doesn't tell me that the CPU is still running. Assuming that the blinking LED is controlled by some process on the CPU, the blinking action to me indicates that the CPU is actually doing something (the watchdog timer is firing, the CPU is switching the LED on, and then off). But a constant LED? Well if the CPU were to hang, wouldn't the LED simply remain on? Knowing that the system has power is not the same as knowing it's running. That's why I'm probably just going to keep on using dark mode. If I want to confirm it's running, I'll hit a button and make sure it responds.

  2. The Following User Says Thank You to awj223 For This Useful Post:

    modsl55amg (02-28-2015)

  3. #12
    Senior Member radargeek's Avatar
    Join Date
    Jan 2014
    Location
    York, SC
    Posts
    525
    Thanks Given
    116
    Thanked 571 Times in 270 Posts
    Quote Originally Posted by awj223 View Post
    I don't know, the only thing a constant LED tells me is that the system is powered up. But it doesn't tell me that the CPU is still running. Assuming that the blinking LED is controlled by some process on the CPU, the blinking action to me indicates that the CPU is actually doing something (the watchdog timer is firing, the CPU is switching the LED on, and then off). But a constant LED? Well if the CPU were to hang, wouldn't the LED simply remain on? Knowing that the system has power is not the same as knowing it's running. That's why I'm probably just going to keep on using dark mode. If I want to confirm it's running, I'll hit a button and make sure it responds.
    If the LED is dimmed via PWM it's essentially blinking at a fast rate (faster than the eye can see), so if the CPU were to hang, and software PWM is used, the LED would either get stuck on full brightness or off.

    That's not a 100% reliable indication of system stability, however. Depending on the nature of the failure the PWM loop could still be running but other functions stop working, or vice versa. Or PWM may be implemented in hardware or in a CPU peripheral that keeps working even if the main CPU hangs. A good design uses a watchdog timer to reset the CPU if it hangs (another feature built into most microcontrollers).

    Pressing a button is a better way to know "for certain" that the system is functioning correctly.
    If I passed you on the right, YOU are in the wrong lane!

    2016 Encounters/Saves (to date): 33.8: 1/1 (last 4/13) | 34.7: 1/1 (last 3/11) | 35.5: 19/11 (last 8/28) | K: 1/1 (last 6/26)
    2015 Encounters/Saves: 33.8: 1/0 | 34.7: 13/4 | 35.5: 19/10 | K: 4/1 | LIDAR (sighted/hit with/save): 4/1/1

    ACTIVE CMs: Redline X, K, Ka 2,4,5,8 (highway/long trip RD) | New! V1C 3.8945 K, Ka CS, TMF2 w/YaV1 (in-town RD) | ALP Quad | BlackVue DR650GW-2CH

  4. The Following User Says Thank You to radargeek For This Useful Post:

    modsl55amg (02-28-2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •