simple user adjustable diy nixie clock

19
http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/ Food Living Outside Play Technology Workshop simple user-adjustable DIY Nixie Clock by andrea biffi on October 25, 2013 Table of Contents simple user-adjustable DIY Nixie Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intro: Simple user-adjustable DIY Nixie Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Step 1: The schematic and working principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Step 2: The board design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Step 3: B.o.m. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Step 4: The code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Step 5: Toner transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Step 6: Etching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Step 7: Finishing the main pcb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Step 8: Etching the tubes shield . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Step 9: Top silk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Step 10: Solder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Step 11: Pin rows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Step 12: Find the right case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Step 13: Drill holes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Step 14: Perfect the case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Step 15: Fix the lacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Step 16: Straighten the sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Step 17: Test the circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Step 18: Assembling nixies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Step 19: Find cool case stands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Step 20: Adjust them . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Step 21: Build a bottom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Step 22: Extend buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Step 23: Connect the clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Step 24: Place it . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Step 25: Improvements list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Upload: bernice-bunce

Post on 07-Feb-2016

71 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Food      Living       Outside        Play        Technology       Workshop

simple user-adjustable DIY Nixie Clockby andrea biffi on October 25, 2013

Table of Contents

simple user-adjustable DIY Nixie Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro:   Simple user-adjustable DIY Nixie Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 1:   The schematic and working principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 2:   The board design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 3:   B.o.m. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 4:   The code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Step 5:   Toner transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 6:   Etching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 7:   Finishing the main pcb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Step 8:   Etching the tubes shield . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Step 9:   Top silk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Step 10:   Solder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Step 11:   Pin rows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Step 12:   Find the right case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Step 13:   Drill holes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Step 14:   Perfect the case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Step 15:   Fix the lacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Step 16:   Straighten the sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Step 17:   Test the circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Step 18:   Assembling nixies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Step 19:   Find cool case stands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Step 20:   Adjust them . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Step 21:   Build a bottom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Step 22:   Extend buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Step 23:   Connect the clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Step 24:   Place it . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Step 25:   Improvements list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Page 2: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Page 3: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Author:andrea biffi    www.andreabiffi.comI'm a freelance engineer, graphic designer and photographer. I also love electronics, robotics, and everything that could be disassembled and hacked. I lovetravel by bicycle and shooting spherical and gigapixel panoramas. I wish to have enough time to turn into instructables every my brainchild ;-) I'll do my best.

Intro:  Simple user-adjustable DIY Nixie ClockAs first instructable of the year I wished to finally complete my long standing nixie clock project.Nixies are neon valve tubes, where ten cathodes have shape of digits and are lighted up by plasma when high voltage flows through them. I love these old era displays,which have been employed in last century before I was born.In last year I've been slowly collecting components and knowledge to build some nixie clocks as Max Pierson's beautiful creation, I like the old style, the roundness ofglass tubes, the rough wood case, the simplicity of the design. That clock has definitely inspired my project. Even though I really love vertical digits arrangement I keepthat original feature for my next clock.

Therefore this first born is a six digits horizontal wood desk clock, with six big round Russian IN-4 nixie tubes, no dots, no visible buttons, no LED illumination, only a bigmassive rosewood block and the power of plasma ;-)I have to explain you what the title means:

simple because it can be entirely built with common tools and from common components, you only have to order six IN-4 nixies and one nixie driver

user-adjustable because it's predisposed for many external sensors and additional features (as neon dots between digits, alarm, etc.)

DIY since you neither have to buy external shields or to pay for pcb manufacturing, just follow my instructable ;-)

WARNING: this circuit raise the voltage to deadly 300V so you must avoid to touch contacts while working, I'm not kidding, please BE CAREFUL!

Step 1: The schematic and working principleLately, after some research and a fast designing, I attained this functional high voltage power source circuit. Since there is a full step to step guide about the hv powersource section of my clock, I will pass over that explanation. There is only something to say about the input voltage for the clock: to increase the universality of the projectI decided to give the possibility to power the clock with a voltage from 9 to 35V. The best solution (in terms of efficiency and thermal dissipation) is to connect a 9V DCPSU (500 mA or more), but if you want to power the device with a voltage from 12 to 35V you only have to shift the voltage switch in direction of the ON-OFF switch(which has a center ON position between two OFF ones).With the pot you have to set the voltage (read next step for high voltage pins) to the about 190V needed to power the IN-4 nixies (in multiplexing displays is better to usea bit more than the 180V needed to light a single nixie tube). You can of course set up the proper voltage for any other nixie tube.

The other section is the logic circuit, where a cheap Atmega8 IC (but you can also use an Atmega168 or Atmega 328), through a nixie driver and some high voltagetransistors, controls the digits.The nixie driver is a K155ID1 which is the Russian equivalent of the 74141N, and it spares you to use 20 more high voltage transistors. This driver is not very expensive,but it's not longer manufactured, so with time it will be more difficult to find, for this reason I wanted to use only one in my project (while there are many nixie clockprojects which uses one driver for each digit).This has been possible thanks to some references I found in the web(maxwellrosspierson.com, elbastl.sweb.cz,mlknaweb.blogspot.it, glowbug.nl,neon1.net, threeneurons.wordpress.com)but mainly thanks to Jeremy Howa and Brad Lewis for their Arduinix project, which enlightened me about multiplexing power and from where I took the original code.

My schematic is drawn in Diptrace, a simple pcb design software, I divided it into two pats so to show it better, read notes on the image to understand circuit parts.

Page 4: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Image Notes1. nixie driver2. anode resistors, one for each tube3. high voltage transistors to drive cathodes4. high voltage supply, see my other instructable to examine it in depth5. neon dots connections (unused in my clock)6. buttons to set the time7. cathodes connections, one for each digit from 1 to 9 and 08. anodes connections, one for each tube9. to controller10. ready for RTC (real time clock)

Image Notes1. this powers the IC2. to power the clock with 9V this voltage is excluded, but if you want to use a DC-IN up to 35V you can shift the switch3. atmega8, atmega168, atmega328 are all good for this project4. to drivers

Step 2: The board designDiptrace lets you to autoroute the traces, but in my case I had to route them manually since I wanted to keep the board as small as possible.The clock is composed by two different boards: the bottom part contains all the power source and logic sections, and the top board is to connect the tubes, each one witha proper resistor. Indeed since different tubes could need different resistor values, I decided to leave 10K resistors on the clock board and add a second resistor for eachtube on the tube shield, so that you can easily transfer the same main board from a clock to another. To calculate the total value or resistors I referred to Threeneuron'sgreat explanation.

To set the right voltage set the right position of the 9V / 12-35V switch depending on your PSU, then plug the jack and connect your multimeter to a GND pin and to the"+180(TEST)" pin. Turning the potentiometer you will see that voltage varies from about 140 to 300V, set it to 190V.

Actually the pcb you see here is an new version of my clock board, since I improved the component arrangement and I still have to etch the new board, so maybe you willnote some minor differences.If you look the pdf file you'll see that I marked on the board top surface all the info to place components, such as name and polarity, so you should be able to solder themeasily with the help of the b.o.m.In pdf you will also find the traces ready to print and to transfer on the copper board, for both clock circuit and tubes shield.

Page 5: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

File Downloads

Nixie Clock.pdf (410 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Nixie Clock.pdf']

Step 3: B.o.m.The bill of material is the longest I've ever needed for one of my electronic projects. I know it's far from to be professional and there should be many imperfections, but Itried to be more exhaustive I could.

You must add to the list: 66 sockets for tube pins, two male pin header strips for tube shield (1X10 and 1X6), the case, the IN-4 tubes and the PSU.Please note that where you read 15K resistors you have to interpret 10K on the main circuit plus 4.7K (or 3.3K) on the shield pcb.I've used a buzzer taken from a Nokia phone since it's great to play multi-tone sounds for alarm, but you can change it with any 5V buzzer, or you can remove it, as somemore components (resistors for neon dots, 9V voltage regulator, reset button, etc.).

L1 is a fixed inductor 100 uH 1A, on the board you can find space to place a linear or cylindrical inductor, just ignore the hole you don't need. R17 and R18 should be 1%accuracy metal film resistors, to achieve a better voltage stability. D1 has to be a ultra-fast 400V diode, as BAV21, UF4004, UF4007, MUR140, or MUR160.

File Downloads

bom.pdf (64 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'bom.pdf']

Page 6: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 4: The codeThe code I used in this clock version is taken from the open source material available on Arduinix website, and I really suggest you to go looking Brad Lewis "SlothFurnace" impressive projects (he's an instructables member too).

I modified the code to use only one nixie driver instead of two, since I don't need to run more than 6 digits, and I prefer to save drivers. There is a parameter which youcan change if you have problem with your displays, it's the delay, but 2 ms works fine for me. You can try 3 or 4 ms but more will flicker the digits, since software has togo through all digits before lighting a digit again.

// Arduinix 6 Bulb - Also supports Hour and Min. time set. // // This code runs a six bulb setup and displays a prototype clock setup. // NOTE: the delay is setup for IN-17nixie bulbs. // // original code by Jeremy Howa // www.robotpirate.com // www.arduinix.com // 2008 - 2009 // code modified by Andrea Biffi www.andreabiffi.com to workwith only one SN74141 // // Last Edit Nov 2013 // // SN74141 : True Table //D C B A # //L,L,L,L 0 //L,L,L,H 1 //L,L,H,L 2 //L,L,H,H 3 //L,H,L,L 4 //L,H,L,H 5 //L,H,H,L 6//L,H,H,H 7 //H,L,L,L 8 //H,L,L,H 9 #define DEBUG_ON false // SN74141 int ledPin_0_a = 2; int ledPin_0_b = 3; int ledPin_0_c = 4; int ledPin_0_d = 5; // anod pins intledPin_a_1 = 8; int ledPin_a_2 = 9; int ledPin_a_3 = 10; int ledPin_a_4 = 11; int ledPin_a_5 = 12; int ledPin_a_6 = 13; void setup() { pinMode(ledPin_0_a, OUTPUT);pinMode(ledPin_0_b, OUTPUT); pinMode(ledPin_0_c, OUTPUT); pinMode(ledPin_0_d, OUTPUT); pinMode(ledPin_a_1, OUTPUT); pinMode(ledPin_a_2, OUTPUT);pinMode(ledPin_a_3, OUTPUT); pinMode(ledPin_a_4, OUTPUT); pinMode(ledPin_a_5, OUTPUT); pinMode(ledPin_a_6, OUTPUT); // NOTE: // Grounding on pinsanalog0 and analog input 1 will set the Hour and Mins. pinMode(A0, INPUT ); // set the virtual pin analog0 (pin 0 on the analog inputs ) digitalWrite(A0, HIGH); // set pinanalog input 0 as a pull up resistor. pinMode(A1, INPUT ); // set the virtual pin analog input 1 (pin 1 on the analog inputs ) digitalWrite(A1, HIGH); // set pin analog input 1as a pull up resistor. if( DEBUG_ON ) { Serial.begin(9600); } } //////////////////////////////////////////////////////////////////////// // // DisplayNumberSet // Use: Passing anod number, andnumber for bulb, this function // looks up the truth table and opens the correct outs from the arduino // to light the numbers given to this funciton. // On a 6 nixie bulb setup.// //////////////////////////////////////////////////////////////////////// void DisplayNumberSet( int anod, int num1) { int anodPin; int a,b,c,d; // set defaults. a=0;b=0;c=0;d=0; // will display azero. anodPin = ledPin_a_1; // default on first anod. // Select what anod to fire. switch( anod ) { case 0: anodPin = ledPin_a_1; break; case 1: anodPin = ledPin_a_2;break; case 2: anodPin = ledPin_a_3; break; case 3: anodPin = ledPin_a_4; break; case 4: anodPin = ledPin_a_5; break; case 5: anodPin = ledPin_a_6; break; } // Loadthe a,b,c,d to send to the SN74141 IC (1) switch( num1 ) { case 0: a=0;b=0;c=0;d=0;break; case 1: a=1;b=0;c=0;d=0;break; case 2: a=0;b=1;c=0;d=0;break; case 3:a=1;b=1;c=0;d=0;break; case 4: a=0;b=0;c=1;d=0;break; case 5: a=1;b=0;c=1;d=0;break; case 6: a=0;b=1;c=1;d=0;break; case 7: a=1;b=1;c=1;d=0;break; case 8:a=0;b=0;c=0;d=1;break; case 9: a=1;b=0;c=0;d=1;break; } // Write to output pins. digitalWrite(ledPin_0_d, d); digitalWrite(ledPin_0_c, c); digitalWrite(ledPin_0_b, b);digitalWrite(ledPin_0_a, a); // Turn on this anod. digitalWrite(anodPin, HIGH); // Delay // NOTE: With the difference in Nixie bulbs you may have to change // this delay toset the update speed of the bulbs. If you // dont wait long enough the bulb will be dim or not light at all // you want to set this delay just right so that you have // nice brightoutput yet quick enough so that you can multiplex with // more bulbs (2ms is standard). delay(2); // Shut off this anod. digitalWrite(anodPin, LOW); }//////////////////////////////////////////////////////////////////////// // // DisplayNumberString // Use: passing an array that is 6 elements long will display numbers // on a 6 nixie bulb setup. ////////////////////////////////////////////////////////////////////////// void DisplayNumberString( int* array ) { // bank 1 (bulb 1) DisplayNumberSet(0,array[0]); // bank 2 (bulb 2)DisplayNumberSet(1,array[1]); // bank 3 (bulb 3) DisplayNumberSet(2,array[2]); // bank 4 (bulb 4) DisplayNumberSet(3,array[3]); // bank 5 (bulb 5)DisplayNumberSet(4,array[4]); // bank 6 (bulb 6) DisplayNumberSet(5,array[5]); } // Defines long MINS = 60; // 60 Seconds in a Min. long HOURS = 60 * MINS; // 60 Minsin an hour. long DAYS = 24 * HOURS; // 24 Hours in a day. > Note: change the 24 to a 12 for non millitary time. long runTime = 0; // Time from when we started. // defaulttime sets. clock will start at 12:59:00 // NOTE: We start seconds at 0 so we dont need a clock set // The values you see here would be what you change // if you added aset clock inputs to the board. long clockHourSet = 12; long clockMinSet = 59; int HourButtonPressed = false; int MinButtonPressed = false;//////////////////////////////////////////////////////////////////////// // // //////////////////////////////////////////////////////////////////////// void loop() { // Get milliseconds. runTime = millis(); // Get time in seconds.long time = (runTime) / 1000; ///change this value to speed up or slow down the clock, set to smaller number such as 10, 1, or 100 for debugging int hourInput =digitalRead(14); int minInput = digitalRead(15); if( DEBUG_ON ) Serial.println( hourInput ); if( hourInput == 0 ) HourButtonPressed = true; if( minInput == 0 )MinButtonPressed = true; if( HourButtonPressed == true && hourInput == 1 ) { clockHourSet++; HourButtonPressed = false; } if( MinButtonPressed == true && minInput== 1 ) { clockMinSet++; MinButtonPressed = false; } // Set time based on offset.. long hbump = 60*60*clockHourSet; long mbump = 60*clockMinSet; time += mbump +hbump; // Convert time to days,hours,mins,seconds long days = time / DAYS; time -= days * DAYS; long hours = time / HOURS; time -= hours * HOURS; long minutes =time / MINS; time -= minutes * MINS; long seconds = time; // Get the high and low order values for hours,min,seconds. int lowerHours = hours % 10; int upperHours =hours - lowerHours; int lowerMins = minutes % 10; int upperMins = minutes - lowerMins; int lowerSeconds = seconds % 10; int upperSeconds = seconds - lowerSeconds;if( upperSeconds >= 10 ) upperSeconds = upperSeconds / 10; if( upperMins >= 10 ) upperMins = upperMins / 10; if( upperHours >= 10 ) upperHours = upperHours / 10; //Fill in the Number array used to display on the tubes. int NumberArray[6]={0,0,0,0,0,0}; NumberArray[0] = upperHours; NumberArray[1] = lowerHours; NumberArray[2] =upperMins; NumberArray[3] = lowerMins; NumberArray[4] = upperSeconds; NumberArray[5] = lowerSeconds; // Display. DisplayNumberString( NumberArray ); }

To burn the code to the Atmega IC I used Arduino. Just remove the Arduino chip, insert your Atmega8 (or better), change board and serial port under "tools" menu, pastemy code and upload it. Take out the IC and insert in the socket on the clock board. Please notice that your Atmega IC could need to be burn with bootloader before youupload the code, you can find instruction on this page. I used a USBtinyISP programmer, but you can buy IC already burned with the bootloader.

File Downloads

Nixie_clock_code.zip (2 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Nixie_clock_code.zip']

Page 7: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 5: Toner transferOk guys, you're certainly happy that theory section is ended and we can now see something concrete.As I usually do I've etched two boards at the same time, so to reduce the chance to make a faulty pcb.

First thing to do is to polish the copper surface with a sponge (the one for dished on the scratching surface) and then clean it with a strong soap. After that step absolutelyavoid to touch the surface or to dry it with a dirty towel, toner has to find a perfectly degreased surface to adhere at 100%.

Now join printed paper and copper board and keep them together with paper tape pieces, put them with paper up under a clean towel, set your iron at maximumtemperature and pass over the paper to make the toner adhere on the copper surface. Now pour into water, wait some minutes and when paper is all wet remove it withthe help of a soft brush (maybe a toothbrush).

This is a pretty damn process and the success mostly depends by the type of paper, in this case I've tried a cheap inkjet photographic paper. I definitely need to switch tophotoresist method.

Step 6: EtchingWhen you're absolutely sure there is no remain of paper between tracks, and after retouching every interrupted track with permanent marker, you can pour the board intoferric chloride solution for about 40-50 minutes (it depends by many factors as the percentage of solution, the temperature, how much often you agitate the basin, etc.).You see in the picture that I always use the pcb holder I built. I suggest to shake gently the container every 10 minutes and check the traces every 5 minutes when 30minutes or more has passed. When you see there is no more copper on areal clean from toner you can wipe the board with a paper towel and wash it in abundant water.Dispose of the exhaust acid in proper centre.

Page 8: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 7: Finishing the main pcbTo remove the toner from the copper traces use a metal sponge or sand paper. If you're not sure about the electrical conductivity of some traces you have to check themwith the multimeter and fix any mistake soldering a bit of tin.Then make holes where needed using 0.8 mm drill bit and a precise column drill (if you want to build one look here).

Step 8: Etching the tubes shieldTo build the tubes shield the process is the same as the main circuit. Also in this case I made two boards at the same time. Both came out well, except near the edgeswhere I had to fix some toner lack with the permanent marker.As before, remove toner after etching and drill holes for components.

Page 9: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 9: Top silkIf you wish you can transfer the top silk on the board with the toner transfer method. This helps you placing the components and also adds useful information to connectexternal sensors and to act on the switches.Then you can begin to solder the main components on the board.

Step 10: SolderSolder also the pins sockets on the tubes shield, together with resistors and jumpers. To solder the connection pins headers between main circuit and shield follow thesuggestions in the next step.

Step 11: Pin rowsSince the pin male headers are on the same side of the copper, the process to solder them in place is a bit more complexed compared to all the components on theopposite side.I suggest you to push the pin heads hard into the holes (0.8 mm is the better size in my opinion) and solder them on the pads. As in first picture you have now the rowsupside down. Remove the plastic holder with little pliers, flip it and insert again with the groove toward the copper, then with your nails or the pliers push the plasticagainst the tin, that will cover pads and any soldering sign.

Page 10: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 12: Find the right caseI've been lucky and I found a case almost perfect to fit my circuit. Obviously it's much better to design the pcb referring to the exact measures of an existing case, so golooking for it at once ;-)The same instant I've seen this box I loved it. I bought it a the Christmas Fair in my city and it was last piece, made in India from a single rosewood block. I chose therougher side to become the front of the clock, since I like the irregular edge on the front top edge.

Page 11: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 13: Drill holesI had to drill the 3 cm diameter holes for the six digits, with the right drill bit and a medium column drill the process was long but not difficult. Try to not warm too much thebit.You can mark the center of the holes with a ruler or to attanch a print of the circuit top side on the wood, the mark the dots with an awl.

Step 14: Perfect the caseTo drill the holes avoiding wood cracks formation, push a wood block on the inside surface of the board, and try keeping it pressed with shims or clamps, then drill theholes until you reach it. Also try to leave at least a pair of millimeters of space between holes. My first shield was too short, and I had to make a little longer shield tomatch the holes.

Page 12: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 15: Fix the lacksSince new shield was longer than the inside space I had to enlarge it on a corner. To do that I drilled some thin holes and I removed the wood pieces with the aid of achisel. As you see now holes and pin sockets are perfectly aligned.

Step 16: Straighten the socketsto straighten the pin sockets so to simplify the insertion of the tubes, I suggest to insert all the tubes one time and remove them. That will help you a lot, since you canhandy straighten up them with small pliers.

Page 13: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 17: Test the circuitThis will have also a second advantage, i.e. testing the circuit before assembling the clock.... suspence...If everything works you can continue with the assembling.

Step 18: Assembling nixiesPlace the shield inside the case and insert back the tubes into it. Pay attention to not let any pin going out from his socket, you can look from the inside to check them.You see that you can connect the main circuit to the tube shield with no trouble. This is very useful since you are now able to build a new clock and test it with the originalclock circuit.

Page 14: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 19: Find cool case standsI had four rubber tips, to arrange four nice old style stands I decided to use them upside down glued to screws' heads.With some gimlets drill the four holes, paying attention to not crack the wood. To be sure begin with a small gimlet and then pass to a bigger one, until you reach thedesired hole diameter.

Page 15: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 20: Adjust themThese stands are very handy because you can screw them until they're perfectly aligned with a planar surface, and the wood box will have a very precise support,although it's very rough.Glue the rubber tips with cyanoacrylate glue in the exact centre of the screw heads. Now you'll note that there is enough space to keep the power plug inserted under theclock and let the wire coming out from the rear.

Step 21: Build a bottomWe need to add a cover to the bottom of the clock to prevent children touching the circuit, since it's very dangerous and could be lethal. To cut it from a thin wood board Imarked the edges of the hole with a paper sheet and a pencil, then with a screwdriver I transferred the shape onto the wood surface. Then I cut the perimeter with a jigsaw.I also drilled holes for on-off switch, power plug, and time buttons. At the end I polished the cover with dark wax to give it a better color. Now the led is no more visible, butsince the cover is snap-fit I can remove it or add another hole under the light.

Page 16: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Page 17: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 22: Extend buttonsI know that some push-buttons have a long cylinder, to protrude out of the case. I also have many of them, and they are a good choice. Anyway in this case I forgot tosolder that button type, so instead of desoldering and changing them with two long ones, I added a different style of extension.I found some plastic supports for shelves with a brown cylindrical part, so I cut it and glued to the buttons. I also had to glue a washer so that some space remainedbetween bottom cover and buttons body.

Step 23: Connect the clockAssembling is finally completed, you can connect your clock and admire your work!There is enough space behind the pcb inside the case to keep a 9V power source, maybe 6 AA alkaline batteries or a Li-ion rechargeable battery-pack. I have to design acircuit to charge it via the power plug. I will add to the improvements list ;-)

Page 18: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 24: Place itThe top viewed nixie displays as these beautiful IN-4 have usually a narrow angle of view. It means that if you place your clock on a low table or cupboard you'll hardlysee the digits. I suggest to keep it on a shelf or near the TV so you can see it when seated.You can also decide to insert tubes deeper in the case, so that only the half sphere glass surface protrudes, but consider that one of the best features of a nixie display isthat digits lie on different planes, and you can see them much better from the side of a tube.

Page 19: Simple User Adjustable DIY Nixie Clock

http://www.instructables.com/id/simple-user-adjustable-DIY-Nixie-Clock/

Step 25: Improvements listThis is not the end of the project, since there are some features to add to this new clock, maybe you can suggest more improvements:

add a RTC (Real Time Clock) module so that the clock keeps the time also when PSU is disconnected1.add a cathode poisoning prevention routine to extend tubes life2.add a sensor to only turn the clock when you are near (sound sensor, ultrasonic proximity sensor...) and save tubes life3.add an alarm function using the multi-tone speaker4.substitute the push-button with a rotary encoder, to simplify surfing among the new functions5.remove in some way the wood knurl that seems a push-button on the lower left of the case ;-)6.add an internal battery to keep the clock running wit no power-cord7.add a bottom to protect the circuit and maybe cover the led light, or bend the led if light is annoying done!8.test the new crossfade code from Arduinix9.polish with dark wax the inside surface of the holes.10.as well explained on Threeneuron's page, multiplexing needs blanking intervals to avoid ghosting, and when I'll go deepen in the code I'll examine this function11.in my next version the third position of the ON/OFF switch will set the sleep function, so to turn off the displays leaving the controller working12.

I hope you liked my bigger electronic project so far, stay tuned for more features and clock models! And tell me if I forgot some detail.

Image Notes1. no, it's not a button, it's a wood knurl!

Image Notes1. with bottom cover you don't see the LED light anymore...

Related Instructables

Radial DisplayNixie TubeClock byVlorbschnat

High VoltagePower Supplyfor Nixie andValve Tubes byandrea biffi

Driving twoNixie tubes withan Arduino via ashift registerand twoSN74141s. bylmperkins

NIXIE TUBEDRIVERMODULES - PartI by gluplug

Analog IN-13bargraph Nixietubethermometer byz097dsa

Nixie Watch,Part 1:DevelopmentBoard by ian

Advertisements

Comments

2 comments Add Comment

 ynze says:  Jan 6, 2014. 2:14 PM  REPLYWonderful!!!

 orck says:  Jan 6, 2014. 1:54 PM  REPLYExcellent work, I just order my own 6 pack IN4 tubes. I am looking into the RTC you mention in your improvements list.