Version of Motor Shield

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
konradbl
 
Posts: 3
Joined: Wed Jan 18, 2012 9:48 pm

Version of Motor Shield

Post by konradbl »

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?

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: Version of Motor Shield

Post by adafruit_support_bill »

- two rows of Digital I/O pins
- two rows of "RST 3v 5v Gnd Vin" and Analog I/O pins
These additional signal breakouts make it easier to add sensors and other circuitry.
- two holes signed below signs "-","+" of servo pins.
These make it easier add a separate power supply to control more powerful servos.

konradbl
 
Posts: 3
Joined: Wed Jan 18, 2012 9:48 pm

Re: Version of Motor Shield

Post by konradbl »

Thank you for fast reply. Are there any more differencies beetwen versions of mshields?

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: Version of Motor Shield

Post by adafruit_support_bill »

There are some minor layout changes and improved labeling on the silkscreen. But the boards are functionally the same.

konradbl
 
Posts: 3
Joined: Wed Jan 18, 2012 9:48 pm

Re: Version of Motor Shield

Post by konradbl »

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?

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: Version of Motor Shield

Post by adafruit_support_bill »

I think, that the reason is the instruction motor.run(RELEASE) is too slow.
It doesn't really matter how fast the code is. It will take your motor far longer to coast to a stop.

User avatar
philba
 
Posts: 387
Joined: Mon Dec 19, 2011 6:59 pm

Re: Version of Motor Shield

Post by philba »

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.

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

Return to “Arduino Shields from Adafruit”