VFD Showing wrong characters.

Hello all, I almost managed to get this vfd working, with the help of some people on another forum to source a datasheet, however there is one small issue.

It is displaying a random mix of characters, sometimes getting close, sometimes getting far off from what I am actually sending it, and I can't figure out the cause.

All the connections seem good, and it behaves the same way on a similar vfd.

Code is as follows:

void setup() {
  pinMode(2, INPUT);     // Busy input signal
  pinMode(3, OUTPUT);    // Purple, Blank
  pinMode(4, OUTPUT);    // Gray, Reset
  pinMode(5, OUTPUT);    // Black, Test
  digitalWrite(3, HIGH);
  digitalWrite(4, HIGH);
  digitalWrite(5, HIGH);
  Serial.begin(9600);
  

}

void loop() {
  digitalWrite(4, LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(50);
  Serial.print("Hello world, how are you?");
  delay(2000);

}

You haven't provided nearly enough information so we can't offer much help.

Here's a start ... why are you displaying your message in loop()? Try doing that in setup() and see what happens.

Don

floresta:
You haven't provided nearly enough information so we can't offer much help.

Here's a start ... why are you displaying your message in loop()? Try doing that in setup() and see what happens.

Don

Same thing happens, random jumbling of the message, I'm displaying the message in loop so that it clears the display and prints it out again, so that I can tell if it is changing, which it clearly is from the video.

Besides, that's where the message will be displayed in when I have this actually doing something, so why not put it there?

There isn't much more information I can give, there is the datasheet which someone gave once I roughly figured out the pinouts, which helped match it up to a similar display, and it's using serial communication (as evident by the code).

I can't figure out why the text is randomly changing to other characters which are available. If I had more information to give, I probably would be able to figure it out, but I don't, so I'm hoping someone may have ran into something similar.

Alright so, as I and someone else figured it might be due to parity or the stop bit, and I set it to 8N2 (tried others later on) and it mostly works great, but for some reason the first bit gets scrambled, always in the same sort of spot. Length of the corruption changes, and it occasionally doesn't mess it up, but 99% of the time you still get that corruption.