
				UV-LAMP FIRMWARE
				      for
			   ATtiny2313 microcontroller


PCB LAYOUT
Schematics of main board are shown on 'main-p2.pdf'. The 'main-p2_pcb.pdf'
illustrates ready for use version. It fits 1-1, under LCD controller T162DBNL.
Display with 2 lines and 16 characters per lines is needed for this project.
T162DBNL is equipped with Samsung KS0066U chip (compatible with HD44780).
It also has a very nice, bright yellow characters, dark blue background and
green backlight. 

While interfacing with LCD, make a close look at labels near J2 connector.
Verify if LCD you're interfacing with matches them! K/A pins might be swapped
or moved behind D7. Many different solutions are available...

** WARNING ** Datasheet of the T162DBNL states that typical VDD-VSS supply
voltage can be 5V, what isn't true! What was found while prototyping, anything
above 4.8 V kills the device! Two LCDs were destroyed in production phase.
Third one, having 200 ohm resistor on VDD line works well (R12). If your
device isn't bright enough or doesn't start at all, replace the resistor with
a lower one or a piece of wire.

R1 resistor (ATtiny reset pin) can be anything between 4k7 and 10k.

The microcontroller itself uses internal 1 MHz clock to operate. It does not
require any external ceramic resonator (though one might be seen on the
prototyping board). Initially, timers were prepared for 12 MHz solution but
were dropped in final phase.

While playing with fuse bits, it's worth to set EESAVE bit=0 (programmed,
checked). The EEPROM will be kept during future firmware updates.


RELAY BOARD
** WARNING ** Risk of electric shock! The board operates high current from
mains! If you're not sure what you're doing, ask someone with more experience!

The main board triggers the relay with 5 V. Make sure pins are properly
connected. Isolate the board so no high current passes over the surfaces and
trashes the main board or other components. Don't risk electric shock!


LICENSING
This firmware and accompanying materials are released under GPL version 2.


PROJECT WEBSITE
http://tinyit.pl


Please, use a contact form to notify me about any mistakes, notes and ideas.
Thank you!
Pawel Tatera

