Use the SPI Library - it handles the bitbanging and the timing for you (I’m 
typing this on my phone, so it is a bit rough)

You may need to use a different SPI mode. There are four possibilities

You will also need to figure out which pins the SPI library uses.

In setup:
     digitalWrite(LEpin, LOW); // Initialize latch
  SPI.begin(); //
  SPI.setDataMode (SPI_MODE3); // Mode 3 SPI
  SPI.setClockDivider(SPI_CLOCK_DIV128); /

In loop:
To write data:

Write a byte

SPI.transfer(iTmp);

Lock data:

  digitalWrite(LEpin, HIGH);
  digitalWrite(LEpin, LOW);


> On Oct 4, 2018, at 10:24 PM, Kevin A. <[email protected]> wrote:
> 
> I forgot to add that two details not visible in my PCB are that the polarity 
> (POL) line on the HV5530's is pulled high, and the blank lines (BL) are 
> connected to the microcontroller on a PWN pin, as defined in the code. 
> 
>> On Thursday, October 4, 2018 at 10:04:07 PM UTC-4, Kevin A. wrote:
>> Hi everyone,
>> 
>> My name is Kevin, and I've recently developed a nixie obsession. This seems 
>> like the place to be for those who are obsessed with all kinds of glowing 
>> tubes!
>> Also, I'm currently working on a project to make a 10 digit display from 
>> NL840 tubes, with dots and a plus/minus NL843 tube (primarily for a 
>> calculator). It is driven by four Microchip HV5530 serial to parallel 
>> converters and an arduino (12v to 3.3v logic level shifter of course). Here 
>> is a quick demo video I've made of testing the display (haven't quite 
>> figured out the software yet; first time!):
>> 
>> https://www.youtube.com/watch?v=468QV6E7rm4
>> 
>> Currently, I've found myself getting stumped with the software aspect of 
>> driving these four daisy chained HV chips. They are essentially 32 bit shift 
>> registers back to back, for a total of 128 bits. Some of the outputs are not 
>> used too, please see the pcb (I didn't make a traditional schematic). If 
>> anyone can see my bitbanging code that was used in the video 
>> (https://github.com/verrucktmechaniker/nixie-calculator/blob/master/bitbang_test)
>>  and my board layout image (https://postimg.cc/LnKstKLh) and make sense of 
>> how to control this, that would be awesome! I definitely plan on releasing 
>> this project as a step by step do-it-yourself once I get some help and 
>> figure out the software/control side of things!
>> 
>> Thanks
>> 
>>> On Wednesday, September 19, 2018 at 11:03:23 AM UTC-4, neonixie-l wrote:
>>> Ladies & Gentlemen,,,
>>> 
>>> We are getting a steady stream of new members - it'd be great if, instead 
>>> of just lurking, you could introduce yourselves with a bit of detail about 
>>> your interests, what you've built or intend to build/dream of building. 
>>> Even what gets you up the morning and makes you smile!
>>> 
>>> Even existing members (there are over 1,000) could chip in - there's some 
>>> great stuff around...
>>> 
>>> Welcome, one and all to this great community!
>>> 
>>> Nick
>>> 
>>> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "neonixie-l" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/neonixie-l/c06ppUT7RPQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/neonixie-l/648cd176-0df8-43b6-96ed-2f301bac6e5f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/D61DB45A-E940-49D6-AB1E-07DDD5CF5988%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to