I am using 3v 1W LED ( Brightest one ), Lights are on with tilt but not bright enough as bright as i check the lights direct with the 32650 battery.
Someone suggest me to use MOFSET, I am new to electronics that's why I am unable to use MOFSET in this Basic Circuit.
Thanks for the Assistance in advance
Hi! Welcome to the Forum!
I was waiting for someone more skilled in circuit designing to take a look at your post. As nobody showed up, I'll put my 5 cents.
-
Your tilt sensors are not connected to any pin of the Attiny, how do you expect their value to be read?
-
The current expected to drive your 3V 1W LED is around 300mA. There's no way you can provide this current with an Attiny's pin. So, you can't finish the circuit without a transistor. By the way, even the coin battery is a poor choice because it can't give you enough current to drive such a LED and the rest of the circuit.
Being this your first post, is highly recommended that you read How to get the best out of this Forum. I can imagine what you're trying to do, but I'll only be sure if you tell.
Thanks for the reply :slight_smile ![]()
For the Resistors I am using 10K value resistor.
For the BAttery I am using 32650 lithium.
Tilt are conencted at line number 14, i think red color is missleading... Let me update the image for you.
And thank you for the recommendation topic for reading.
1W at 3V requires 333mA.
The ATtiny pin is only capable of outputting 40mA max before damaging it. Vcc max is 200mA.
Your LED is dim because the ATtiny can't supply enough current.
Maybe someone will come along and recommend an appropriate transistor. It will be a tall order working with 3V and no doubt will be surface mount.
This is how I would try it:
but:
- you have to set
pinMode(tiltSensorPin, INPUT_PULLUP); - you have to choose appropriate resistors and transistor.
@jim-p would you mind to take a look on this and help me not to give wrong advice?
Can you buy parts from Digi-Key or Mouser or Farnell?
If you can buy one of these:
BC337-40 or BC33740
or
BC338-40 BC33840
If your battery is 3.7V (not 3.2V)
Base resistor = 390Ω
Current limit resistor 2.2Ω 1/2W
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.


