Good day all. It has been a long time since i've been on the forum or used the IDE for that matter. Things sure have changed.
I've attached a schematic of my project. It's actually going to be a business card.
Anyway, I'm just curious to a couple things.
A) I pretty much did a copy paste from the sparkfun ATtiny85 board. I'm looking for verification or suggestions.
BJ) can i use all 6 pins as digitalwrite even if data is going to them from usb?
C) I plan to use a 3.3v coin cell. data sheet for the AT85 suggests that it's possible.
any suggestions, questions, critiques are welcome.
B) No.
C) It will not run for long. The 270 ohm to the transistor will consume considerable current from the coin cell. The LEDs being on will add current consumption.
@horkusflux you may want to run this hardware and see if you get the performance you need. Coin cells are happier with light loads.
Will the cell be replaceable?
I am curious about your target cost per business card…
If that transistor is part of the on/off switching, you may find a better circuit using a MOSFET, and perhaps consider using high side switching of Vcc.
Have you measured the off current using your arrangement?
There should be no off current. or at least very very little. The battery is replaceable. only 2 or 3 LED's will be on at any given time.
I like he mosfet idea.
the idea with the transistor is that once the button is pressed, it will turn on the ATtiny. The tiny will then digital write high to hold it on. once the LED functions are complete it will digital write the transistor low. shutting off the card.
Cost isn't really an issue. these cards will only go to clients that are higher end.
Not gonna be the card given to every one.
LOL, I figured, either that or have only one on a thread so you can yank it back from the person you gave it to before she pockets it and forgets she ever had it.
But surely you mjst measure the current. I say so because I have been bitten by the thrill of the chase for microamperes in some low power stuff I've built.
The last few draining the cell alla time can be hard to find. Only measuring will confirm you design.
I don’t like the idea of switching the negative line - you can get lots of unexpected things happening .
If you are giving away a piece of electronics with a battery for business purposes, then strictly speaking it needs to meet approvals and carry the appropriate mark ( CE or whatever ) .
Things like disposal of battery , EMC , access to battery compartment ( can a child easily eat it ?) , consideration of wrong usage etc etc .
This sort of stuff
“ a) The producer should first consider whether the product needs batteries or whether it can be powered by other means.
b) If the producer is of the view that batteries are required, they should explore whether alternatives to button or coin batteries can be used.
c) If there are no viable alternatives to button or coin batteries, the producer should ensure that the product has a battery compartment that can be securely fastened, and cannot open inadvertently, to prevent a child from removing the batteries.
d) In addition to (c) the producer should make sure that there are sufficiently prominent and clear warning labels on the product, its packaging, and any instructions and/or manual provided with the product.”
Why don't you like the idea of low side switching?
a mosfet or transistor on the high side will always require power at the base to keep the switch in the "off state". yes?
That's the data I was using.
I'm curious to if its actually ever been done.
I did order one of these and as soon as I put it in my USB slot with the IDE open.
It self wrote it's own code that repeated "thank you for your purchase"
The problem often you get fugative powering of parts via other earth paths , which causes all sorts of issues .
If you use the right bits , you don’t need to keep the transistor powered - except via say a 150k resistor feeding a switched off transistor which is about 0mA !
The previous posters circuit is a good one I’ve used a few times .