I have just finished soldering th Motor Shield. I have noticed some differencies beetwen board on the site with instructions of making it and board I received. Version of my mshield is 1.1. The main differencies are the following:
- two rows of Digital I/O pins
- two rows of "RST 3v 5v Gnd Vin" and Analog I/O pins
- two holes signed below signs "-","+" of servo pins.
Could somebody explain all differencies beetwen versions of mshield?
Version of Motor Shield
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Version of Motor Shield
These additional signal breakouts make it easier to add sensors and other circuitry.- two rows of Digital I/O pins
- two rows of "RST 3v 5v Gnd Vin" and Analog I/O pins
These make it easier add a separate power supply to control more powerful servos.- two holes signed below signs "-","+" of servo pins.
-
- Posts: 3
- Joined: Wed Jan 18, 2012 9:48 pm
Re: Version of Motor Shield
Thank you for fast reply. Are there any more differencies beetwen versions of mshields?
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Version of Motor Shield
There are some minor layout changes and improved labeling on the silkscreen. But the boards are functionally the same.
-
- Posts: 3
- Joined: Wed Jan 18, 2012 9:48 pm
Re: Version of Motor Shield
I have another question about mshield and AFmotor library. How fast in ATmega clock pulses I can stop or run motor using
motor.run(mode) instuction? How much time it consumes, or how many ATmega328P processor pulses it needs to complete the task?
I am working on the project, in which I have dc motor connected to encoder which has 720 pulses/rotation. I need to sequentialy run and stop motor on each 72 counts from encoder. Sometimes it works properly, but sometimes not. If the speed of motor is larger it stops at the phase "plus some encoder's counts". I think, that the reason is the instruction motor.run(RELEASE) is too slow.
Is there any faster way to run and stop dc motor using mshield?
motor.run(mode) instuction? How much time it consumes, or how many ATmega328P processor pulses it needs to complete the task?
I am working on the project, in which I have dc motor connected to encoder which has 720 pulses/rotation. I need to sequentialy run and stop motor on each 72 counts from encoder. Sometimes it works properly, but sometimes not. If the speed of motor is larger it stops at the phase "plus some encoder's counts". I think, that the reason is the instruction motor.run(RELEASE) is too slow.
Is there any faster way to run and stop dc motor using mshield?
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Version of Motor Shield
It doesn't really matter how fast the code is. It will take your motor far longer to coast to a stop.I think, that the reason is the instruction motor.run(RELEASE) is too slow.
- philba
- Posts: 387
- Joined: Mon Dec 19, 2011 6:59 pm
Re: Version of Motor Shield
sounds like a school project. Here's a hint - since at higher speeds the motor (vehicle?) coasts past where you want it to stop, think about when you should try to stop to compensate for coasting.
Please be positive and constructive with your questions and comments.