Hello everyone, I am making a project using an Arduino Uno connected with a Adafruit Motor Shield which controls a DC motor(speed and alternate rotation of motor) and a NFC module v3 to integrate security measures.
The working will be as such as whenever the NFC module is tapped with registered NFC card, it starts the dc motor and rotate with a moderate speed(I plan to integrate the motor with a conveyor belt) and after a certain time interval, the dc motor will rotate in opposite direction…
Any help regarding circuit connection, code will be appreciated.
A DC motor doesn’t really need a shield. You should be able to control it via an output pin of the Arduino. Most motors will need significantly more current (and voltage) than the Arduino can provide, so you could use something like a MOSFET to control it. The MOSFET is like a gate you can open and close with the Arduino to allow the larger current and voltage to “flow” to the motor. Here’s a simple picture of the circuit I found by Googling “arduino motor control circuit”:
I can’t find a NFC component on circuito.io but there is an RFID Card Reader (the RC522).
I also can’t find a standard DC motor (there are soooo many variants) but I did find the “Blower - Squirrel Cage (12V)” which obviously has a motor in it to create the blower. Adding that to the circuit automatically added a MOSFET and the wiring! Woohoo!
The above circuit can be seen here: https://www.circuito.io/app?components=9442,11021,11270,761981
If you add a potentiometer (“Rotary Potentiometer - 10k Ohm, Linear”), you could use that to control the speed of the motor: https://www.circuito.io/app?components=9442,9939,11021,11270,761981
Hope that helps
Bernhard