Looking for library NixieBeta4.h

More
3 years 9 months ago #9109 by RedeyePete
I have a sketch which suits my needs but I cannot find NixieBeta4.h anywhere.
Does anyone know where to find it or has a copy? Looks like the original site is no longer.

Or if you have another easy sketch that will do the job, I am open to ideas:
Arduino - Freetronics Leostick
Clock using DS1307RTC library
6 digit feeding 3 shift registers 74HC595 feeding 6 X DM74141

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #9112 by Ian
Sorry, I have never heard of that. If you post the code, it's likely that someone will be able to help. It doesn't sound like the hardware you are using is particularly unusual.

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #9113 by RedeyePete
Hello Ian,
I have pasted the code below.
Also I cannot see my original post, just your reply, and the thread is shown as started by you. Does that mean that others don't see my post either?
I also have an oled display attached.
Eventually I would like to:
Normal operation: 6 digits showing time on nixies + AM or PM on oled.
Anti poison: Cycle through digits + 3d graphic on oled.
Set time: time shows on oled with cursor to show what digit is being manipulated + script tor detect button presses.
I have some of the oled sketches already working, and I will need to put them all together into 1 sketch. But thats another headache for another day. I like the hardware build, but I'm not a huge fan on programming.

// ROB NIXIE CLOCK
// 5/10/2012 v0.1
// Compiled on Arduino 1.0.1 using adafruitRTClib & ogi lumen Nixie Driver Libraries

// Date and time functions using a DS1307 RTC connected via I2C and Wire lib
// On most Arduino boards, SDA (data line) is on analog input pin 4, and SCL (clock line) is on analog input pin 5.


#include <NixieBeta4.h>
#include <Wire.h>
#include “RTClib.h”

// note the digital pins of the arduino that are connected to the nixie driver
#define dataPin 2  // data line or SER
#define clockPin 3 // clock pin or SCK
#define latchPin 4 // latch pin or RCK

// note the number of digits (nixie tubes) you have (buy more, you need more)
#define numDigits 4

// Create the Nixie object
// pass in the pin numbers in the correct order
Nixie nixie(dataPin, clockPin, latchPin);

RTC_DS1307 RTC;

int previoushour;
int previousminute;
int currenthour;
int currentminute;
int nixiedisplay;

int randNumber;
int randTime;
int randTimeCount = 0;

void setup () {
    Serial.begin(57600);
    Wire.begin();
    RTC.begin();
   
      // Clear the display if you wish
     nixie.clear(numDigits);

 // following line sets the RTC to the date & time this sketch was compiled
//    RTC.adjust(DateTime(__DATE__, __TIME__));
}

void clock()
{
        if (currenthour > 12) //Added for 12 Hour time instead of 24 hour
      {
      currenthour = currenthour - 12;
      }

      nixiedisplay = ((currenthour*100)+currentminute);

      Serial.print(nixiedisplay);
      Serial.println();
     
     nixie.writeNumZero(nixiedisplay, numDigits);
}

void loop ()
{  //Display Initial Time once and then  go into loop.
    DateTime now = RTC.now();
    previoushour = now.hour();
    previousminute = now.minute();
    currenthour = now.hour();
    currentminute = now.minute();
   
    clock();     
   
  while (1) //infinite loop
  {
  now = RTC.now();
  currenthour = now.hour();
  currentminute = now.minute();
 
 if ((currenthour!=previoushour) | (currentminute!=previousminute))    // if either doesnt equal previous value display new values
  { 
    // gemerate random numbers for a random period of time
    randTime = random(15,30); // Change Values between 15 and 30 times before displaying Actual Time
    while (randTimeCount != randTime)
    {
     randNumber = random(0,9999); //Display Random Number between 0 and 9999
     Serial.println(randNumber);
     nixie.writeNumZero(randNumber, numDigits);
     delay(random(50,250));  //Delay for a random period of time between 50ms and 250ms
     randTimeCount++;
    }
    randTimeCount = 0;
    //
      previoushour = now.hour();
      previousminute = now.minute();
   
      clock();
     
  }
  else //Do Nothing
  {
 //  Serial.print(“Doing nothing”);
 //  Serial.println();
 //  delay(3000);
  }
}
}

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #9114 by Ty_Eeberfest

RedeyePete wrote:
// ROB NIXIE CLOCK
// 5/10/2012 v0.1
// Compiled on Arduino 1.0.1 using adafruitRTClib & ogi lumen Nixie Driver Libraries


Ogi Lumen drivers, huh? I remember Ogi Lumen well but they vanished several years ago. I have no idea where to find their driver library anymore. Searching for "ogi lumen Nixie Driver Libraries" seems to just turn up people looking for the libraries or using them long ago.

Why not write your own code using one of the many viable supported libraries that are out there? Seems like wasted effort to go hunting for ancient libraries so you can use some half assed code you got from a pastebin! I see no "win" in that.

I don't know where your OP went. I saw it when it was first posted, in fact I think I was the one who approved it in the mod queue. Now it is gone and it's not even showing up as a deleted post. Sorry about that!!

Look into it later when the dust is clearing off the crater.

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #9115 by Ty_Eeberfest
I found your OP. It is in Builders Forum, which is probably the right place for it since it's off topic in the forum it was originally posted in. I am not sure why the entire thread didn't move but I think it is fixed now.

Just to be clear, your post and resulting thread are now in the Builders Forum.

Look into it later when the dust is clearing off the crater.

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #9116 by RedeyePete
Yes, I think I posted to the wrong forum. I saw the heading "Arduino" .......
And thought that that is the right spot. But I think now that its for the kits supplied by (Ian?)
Right now I am shelving that sketch and trying another which I have chopped right down so that I can see if I can send anything to the shift registers.
Currently I put in a value of "8" to see what happens, but no reaction from the nixis and logic probe shows nil activity on serial, clock and rck.
I think the problem is with my pin definitions which I have defined as 4, 5, & 6
I am using: Serial = D4; Clock = D5; RCK = D6
I think that I should be defining "Data" as opposed to "Analogue" but I haven't figured out how to do that just yet.
I am trying this out right now, and just noticed your reply which I am keeping one eye on.

This is what I'm playing with at the moment:
#include <Wire.h>

int ClockPin = 5;
//Pin connected to ST_CP of 74HC595 - pin 12 on ic
int LatchPin = 6;
//Pin connected to DS of 74HC595 - pin 14 on ic
int DataPin = 4;

void setup() {
pinMode(ClockPin, OUTPUT);
pinMode(LatchPin, OUTPUT);
pinMode(DataPin, OUTPUT);

}

void writeHours(int val)
{
digitalWrite(LatchPin, LOW);
// byte value = decToBcd(val);
// value = ((byte)value << 4) | ((byte)value >> 4); // switch nibble places so that hour digits are on correct places, and not inverted
// shiftOut(DataPin, ClockPin, MSBFIRST, value);
shiftOut(DataPin, ClockPin, MSBFIRST, 8);
digitalWrite(LatchPin, HIGH);


}

byte decToBcd(byte val)
{
return( (val/10*16) + (val%10) );


}

void loop() {
// put your main code here, to run repeatedly:

}

Please Log in or Create an account to join the conversation.

Moderators: AccutronTy_EeberfestIan
Time to create page: 0.103 seconds
Go to top
JSN Boot template designed by JoomlaShine.com