https://github.com/roggersanguzu/arduino-the-or-gate-logger
This a an Arduino Bases system that works as an Or Gate Logger for a Motor and a LED Display
https://github.com/roggersanguzu/arduino-the-or-gate-logger
Last synced: about 2 months ago
JSON representation
This a an Arduino Bases system that works as an Or Gate Logger for a Motor and a LED Display
- Host: GitHub
- URL: https://github.com/roggersanguzu/arduino-the-or-gate-logger
- Owner: roggersanguzu
- License: mit
- Created: 2023-10-24T12:01:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-28T08:59:27.000Z (almost 2 years ago)
- Last Synced: 2025-03-06T07:31:34.149Z (7 months ago)
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# ARDUINO-THE-OR-GATE-LOGGER
This a an Arduino Bases system that works as an Or Gate Logger for a Motor and a LED Display
Arduino OR Gate Logger.


# Description:
This Arduino program reads values from various pins and uses them to control an OR gate. The program then logs these values to the serial monitor.# Setup:
Connect the appropriate sensors or variables to pins 3 and 2 for analog inputs.
Connect the output of the OR gate to pin 4.
Connect the appropriate sensors or variables to pins 6 and 8 for digital inputs.
Connect another output of the OR gate to pin 5.
Code Explanation:
The program begins by setting the mode of pins 6, 8, 4, and 5 in the setup() function. Pins 6 and 8 are set as INPUT, and pins 4 and 5 are set as OUTPUT.In the loop() function, the program reads analog values from pins 3 and 2, prints them to the serial monitor, and uses them as inputs to an OR gate. The output of the OR gate is then written to pin 4.
The program also reads digital values from pins 6 and 8, prints them to the serial monitor, and uses them as inputs to an OR gate. The output of the OR gate is then written to pin 5.
The delay() function is used to create a pause in the program, allowing the output to be seen on the serial monitor and the OR gate to be simulated.