So this is my first project and I am trying to figure out if there is any problems with this configuration before I start on a standalone version. It is a sort of remote control I am building and it is functioning the way I have intended. Please keep in mind the power source will be replaced and the purpose is to power the unit via means of plugging it in. The motor is turned on by one of the push buttons but the settings can be adjusted prior to turning on the motor. The arduino is power by the power module.
My biggest concern is the wiring and use of my capacitor. Should I be using a diode somewhere as well to prevent back flow from the motor?
Please see attachments. If you feel my code is required please let me know and I will gladly post it.
Components:
-Mega 2560 R3
-Elegoo Power Module
-LCD 16x2
-3.3v Motor
-L293D
-100uF 50v capacitor
-4 push buttons
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read
Pin 16 of the L293 needs to be connected to 5V, this is the internal logic circuit supply.
Pin 8 is the motor power supply.
Thanks again for the replies everyone! I have now removed the capacitor and hooked up pin 16 of the L293D to the 5v supply. I was under the impression that pin 16 was to power another motor for outputs 3 and 4. Am I correct to assume what I should be looking into is a diode rectifier to prevent feedback from the motor?