ATTINY85 Magnetic Door Sensor (3xAAANiMh 1.2v)(RESOLVED)

Go To Last Post
62 posts / 0 new

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi again and thanks for your reply.

 

yes that could be, but as I stated before  " Now I need electrical help and I am a world noob in this......."

So you suggest me  a decoupling capacitor?

 

thanks for the info :)

 

Last Edited: Sat. May 1, 2021 - 08:28 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


 

Like this you mean?

thanks in advance 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No. A 0.1uF cap directly between the ATTiny85's Vcc and Gnd pins.

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Hi again,

I hope I get it right this time :)

I am googling and trying to understand it and hope I will.

Thanks for the help

should I also use 1 on the rf transmitter? I draw it just in case

 

 

Last Edited: Sat. May 1, 2021 - 02:24 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Good for the ATTiny85's decoupling cap. But your transmitter will draw big "gulps" of current, so your 10uF cap placed very close to the transmitter's supply pins will help avoid interference to the ATTiny85.

 

PS. I don't see the supply connection to your transmitter. Just ground and, presumably, two  data lines back to the ATTiny85.

 

ps2. Bedtime for me.

Ross McKenzie ValuSoft Melbourne Australia

Last Edited: Sat. May 1, 2021 - 02:37 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you very much :),

Lucky for me those are actually the 2 sizes I have in stock. :)

I also read somewhere that I also should use 1 together with a 4.7 K resistor at the reset pin. Is this any good?

I have my VCC of the transmitter on a OUTPUT pin that I enable/disable when go to sleep for power saving. 

greetings,

 

danny

Last Edited: Sat. May 1, 2021 - 02:53 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


 

 

 

It will need some adjustments to my pinmodes, but I hope this is something useable :)

 

 

Last Edited: Sun. May 2, 2021 - 09:27 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


 

 

 

I hope I get it right.... The code is currently finished and I am reading like crazy about setting the unused pins.

I choose for external pull-ups.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How are you connecting power to the transmitter?

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi again :)

 

I power the RF transmitter with a digital pin, whenever I set it to high in the code it will power the module and when low it will turn it off, someone suggested it to me once.

 

greetings

 

danny 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


This with the capacitor and powered directly to the vcc

Pages