What Greg says (i.e. output a known fixed pattern), but also try getting it
working for just the first HV5530 in the chain initially. Then expand it to
two. Etc. etc. Do you have a scope? If so, look at the signals on the pins
from the Arduino and from the 12V side of the level shifter. Are they what
you expect?
Pesonally I would still use SPI rather than twiddling bits myself, though
note that the digitalWrite() function does more than just twiddling the
bits, perhaps this could throw your timing off?
void digitalWrite(uint8_t pin, uint8_t val)
{
uint8_t timer = digitalPinToTimer(pin);
uint8_t bit = digitalPinToBitMask(pin);
uint8_t port = digitalPinToPort(pin);
volatile uint8_t *out;
if (port == NOT_A_PIN) return;
// If the pin that support PWM output, we need to turn it off
// before doing a digital write.
if (timer != NOT_ON_TIMER) turnOffPWM(timer);
out = portOutputRegister(port);
uint8_t oldSREG = SREG;
cli();
if (val == LOW) {
*out &= ~bit;
} else {
*out |= bit;
}
SREG = oldSREG;
}
Maybe you said already, but what arduino are you using that runs at 3.3V?
On Monday, October 8, 2018 at 12:29:03 AM UTC-4, gregebert wrote:
>
> Sounds like this is trending to be a software issue, rather than a
> hardware issue, but to be sure I have 1 simple suggestion:
>
> Write a simple chunk of code to display a static number; there are 10
> tubes so I would display 0123456789. I cant tell from the video you posted
> what is being displayed because it washed-out, with all digits unreadable,
> at least for me.
> If you have that working correctly, then you could make a simple
> modification to scroll it 1 digit per second. If both of those work
> correctly you will have proven all critical hardware is fine, and the
> software--> hardware interface is also correct. That's basically what I do
> for bringing-up my clocks.
>
>
--
You received this message because you are subscribed to the Google Groups
"neonixie-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/neonixie-l/d2426d58-c8d9-49cf-9818-656cbe9f8378%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.