60Views4Replies

Author Options:

piezo reacting from splitting power to multiple things Answered

I have two attiny85s that I'm powering with a single 3v battery.  One of these is connected to a piezo (so lights will flash when tapped).  However, the second one keeps affecting the power enough to set off the piezo reaction frequently without tapping.  I don't want to use two separate batteries.  How do I split the power between the two without them affecting each other?

Thanks.

Tags:piezo

Discussions

0
None
mpilchfamily

4 years ago

I suspect it's a power issue. As in the battery isn't able to handle the power draw of both circuits. So when one is drawing a good bit of power the voltage drops enough to affect the output of the piezo. Your circuit is looking for an output within a certain range on the piezo correct? That's the problem with analog. If the voltage isn't constant and steady the readings will change on the analog inputs. You can try adding an electrolytic capacitor across the input from the battery to help maintain voltage during these power spikes.

0
None
aliasjanedoempilchfamily

Reply 4 years ago

Thanks, guys! Switching my capacitor seems to have done the trick.

0
None
Downunder35m

4 years ago

I agree, a 3V cell is not enough if one device has a different power consumption.

Except using a stronger or 2 batteries there is not much you can do.
Adding a goldcap into the power supply for each tiny might help a but to buffer the spikes.

0
None
caitlinsdad

4 years ago

Could you post a picture of your wiring or circuit schematic to see what you are doing? A 3v coin cell doesn't really have that much power and having two microprocessor chips connected to that source may make them unstable. The piezo and don't know how many LEDs or lightbulbs you may have attached will draw most of the current producing odd behavior.