Motor Shield v2 Button

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
lan112
 
Posts: 4
Joined: Sat Feb 22, 2014 10:08 pm

Motor Shield v2 Button

Post by lan112 »

Hello,

I'm very new to Arduino world and have a question about Motor Shield v2.
I am working on my school project, what I am doing is connecting a stepper motor and a Leap Motion and control the motor by the Leap Motion (just in case, Leap Motion is a hand motion sensor).

I am trying to put two button switches (or one) to motor on/motor off.
I googled and searched how to add button switches on the board but I still haven't figured out - I'm very new and don't have any background knowledges :(

Anyway, is it able to use SCL row (The red box on the pic of my motor shield v2) to connect button swiches? I'm thinking to use stackable female headers on the motor shield and connect the motor shield and a breadboard. then put button switches on the breadboard. What do you think?
Attachments
20141024_102859.jpg
20141024_102859.jpg (250.4 KiB) Viewed 242 times

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: Motor Shield v2 Button

Post by Franklin97355 »

The shield is designed to be controlled with an Arduino, are you planning to do that? Those rows on both sides connect to the pins right next to them so you can connect things on the shield to the underlying Arduino.

User avatar
lan112
 
Posts: 4
Joined: Sat Feb 22, 2014 10:08 pm

Re: Motor Shield v2 Button

Post by lan112 »

Yep. I am using Arduino UNO (I disassembled to take this pic, actually the shield and the Arduino are connected.) and the motor works fine! but just wondering where to connect if I'd use button switches..

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: Motor Shield v2 Button

Post by Franklin97355 »

Any of the unused digital pins would work for switches.

User avatar
lan112
 
Posts: 4
Joined: Sat Feb 22, 2014 10:08 pm

Re: Motor Shield v2 Button

Post by lan112 »

Thank you so much!! :)

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

Return to “Arduino Shields from Adafruit”