Electromagnet with Adafruit motorshield

ohhh wow I appreciate it! Also would it be wise to use the same battery to run the Arduino. I read on Adafruit that this can cause problems but it just seams simpler than using two sets of batteries. In which case how many volts would that take. The only other thing ill be using is 1 Hall effect sensor