dimmer Controller circuit

13,962

Circuit Image

Connect a 12-volt, 20-watt lamp and a 12-volt battery to the circuit, ensuring correct battery polarity. Momentarily pressing and releasing the button will turn the lamp on. Repeatedly pressing the button will cycle through different power levels. Pressing and holding the button will turn the lamp off. Commented assembly code and hex code for programming are provided, allowing for modifications or additions. The basic circuit can be expanded to control additional HEXFETs, buttons, etc. There are 11 additional I/O lines available for use. The EEPROM memory can be utilized to retain settings when the power is turned off.

The circuit operates on a 12-volt power supply, which is connected to a lamp rated at 20 watts. This setup requires careful attention to battery polarity to ensure proper operation. The control mechanism is facilitated by a momentary push-button switch, which serves multiple functions based on the duration of the press. A brief press activates the lamp, while repeated presses enable cycling through various brightness levels, allowing users to adjust the intensity according to their preference. The functionality is further enhanced by a long press, which turns off the lamp entirely.

The design includes a microcontroller programmed with assembly code, which governs the logic for the button interactions and manages the lamp's power levels. The provided assembly code is commented for clarity, enabling users to understand and modify it as necessary. The hex code allows for easy uploading to the microcontroller, facilitating quick updates to the firmware.

Additionally, the circuit is designed with expandability in mind. It includes 11 available I/O lines, permitting the integration of more components such as additional HEXFETs for controlling multiple lamps or other devices, as well as extra buttons for more complex user interfaces. The EEPROM memory feature is particularly useful, as it can store user preferences or last-used settings, ensuring that the lamp resumes its previous state after a power interruption.

In summary, this circuit design offers a versatile and user-friendly approach to controlling a 12-volt lamp with the potential for further enhancements and customizations, making it suitable for various applications.Connect a 12 volt 20 watt lamp and 12 volt battery to the circuit (observe battery polarity). Momentarily press and release the button to turn the lamp on. Repeatedly press the button to cycle through the power levels. Pressing and holding the button will turn the lamp off. I have provided commented assembly code as well as the hex code for progra mming. Feel free to modify or add to the code as you wish. The basic circuit can easily be expanded to control additional HEXFETs, additional buttons, etc. There are 11 more I/O lines open for use. Also, the EEPROM memory could be used to "remember" settings when power is turned off. 🔗 External reference




Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713

Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713