Prop chainsaw, press button start motor & sound

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Macpo80
 
Posts: 7
Joined: Sun Sep 20, 2015 11:04 pm

Prop chainsaw, press button start motor & sound

Post by Macpo80 »

Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:18 am, edited 1 time in total.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Prop chainsaw, press button start motor & sound

Post by adafruit_support_bill »

You could do it with a single momentary switch.

Connect the common pin to +5v.

Connect the Normally Closed pin to the Fx trigger pin with a pulldown resistor. so it goes LOW when the button is pressed to trigger the sound.

Connect the Normally Open contact to the gate of a MOSFET, with a pulldown resistor to ground. This will go HIGH when the button is pressed and switch current to the motor.

https://www.adafruit.com/product/355

User avatar
Macpo80
 
Posts: 7
Joined: Sun Sep 20, 2015 11:04 pm

Re: Prop chainsaw, press button start motor & sound

Post by Macpo80 »

Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:17 am, edited 1 time in total.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Prop chainsaw, press button start motor & sound

Post by adafruit_support_bill »

Yes, you would need an FX board for the sound. As mentioned above:
Connect the Normally Closed pin to the Fx trigger pin with a pulldown resistor. so it goes LOW when the button is pressed to trigger the sound.
A 3-terminal switch such as this one will have C (common), NO (normally open) and NC (normally closed) connections.
https://www.adafruit.com/products/819

Wiring for the switch would be:
  • C -> 5v
    NC -> FX Trigger pin.
    NC -> 10Kohm pulldown resistor to ground.
    NO -> 10Kohm pulldown resistor to ground.
    NO -> Gate of MOSFET
Wiring for the MOSFET & Motor would be:
  • GATE -> NO pin of switch
    SOURCE -> GND
    DRAIN -> One of the motor terminals.
    The other motor terminal would connect to the motor power supply (depends on the motor you choose).
Wiring and configuration of the Fx board is covered here: https://learn.adafruit.com/adafruit-aud ... ound-board

User avatar
Macpo80
 
Posts: 7
Joined: Sun Sep 20, 2015 11:04 pm

Re: Prop chainsaw, press button start motor & sound

Post by Macpo80 »

Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:17 am, edited 2 times in total.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Prop chainsaw, press button start motor & sound

Post by adafruit_support_bill »

You have the gate of the MOSFET connected to 5v. It needs to be connected to the NO pin of the switch (The other end of the resistor). Also, both resistors should be pulldown resistors (connected to GND). I corrected that in my previous post.

User avatar
Macpo80
 
Posts: 7
Joined: Sun Sep 20, 2015 11:04 pm

Re: Prop chainsaw, press button start motor & sound

Post by Macpo80 »

Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:16 am, edited 1 time in total.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Prop chainsaw, press button start motor & sound

Post by adafruit_support_bill »

You still have the gate of the MOSFET connected to the wrong end of the resistor.
Also, the 'common' pin is usually the center pin on the switch. Double check your switch before making any connections.
You can power the breadboard from the same 3v-5v source that powers VIN of the Fx board. Do not use a 9v battery as shown.
Yes, you need jumpers to connect the power rails on both sides of the breadboard.
All power supply grounds should be connected together at the breadboard.

User avatar
Macpo80
 
Posts: 7
Joined: Sun Sep 20, 2015 11:04 pm

Re: Prop chainsaw, press button start motor & sound

Post by Macpo80 »

Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:16 am, edited 1 time in total.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Prop chainsaw, press button start motor & sound

Post by adafruit_support_bill »

Now your NO connection is on the wrong end of the resistor. It needs to be connected to the MOSFET gate.

We have 8xAA battery holders in the store that would give you 12v. There are 12v NiMH packs available from most battery suppliers. You can also find 11.1v Lithium packs which are probably close enough.

User avatar
Macpo80
 
Posts: 7
Joined: Sun Sep 20, 2015 11:04 pm

Re: Prop chainsaw, press button start motor & sound

Post by Macpo80 »

Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:16 am, edited 1 time in total.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Prop chainsaw, press button start motor & sound

Post by adafruit_support_bill »

That looks better.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”