0

Remote load on ATTiny

The IR unit is intended for remote load control. The device has a programming function, and allows you by pressing a programmed button do on and off load. The scheme is based on a microcontroller ATtiny15L is that you want before using to flash the following program. The current flowing through the led should be less than 20mA. Button SA1 is required for load control in manual mode, the button SA2 is designed to enter the programming mode.

In the program code written code protection against contact bounce, so you can use any of the buttons. To enter programming mode you need to press the button SA2, then the led lights up. Next, you need to press the button on the remote control to the device remember this button. After which the device returns to normal operation mode.

2The microcontroller firmware is performed using the program PonyProg2000.

Here is a diagram of a very simple programmer:

1Scheme of the programmer is inside the plug from the LPT. This scheme programmer has no protective resistors in the case of the faulty circuits or failure of the program LPT-port may be damaged. There are also other diagrams, but they are quite complicated. They can be found on the website of the program PonyProg2000. This insertion is carried out double protection from accidental freezing. But due to interference, the hang can still happen. And to "revive" the device will need to disconnect the device.

Files to the project:

The source code and hex file

joyta.ru

admin

Leave a Reply

Your email address will not be published. Required fields are marked *