Closet System PIR and ATtiny 85

Thread Starter

allenpitts

Joined Feb 26, 2011
182
Hello AAC forum,

The circuit is a PIR (passive infrared sensor)
HC-SR501 that works with a microcontroller
https://ww1.microchip.com/downloads...iny25-ATtiny45-ATtiny85_Datasheet-Summary.pdf
to turn on some bright 12v LED lights.

Because the the PIR and the LEDs run
on 12 volts the voltage to the
ATtiny has to be knocled down to
5 volts using a linear voltage
regulator 7805.

Closet_ATtiny85_schematic_230720.jpg

The problem is the 7805 is overheating.
When I pulled the ATtiny85 out of
the socket the 7805 does not get
hot. But with the ATtiny MC in the
circuit the 7805 heats up quickly.
So the surmise is that
the MC is pulling more current
than the 7805 can handle.
Closet_ATtiny_bread_board_230714.jpg
Does this look like the issue to you?
If so do you think a 10k resistor between
the 7805 5v output and the ATtiny
and the voltage input to Attiny, pin
8, solve the problem?

Closet_ATtiny_PCB_230720.jpg

The strange thing is the circuit
was run on a breadboard for several
days before designing the PCB.
The breadboard does not heat up
but the PCB does.

Thanks.

Allen Pitts
Dallas Texas
 

MrChips

Joined Oct 2, 2009
34,629
The Atmel ATtiny85 should be drawing no more than 10mA.
Hence the 7805 regulator would have to dissipate 7V x 10mA = 70mW.
Sounds like you have a short of bad connection or component somewhere on your board.
 
Top