Giter Site home page Giter Site logo

Comments (7)

dekuNukem avatar dekuNukem commented on August 12, 2024

Hi eternoxy! It would be great if you can provide a photo / video of your setup so I can take a closer look.

From what you describe it seems that the SPI command might be corrupted one way or the other. Does it happen to all the modules, or just one? The RST pin should be connected to 3.3V.

from exixe.

Eternoxy avatar Eternoxy commented on August 12, 2024

Hello dekuNukem,

thank you very much for your quick reply.
I did some more desperate testing and got some positive results with the RST connected to 3.3V but I´m still not there yet.
But at least I can say that the wiring should be correct.

I can now reliable change the LED colour. I can verify it by changing the RGB values in the arduino sketch. Sidenote here: I have to reconnect the power supply (sometimes several times) after uploading the sketch, the reset button won´t work to see an effect.

Next step would be getting the simple digit loop to work.
But when i upload the sketch and reconnect the power supply, i get a blue LED and nothing else.
I can confirm that the nixie tubes and the power supply works, because when i disconnect the 3.3V from RST pin, "magical" things happen and the whole thing goes blinkie blinkie but not the way its supposed to ;)

Any ideas?
I can provide a photo or video tomorrow. The way its built now you probably wont be able to see any mistake between all the beginning mistakes im currently doing.

from exixe.

Eternoxy avatar Eternoxy commented on August 12, 2024

Ok, after some more testing i could also get the simple digit loop kind of to work.

This gives me a red 3 after uploading the code and reconnecting RST to 3.3V.

my_tube.set_led(127, 0, 0); my_tube.show_digit(3, 127, 0);

How will the digit loop work without reconnecting the RST pin every time?
Does it still need kind of a resistor?
Maybe some really noobish questions, but some day they may help somebedy else like me...

from exixe.

dekuNukem avatar dekuNukem commented on August 12, 2024

I guess you can connect the RST pin to a digital pin on arduino. At the very start of the sketch make it go down like 50 milliseconds then back up, this will reset the module, then you program can start as usual :)

from exixe.

Eternoxy avatar Eternoxy commented on August 12, 2024

I´ve tried this now and it worked out:


// change this to the cs pin you're using
int cs_pin = 10;
int rst_pin = 9;
unsigned char count;
exixe my_tube = exixe(cs_pin);

void setup()
{
  my_tube.spi_init();
  my_tube.clear();
  pinMode(rst_pin, OUTPUT);
  digitalWrite(rst_pin, LOW);
  delay (50);
  digitalWrite(rst_pin, HIGH);
}

void loop()
{
  count++;
  my_tube.set_led(127, 0, 0); // purple
  /*
  1st arg: Digit to show, 0 to 9
  2nd arg: Digit brightness, 0 to 127
  3rd arg: Overdrive, 0 disable 1 enable
  */
  my_tube.show_digit(count, 127, 0);
  delay(500);
}

Pin 9 is connected to RST.

I hope this helps someone out. I can´t understand though why it worked for you without connecting the RST pin.

from exixe.

dekuNukem avatar dekuNukem commented on August 12, 2024

Great to hear that you got it working! I would put the reset right at the very beginning, and also give it a delay after it goes high. Something like this:

void setup()
{
  pinMode(rst_pin, OUTPUT);
  digitalWrite(rst_pin, LOW);
  delay(50);
  digitalWrite(rst_pin, HIGH);
  delay(50);
  my_tube.spi_init();
  my_tube.clear();
}

But if it works, it works!

The reason it worked for me without connecting to the RST pin is that it is weakly pulled up internally with a resistor around 13K, so it would stay high if nothing is connected to it. However if the circuit is noisy it's better to be sure and connect it properly.

from exixe.

Eternoxy avatar Eternoxy commented on August 12, 2024

Ok, i´ll try it also this way.
Thanks again for your quick and super helpful support!!!

I might have to ask something again, but thats it for now.
Wish me luck with the coding for the clock.

from exixe.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.