Sample code for Arduino Nano with MotorShield (RB-Gra-09)

Hi!

I require your help regarding a problem I’m encountering.I need sample code for the Arduino Nano with motorshield.

Arduino Nano and Motorshield (RB-Gra-09)

Arduino Code

I’ve tried other code samples but they seem to be for boards that have the current sensor so they don’t include code for that and they don’t work.
Additional information:

Thanks.
Thank you so much in advance for your help!

Hey!

Gravitech (the supplier for this product) hasn’t released any official sample code, unfortunately.
I suggest that you try contacting them directly at this address: [email protected]

I also found the pin use for it:
• D4: Direction control of Motor A
• D5: PWM speed control of Motor A
• D6: PWM speed control of Motor B
• D7: Direction control of Motor B
• A0: Current sense of Motor A
• A1: Current sense of Motor B

Let me know if that worked!

Thanks. I already go this from your site. I’ve used motor shields in the past but they don’t have a “current sense”. I’ll keep tinkering and rooting around the web. I already checked the Gravitech site. They say it’s ‘coming soon’. I’ll bug them about it.

Thanks for the prompt reply; I appreciate it.

Hey!

What you could do is plug a multimeter in series with the current sense of your choice, in current mode. Take a couple of readings of both the current sense and the multimeter and put that in excel with the multimeter readings in the Y axis and current sense in the X axis, then ask excel for the formula. It will give you a pretty good idea of how it works!