Hello,
I'm new to the adruino programming and the whole programming thing in general. I do have experience with solidering/building electronic circuits. Anyways, i've built several clocks using nixie tubes. Here's a wikipedia link in case you haven't heard of nixie tubes Nixie tube - Wikipedia . I've built 3 clocks using only 4017 ic counters and the 60hz from the ac line to time the clock. Everything works well but now i'd like to digitize everything. This would allow me to add certain features to the clock ex: real time clock, date, temp, alarm, etc... and reduce the part # count. I have a RTC ds1307 but is being used in another clock for the 1hz pulse only. I recently discovered how to use it and i'd like to incorporate one in my nixie clock (using a ds1337). My clock that I'm building will use a atmega168 (also have a adruino diecimila). The clock will be multiplexed, only 2 tubes lit at once, using only 2 bcd to dec converter chips. These are special ic's since they work with high voltage. I quickly wrote up a schematic to illustrate how the circuit works. I have a general idea on how the clock is going to run (software wise) but I need help with the code. The code I attached has the code from running the rtc Hobby Robotics » An I2C Bus Example Using the DS1307 Real-Time Clock . So, basically the clock is going to work like this: read time from rtc (outputs in bcd), read correct time depending on which tubes are being displayed (multiplexed; but will look always on to the eye), send bcd code to bcd to dec converter chips, chips will connect the correct cathode to ground to light up the number in the nixie tube. I do want to end up adding a way to display the date and temp and be able to change the rtc time without using a comp but for now I just want the clock to display the time from the rtc. This clock isn't built yet (waiting on bcd chips) but I want to start on the code early. Some of the code I added is pseudo code because I want to get the basic point across and I don't know the actual real functions. Please refer to the comments in the code to see what I want to do. Oh yeah, this will be a 12 hr clock. Feel free to add/edit my code. Any suggestions or pointers will be greatly appreciated and I'll include updates on the progress. Thanks.
If you'd like to see my other nixie clocks i've built (except the tiny clock) visit my photobucket album: Photobucket | Make your memories fun!