Author Topic: LED to indicate Arduino is running  (Read 7922 times)

0 Members and 1 Guest are viewing this topic.

Offline max_torque

  • Super Contributor
  • ***
  • Posts: 1275
  • Country: gb
    • bitdynamics
Re: LED to indicate Arduino is running
« Reply #25 on: October 14, 2014, 11:27:08 am »
As mentioned, and AC coupled charge pump circuit is a low component count solution, and if you "set" the output port in one critical function and "unset" it in another it also validates that both those functions are being called and running appropriately!

(ie, do a software bitbang port drive, not using a hardware periferal like PWM etc, and don't toggle the port but set and unset it seperately)
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: LED to indicate Arduino is running
« Reply #26 on: October 14, 2014, 12:30:06 pm »
My (last) word...   I'd forego the added hardware - but carefully plan & test a software solution (perhaps patched WDT).  Nothing extra to fail, and the chip already has everything you want - it just needs to be corralled into a solution for your requirements.
Don't ask a question if you aren't willing to listen to the answer.
 

Offline Seekonk

  • Super Contributor
  • ***
  • Posts: 1938
  • Country: us
Re: LED to indicate Arduino is running
« Reply #27 on: October 14, 2014, 05:56:59 pm »
A little programming error led me to this little trick.  I was driving a FET and it stayed on long after it was supposed to turn off in the program.  I looked for a logic error and couldn't find one.  What I had done was forget to declare that pin as an output.  After it wrote a one to that pin, that pin returned to being a floating input.  FET gate capacitance kept the FET on till the charge drained off.  I figure that trick has to be useful some day.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf