0

Simplest Arduino + battery for motion sensor + buzzer + mini
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Simplest Arduino + battery for motion sensor + buzzer + mini

by flaagan on Sun Jul 21, 2019 2:57 am

Looking into a small project that would combine:
- a PIR Motion Sensor (https://www.adafruit.com/product/189)
- a Piezo buzzer (https://www.adafruit.com/product/160)
- a Mini push-pull solenoid (https://www.adafruit.com/product/2776)
- a Red illuminated latching on /off button (https://www.adafruit.com/product/1442)

The button will be used as a power switch and to indicate the item is turned on, the motion sensor will watch for motion, upon detection it would sound the buzzer for a few seconds will activating the push-pull solenoid once. The motion sensor may be on for minutes or potentially for upwards of an hour, so that would need to be considered.

The most minimal Arduino board and power source for this setup is what I would need to determine as I need to keep the overall package small. Thanks for any help you can provide.

flaagan
 
Posts: 10
Joined: Sat Dec 24, 2016 5:31 pm

Re: Simplest Arduino + battery for motion sensor + buzzer +

by adafruit_support_bill on Sun Jul 21, 2019 7:22 am

Something like the Trinket M0 would have just enough pins for the job: https://www.adafruit.com/product/3500
You will also need a transistor of some kind to switch current to the Solenoid.
https://www.adafruit.com/product/976
or
https://www.adafruit.com/product/355

And one of these would power it all nicely: https://www.adafruit.com/product/1995

adafruit_support_bill
 
Posts: 74687
Joined: Sat Feb 07, 2009 10:11 am

Re: Simplest Arduino + battery for motion sensor + buzzer +

by kcl1s on Sun Jul 21, 2019 8:30 am

While just a bit bigger than the Trinket M0 the Feather M0 Proto https://www.adafruit.com/product/2772 has the prototyping space to transistor and protection diode right on the board. Either will work great.

Fellow hobbyist
Keith

kcl1s
 
Posts: 1295
Joined: Tue Aug 30, 2016 12:06 pm

Re: Simplest Arduino + battery for motion sensor + buzzer +

by flaagan on Sun Jul 21, 2019 1:04 pm

adafruit_support_bill wrote:And one of these would power it all nicely: https://www.adafruit.com/product/1995


Thanks for the other info on the board and transistor.

For the power supply, that was my mistake to not indicate it would need to be a battery pack as this would be located somewhere away from a power source.

flaagan
 
Posts: 10
Joined: Sat Dec 24, 2016 5:31 pm

Re: Simplest Arduino + battery for motion sensor + buzzer +

by adafruit_support_bill on Sun Jul 21, 2019 1:26 pm

it would need to be a battery pack

In that case, the Feather suggested by Keith might be the better way to go. The Feathers all have built-in 3.7v LiPo chargers.

However, note that the solenoid power will be a somewhat lower if powered by 3.7v instead of 5v. What is the function of the solenoid in your application? You might need to go with a higher voltage battery pack.

adafruit_support_bill
 
Posts: 74687
Joined: Sat Feb 07, 2009 10:11 am

Re: Simplest Arduino + battery for motion sensor + buzzer +

by flaagan on Sun Jul 21, 2019 1:55 pm

The solenoid will be pushing a small hook free from the hole it's set into to release a cover plate. Having the full power to the solenoid may be a smart route to go.

flaagan
 
Posts: 10
Joined: Sat Dec 24, 2016 5:31 pm

Re: Simplest Arduino + battery for motion sensor + buzzer +

by adafruit_support_bill on Sun Jul 21, 2019 2:06 pm

There are a few ways to go then.

You could use a 3x alkaline pack for 4.5v. That would give you about 90% solenoid power
A 4x NiMH rechargeable pack would give you 4.8v or about 96% solenoid power.
A 4x Alkaline pack would give you 6v and about 120% solenoid power (if operation is brief and infrequent, some overvoltage is not a problem for the solenoid).
(None of those options would be compatible with the built-in charger on the Feather.)

Or you could stick with the Feather and 3.7v LiPo and use a PowerBoost to give you 5v to the solenoid: https://www.adafruit.com/product/2030

adafruit_support_bill
 
Posts: 74687
Joined: Sat Feb 07, 2009 10:11 am

Re: Simplest Arduino + battery for motion sensor + buzzer +

by flaagan on Sun Jul 21, 2019 4:43 pm

Looking like the Trinket M0 may be the way to go, assuming it and the other components can take the higher power of a 4x AA pack without any issues.

I'd rather have items like the transistor and protection diode be in-line than on the board, at least for prototyping purposes. Seems that the protection diode (1N4001 Diode) is currently out of stock, so I will have to see if we have some around or source it somewhere. Other than that, it looks like I've got a full buy list sorted.

flaagan
 
Posts: 10
Joined: Sat Dec 24, 2016 5:31 pm

Re: Simplest Arduino + battery for motion sensor + buzzer +

by adafruit_support_bill on Sun Jul 21, 2019 6:59 pm

Looking like the Trinket M0 may be the way to go, assuming it and the other components can take the higher power of a 4x AA pack without any issues.

The Trinket M0 can handle a 6v power source with no problems.

adafruit_support_bill
 
Posts: 74687
Joined: Sat Feb 07, 2009 10:11 am

Re: Simplest Arduino + battery for motion sensor + buzzer +

by flaagan on Mon Jul 22, 2019 1:22 am

adafruit_support_bill wrote:The Trinket M0 can handle a 6v power source with no problems.


Cool, I'll move forward with ordering the parts then. Thanks for the input!

flaagan
 
Posts: 10
Joined: Sat Dec 24, 2016 5:31 pm

Please be positive and constructive with your questions and comments.