Hello other Arduiners,
Let’s get straight into problem. I need for my nixie clock input from RTC, no big deal right? But trouble is, that I need seperate numbers for each nixie lamp for ex. when it is 22:38 I need them to separate to individual variables like this :
1h = 2
2h = 2
1m = 3
2m = 8.
I hope you understand my problem. Here is code you can modify
ds3231.ino (965 Bytes)
The deal here is that you modify your code and if it does not work the way you want, you post the code (properly in code tags), describe what it does and what it should do. Then we help you to get it working how you want. If you want it done for you, post in Gigs and Collaborations, expect to pay.
Please read the "how to use the forum" stickies to see how to format and post code.
I am actually working on the same exact project right now. I would highly recommend checking out this tutorial here http://www.instructables.com/id/Driving-two-Nixie-tubes-with-an-Arduino-via-a-shif/ He uses a shift register and two 74141n nixie tube driver chips. This will cut down your pins needed on the arduino from 10 to just 3. The shift register will take a byte of data(which can be a dyte that represents say the number 12) and pass it to the driver chip. It will pass each digit to each chip, so a 1 to one chip and a 2 to the other chip. The chip will read it and turn on the appropriate digit. The code provided on that tutorial should explain most of it. If you are still confused I am happy to help more, as I have worked out most of the kinks one mine.
This is not my problem, I already use MH74141 chips for nixie, but I am having problem on how to take from some time separate digits. Because I cannot put input in my nixie’s in format 23:26, I need to put to each nixie separately : 2 - 3 - 2 - 6
I need to put to each nixie separately : 2 - 3 - 2 - 6
void loop ()
static int lastMinute = 60;
DateTime now = rtc.now();
if(now.minute() != lastMinute)
int nixieMinuteOnes = now.minute() % 10;
int nixieMinutesTens = now.minute() / 10;
int nixieHourOnes = now.hour() % 10;
int nixieHourTens = now.hour() / 10;
lastMinute = now.minute();
You can go back and edit your post to use code tags instead of quote tags. It's a pain to read.
This is not my problem, I already use MH74141 chips for nixie, but I am having problem on how to take from some time separate digits. Because I cannot put input in my nixie's in format 23:26, I need to put to each nixie separately : 2 - 3 - 2 - 6
I know what you mean. I think if you look at that tutorial it might answer your question. What he does is use an array that stores bytes for each number. So you send a byte for say the number 20, and the shift register will separate it into a 2 and a 0 and send each digit where it goes.