Adafruit Motor Shield V2 Motor Pins

i have a Adafruit Motor Shield V2 and i am trying to set one of the input motor pins high to 12v and i am not sure how to do it in the code mainly because i don't know what pin to declare the variable as. Does anyone know the pin that i can set high for M1-4?

The motor is an output, not an input.

If you mean the input control pins then these are normally driven at logic level.

What voltage are you suppling to the logic side of the chip - that board uses a
L293D I believe? That chip cannot tolerate 12V on any of its inputs, the abs-max
value is 7V, meaning that they are designed for 5V only.

It is this (Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit [v2.3] : ID 1438 : $19.95 : Adafruit Industries, Unique & fun DIY electronics and kits) version that they changes to a TB6612 MOSFET driver: with 1.2A per channel and 3A peak current capability and they say can run motors to 13V. I am using a motor that gets power from my car 12V battery and it has two other wires that if connected to 12V will rotate it 180 degrees. i can use something else I just need some sort of switch that i can activate to connect one of the wires to 12v when triggered by tan accelerometer. i am sure that i can use a transistor i just dont know how and i figured that it would be easier with this.

Any help is greatly appriciated, thanks :slight_smile: