Description: 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.
The circuit operates on a 220V AC input, which is stepped down by a buck converter using resistor R3. The output voltage is rectified by a VDI rectifier and filtered through VD2 and capacitor C3, providing approximately 3.9V DC to...
The circuit utilizes the SC3525A, a PWM silicon chip from US General Semiconductor. It features an error amplifier with an inverting input at pin 1. Pin 2 serves as the non-inverting input for the error amplifier. Pins 5 and 6...
This automotive battery charger project is designed to charge 12V electrolyte lead-acid batteries.
The automotive battery charger circuit is engineered to efficiently charge 12V lead-acid batteries, which are commonly used in vehicles. The design typically incorporates several key components, including a...
A battery is a vital element of any battery-backed system. In many cases, the battery is more expensive than the system it is backing up. Hence, practical measures must be adopted to conserve battery life. As per manufacturer's data sheets,...
This is an advanced dimmer circuit design that allows the triac to be triggered at lower voltage levels. Typically, the triggering voltage for a triac is approximately 70V; however, this circuit enables triggering at around 35V through the incorporation of...
This DC power supply controller is regulated by pulse width modulation (PWM), which is generated by a circuit utilizing timer IC2 7555 according to a specific duty cycle formula.
The described DC power supply controller employs a timer IC, specifically the...
The circuit below is a simple dimmer circuit. A network consisting of R1, R2, VR1, C2, C3, and Q1 controls the triggering angle of the triac by adjusting the variable resistor VR1.
The described dimmer circuit employs a TRIAC (Q1) to...
This design is intended as a dimmer for a 12V reading lamp, but it can also function as a motor speed controller for devices like drills. The circuit modulates the voltage supplied to the load, allowing for variable pulse width...
A simple PWM inverter circuit utilizes the SG3524 integrated circuit. This PWM inverter is designed for a 12V input, providing a 220V output with a maximum output power of 250 watts. The output power can be extended further.
The described PWM...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more