um, you say that it works fine but I think your schematic has a problem with analog input. Do you really want to tie the inputs to +5V? Also, your 2 battery setup looks odd to me - I would try to have at least 7V input to the 7805, more for higher current applications. Finally, its always a good idea to use a bypass cap (.1uF) between the power and ground pins of the PIC - it will improve noise immunity. On your layout, r12 being so close to the resonator could be a source of problems for RA4 input (though with the current schematic, I bet its a solid +5V). its always a good idea to keep your analog inputs away from other signal sources. Here is one apnote that discusses the layout issues. Its aimed at 12 bit ADCs but the rules apply for 10 bit as well. http://ww1.microchip.com/downloads/en/AppNotes/00688b.pdf Phil --- Alison Lewis wrote: > There were a lot of good things you all pointed out > (like forgetting to lable 5V on the coin cell) and I > made some updates. > > I use ExpressPCB to make the diagrams and circuits > because its free and easy. > > "I've seen several people respond here with advice > about the circuit as apposed to the board. If you > want people to comment on the circuit, you should > post > a schematic." > > http://beard.dialnsa.edu/~lewisa/blogs/DMSpring2005/PIC16F_5in-5out--SCHEMATIC.gif > (I've been using this set up with various > modifications for a year with no problems at all...) > > NEW PCB Layout with proper pin names: > http://beard.dialnsa.edu/~lewisa/blogs/DMSpring2005/PIC16F_5in-5out--PCB.gif > > ---------- > I tend to find it easier to set up a PCB than do a > diagram because I can see the connections. It would > be > great if there was a program that made circuit > diagrams from PCBs. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist