Comments (7)
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.
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.
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.
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.
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.
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.
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)
- LED does not stay lit HOT 6
- Arduino library: Initialising multiple tubes doesn't seem to work HOT 2
- Arduino library: memset not defined HOT 4
- The MISO and MOSI pins are the wrong way around on the getting started page HOT 3
- exixe12_bom different capacitor values HOT 3
- Windows 10 & STM32 ST-LINK
- Exixe14 BOM not matching PCB HOT 8
- Overdrive doesn't seem to do anything HOT 1
- Unable to completely turn of the LED HOT 1
- Mounting methods HOT 2
- Crossfade issue on ESP8266 HOT 2
- SPI pins HOT 17
- Inconsistent behavior with multiple exixe HOT 22
- The exixe 2018 boards not working HOT 13
- sourcing STM32F042K6T6 HOT 1
- Created and assembled board, connected to ST Link V2 HOT 2
- STM32 ST-LINK Utility Error (Can not connect to target!) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exixe.