Author Topic: Auto off  (Read 3894 times)

fr

  • Newbie
  • *
  • Posts: 17
Auto off
« on: March 05, 2015, 06:22:40 am »


Ignition: press the button

Extinction by digispark

On pin 3 that is maintained when you release the button, not the other pins

What to do?

Also I would like to replace the button by a resistance that would start when light

DeuxVis

  • Full Member
  • ***
  • Posts: 107
Re: Auto off
« Reply #1 on: March 06, 2015, 02:41:48 am »
I have used a relay in the past to do something similar.

The relay can be trigerred by both an external event and by one of the digisparks pin (you need a small transistor driven by the 'spark pin to actually have enough current to keep the relay on).
The relay provide power to the digispark (and the load).

When the relay is trigerred by external event, digispark switch on, immediately pull his pin high (so the relay keeps giving it power).
The digispark does his job, then pull his relay pin low - shutting itself off.
Of course the external event needs to be short duration (button press is fine).


Je ne suis pas 100% sur d'avoir compris le but de ton montage ceci dit - n'hésites pas à compléter.

fr

  • Newbie
  • *
  • Posts: 17
Re: Auto off
« Reply #2 on: March 06, 2015, 12:48:08 pm »
Bonjour DeuxVis,

Un plaisir de ne pas utiliser google traduction ;-)

Je voulais faire un démarrage d'un arduino par un poussoir et son extinction par programme.

J'ai pris un digispark pour tester

J'ai oublié le pull-up sur la pin de l'arduino
Cela fonctionne impeccable maintenant





L'idée : l'arduino fonctionne sur batterie, et il a à faire un truc fini donc quand il a terminé, il s'éteint lui-même et on préserve sa batterie.

Il me reste à ajouter une lecture de la tension et une extinction dès le début si elle est insuffisante.


Hello DeuxVis,

A pleasure not to use google translation;-)

I wanted to make a start of an Arduino by a push and off programmatically.

I took a digispark to test

I forgot the pull-up on pin of Arduino
It works perfect now



The idea arduino battery operated and has to make a finished thing so when he finally turns off itself and its battery is preserved.

I still have to add a voltage reading and extinction early on if it is insufficient.
« Last Edit: March 06, 2015, 12:49:44 pm by fr »