Nixie Display (4): Final Program and One Nixie

[other parts of this series]

By now I had two working Arduino programs (sketches) and a PHP script on my own web server. When you call it (type in it’s address: http://mixedtinkerings.com/tillefon/calcscplays.php?SCUserID=0&SCApiClientID=JlZIsxg2hY5WnBgtn3jfS0UYCl0K8DOg) the PHP script uses the SoundCloud API to retrieve JSON-formatted information about a user and a list of all of a user’s tracks. From this the script calculates the total play count of that user and gives it as a JSON-formatted object.

One of my Arduino sketches was getting this total play count from the PHP script by calling it up and put the number into a variable. The other Arduino sketch can take any given number and send it to the shift registers so that the corresponding glyphs inside the Nixie tubes light up.

Marrying the two Arduino sketches that I got working was actually easier than I thought. To test the result I added a routine that makes the Nixies count from 0 to 9 in unison. This is also helpful to prevent what is called cathode poisoning. It occurs if one of a Nixie’s glyph stays lit for too long. That’s why I make the Nixies cycle through all their glyphs overtime the total play count changes.

So far I have only added one actual Nixie tube to my breadboard test setup. I have yet to solder all the connections to the rest of my Nixies.

Download my Final Sketch

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.