Project Overview:
This project is an embedded control system that leverages an ESP32-style microcontroller to manage automated relay activation and LED indication. It features precise timing controls, dual start-up sequences, and multiple operating modes that deliver a robust foundation for hobbyist and industrial applications alike.
Key Features:
• Timing Control: The system defines multiple timing parameters including a post-trigger delay that allows the relay to disengage safely (tEsperaFinal), a pre-trigger wait time (tEsperaAntesDisparo), and an auto-sorting timer (tTemporizadorAutoSorteo) that initiates automatic processes.
• LED Indication: Five dedicated LED outputs (Led1 to Led5) are used to visually communicate system states. Their activation depends on input conditions, allowing for distinct startup sequences that help the user easily identify whether the system is in “sorteo” mode or a sensor-triggered sequence.
• Input/Output Configuration: The project assigns specific pins (l1 to l5) as input channels with pull-up resistors for reliable sensor or button readings, while additional pins are allocated to control motors and relay modules. Two separate pins are used to activate different operation modes, including a “disco” mode for dynamic visual effects.
• Startup Sequence and Randomization: Upon startup, the system configures all input and output ports and runs an initial LED signaling sequence based on the state of selected inputs. The random number generator is seeded using an analog read, ensuring varied operation in subsequent runs.
• Operational Flexibility: With support for both automatic and manual control modes, the system allows users to shift between modes seamlessly. It monitors multiple variables and flags to manage motor control, relay timing, and LED signaling, ensuring a safe and engaging user experience.
Overall, this embedded project is ideal for applications that require precision timing, clear visual feedback through LED sequences, and flexible mode control. The design can be adapted to various automated systems, ranging from interactive lottery mechanisms to motor-driven devices.
#EmbeddedSystem #RelayControl #LEDIndicator #ESP32 #ArduinoProject #Automation #EmbeddedProgramming #DIYProjects
... show more