Prop chainsaw, press button start motor & sound
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Macpo80
- Posts: 7
- Joined: Sun Sep 20, 2015 11:04 pm
Prop chainsaw, press button start motor & sound
Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:18 am, edited 1 time in total.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Prop chainsaw, press button start motor & sound
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
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
- Macpo80
- Posts: 7
- Joined: Sun Sep 20, 2015 11:04 pm
Re: Prop chainsaw, press button start motor & sound
Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:17 am, edited 1 time in total.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Prop chainsaw, press button start motor & sound
Yes, you would need an FX board for the sound. As mentioned above:
https://www.adafruit.com/products/819
Wiring for the switch would be:
A 3-terminal switch such as this one will have C (common), NO (normally open) and NC (normally closed) connections.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.
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
- 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).
- Macpo80
- Posts: 7
- Joined: Sun Sep 20, 2015 11:04 pm
Re: Prop chainsaw, press button start motor & sound
Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:17 am, edited 2 times in total.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Prop chainsaw, press button start motor & sound
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.
- Macpo80
- Posts: 7
- Joined: Sun Sep 20, 2015 11:04 pm
Re: Prop chainsaw, press button start motor & sound
Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:16 am, edited 1 time in total.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Prop chainsaw, press button start motor & sound
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.
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.
- Macpo80
- Posts: 7
- Joined: Sun Sep 20, 2015 11:04 pm
Re: Prop chainsaw, press button start motor & sound
Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:16 am, edited 1 time in total.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Prop chainsaw, press button start motor & sound
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.
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.
- Macpo80
- Posts: 7
- Joined: Sun Sep 20, 2015 11:04 pm
Re: Prop chainsaw, press button start motor & sound
Deleted.
Last edited by Macpo80 on Mon Sep 28, 2015 11:16 am, edited 1 time in total.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Prop chainsaw, press button start motor & sound
That looks better.
Please be positive and constructive with your questions and comments.