Arduino Motor Driver With Security
by 979810 in Circuits > Arduino
167 Views, 1 Favorites, 0 Comments
Arduino Motor Driver With Security
This is a simple circuit in which the sum of products seeks user input using slide switches and then sends the output to the H-Bridge (Arduino motor) which rotates the motors. There is the only combination of inputs in which the motor is allowed to run, making this circuit secure.
Supplies
Components used in this project:
- 1x Arduino Microcontroller: Arduino Uno R3 Microcontroller A000073 : Amazon.ca: Electronics
- 2x Breadboard: BB830 Solderless BreadBoard - White : Amazon.ca: Industrial & Scientific
- 2x Gear Motor: Geekstory 2 Sets DC Gearbox Motor
- 1x H-Bridge (L293D): Robojax Mini 4-Channel Motor Drive Board L293D Module Amazon.ca: Toys & Games
- 2x AND Gates (74HC08): 5pcs 74HC08 AND Gate : Amazon.ca: Electronics
- 1x Hex Inverter (74HC04): 10pcs 74HC04 Hex-Inverter (NOT Gate) : Amazon.ca: Industrial & Scientific
- 3x Slide Switches: Slide Switch 20 pcs Latching Toggle Switch : Amazon.ca: Industrial & Scientific
Sum of Products
In this project, the sum of products acts as a security system. The slide switches are used for user input and then the output of the switches is fed into the logic gates and the output of the gates is sent to the H-Bridge. Again, there is only one combination (truth table) of the 3 slide switches that trigger the motors.
In this step, you are supposed to connect the slide switches to their respective logic gates.
SlideSwitchA ➤ Hex Inverter (Input1)
Hex Inverter (Output 1) ➤ AND Gate 1 (Input 1)
SlideSwitchB ➤ AND Gate 1 (Input 2 )
AND Gate 1 (Output 1) ➤ AND Gate 2 (Input 1)
SlideSwitchC ➤AND Gate 2 (Input 2)
After finishing these steps, you will be able to send output into the H-Bridge based on your truth table!
H-Bridge
In this step, you will be able to use the logic gates as input and control the motors!
Connect:
AND Gate 2 (Output 1) ➤ H Bridge (Input 1) & H-Bridge (Input 4)
Gear Motors ➤ H-Bridge (Output 1,2,3,4)
By doing so, you have finished the simple circuit where the user uses the slide switches as input which is fed into the logic gates and processed as output into the H-Bridge to control the motors!