Driving VFD panels with PT6311 controller

Sam66
Posts: 15
Joined: Tue Feb 11, 2014 6:03 pm

Re: Driving VFD panels with PT6311 controller

Postby Sam66 » Mon Feb 24, 2014 9:10 pm

Hi Dmitry,

Thanks for working on this, I realise how difficult it must be without having the display on hand for testing. I tried it just now and unfortunately it's not working yet.

As provided the sketch lights the following segments:

Segment 0x08 on digits 2,5,8 & 23 (numbering from my diagram, I think this will be equivalent to your positions 12, 11, 4 & 2)

Looking through the code I wasn't sure where to start to try and debug so I tried changing the text sent in line:
vfd.print_f_p(PSTR("0123456789 123"));

If I send 5 or fewer digits nothing is lit on display eg. vfd.print_f_p(PSTR("01234"));
9 digits only segment 0x08 on (your) position 4 eg. vfd.print_f_p(PSTR("012345678"));
10 digits segment 0x08 on positions 2 & 4
11-13 digits segment 0x08 on positions 2, 4 & 11
14 digits segment 0x08 on positions 2, 4, 11 & 12 eg. vfd.print_f_p(PSTR("88888888888888"));

Hopefully this will give you a pointer on where it is failing. If you want me to try changing any other values or commands just let me know (maybe we could arrange a skype or IM so you could get feedback in realtime?).

Sam

User avatar
dmitryp
Site Admin
Posts: 45
Joined: Sun Aug 04, 2013 1:16 am
Location: Sydney, Australia
Contact:

Re: Driving VFD panels with PT6311 controller

Postby dmitryp » Tue Feb 25, 2014 12:26 pm

Hi Sam,

Oh no, there were too many bugs, sorry. It seems that I found a way of testing without VFD, at least partially. Please try the updated driver.



Thank you,
Dmitry
Attachments
PT6311_Test_2014_02_25.zip
(9.57 KiB) Downloaded 857 times

Sam66
Posts: 15
Joined: Tue Feb 11, 2014 6:03 pm

Re: Driving VFD panels with PT6311 controller

Postby Sam66 » Tue Feb 25, 2014 1:18 pm

Ok, it now lights up:

Position 1: 0x01, 0x02, 0x04, 0x08, 0x20,0x40
Position 2: 0x02, 0x08, 0x10, 0x20, 0x40
Position 4: 0x02, 0x08, 0x20, 0x40
Position 12: 0x01, 0x02, 0x08, 0x10, 0x40

All other segments are not lit

If I send all 8s e.g. vfd.print_f_p(PSTR("88888888888888"));
then positions 1, 2, 4 display a capital 'A' (all segments except 0x80 are lit)
and positions 12 & 13 display an inverted 'A' (all segments except 0x80 are lit)

Sam

User avatar
dmitryp
Site Admin
Posts: 45
Joined: Sun Aug 04, 2013 1:16 am
Location: Sydney, Australia
Contact:

Re: Driving VFD panels with PT6311 controller

Postby dmitryp » Wed Feb 26, 2014 11:44 am

Hi Sam,

Good, the number of possible permutations is getting less :)

It has been eventually overlooked by me that the numbers on your picture are in decimal format, not hex. This has been fixed in VFDPanel_19S9D.h in POS2ADDR_MAP_PGM byte array.
However, it is still not consistent with what you posted earlier:

Sam66 wrote:Adding these lines to the sketch:

write_raw(0b0000000, 27);
pt6311_driver.addrSetCmd(24);
write_raw(0b00111110, 1);
write_raw(0b10110110, 1);
pt6311_driver.addrSetCmd(22);
write_raw(0b10100100, 1);
pt6311_driver.addrSetCmd(10);
write_raw(0b10100100, 1);
pt6311_driver.addrSetCmd(7);
write_raw(0b11101110, 1);

Displays 'HELLO'.


Looks like instead 25, 26, 23, 11 there should be 24, 25, 22, 10 - all values are decremented by 1. So... if the current update still doesn't work replace POS2ADDR_MAP_PGM definition in VFDPanel_19S9D.h with the following:

Code: Select all

const PROGMEM uint8_t POS2ADDR_MAP_PGM[VFD_MAX_COLUMNS] = {
    24, //pos 0 (digit on top left corner at 25)
    25,
    22,
    10,
    7,
    6,

    18, //pos 6 (digit on bottom left corner at 19)
    19,
    16,
    15,
    3,
    4,
    1,
    0
};


Apart from it there are a few cosmetic changes have been made.

Please refer to the file attached.

Thank you,
Dmitry
Attachments
PT6311_Test_2014_02_26.zip
(9.54 KiB) Downloaded 753 times

Sam66
Posts: 15
Joined: Tue Feb 11, 2014 6:03 pm

Re: Driving VFD panels with PT6311 controller

Postby Sam66 » Wed Feb 26, 2014 1:37 pm

'It has been eventually overlooked by me that the numbers on your picture are in decimal format, not hex.'

Sorry about that - my fault for mixing hex and decimal on the same diagram.

Anyway the great news is that your driver is now working correctly (with values decremented by 1 as suggested)! :) :) :)

Can you show me how to light the special segments like degree symbol? Is this already incorporated or does it need more coding?

Regards,

Sam

User avatar
dmitryp
Site Admin
Posts: 45
Joined: Sun Aug 04, 2013 1:16 am
Location: Sydney, Australia
Contact:

Re: Driving VFD panels with PT6311 controller

Postby dmitryp » Thu Feb 27, 2014 12:06 am

Hi Sam,

Great!

Can you show me how to light the special segments like degree symbol? Is this already incorporated or does it need more coding?


Yes, a few improvements still need to be done - to be able to control those 'Timer', 'Smoker', 'Oven' etc signs independently of digits (because they sometimes share the same bytes with digits), to add extra methods to display numbers (not only strings), to implement 'flashing' effect (right now it is not quite working for this display).

Degree symbol is already defined in FONT_PGM in Charset16S.h but there are no letters yet, just numbers...

Will get back to you soon.

Thank you,
Dmitry

Sam66
Posts: 15
Joined: Tue Feb 11, 2014 6:03 pm

Re: Driving VFD panels with PT6311 controller

Postby Sam66 » Thu Feb 27, 2014 9:35 am

Sounds like quite a bit more work, I hope you have the time.

I have updated the character set with all the letters and uploaded it to dropbox.

Sam

User avatar
dmitryp
Site Admin
Posts: 45
Joined: Sun Aug 04, 2013 1:16 am
Location: Sydney, Australia
Contact:

Re: Driving VFD panels with PT6311 controller

Postby dmitryp » Fri Feb 28, 2014 12:51 pm

Hi Sam,

Please try the updated driver, PT6311_Test02_Sketch.ino sketch.

The following methods have been appended:

void symbolOn(uint8_t symbol_idx);
void symbolOff(uint8_t symbol_idx);
void setFlame(uint8_t flame_idx);

... which covers control for all special symbols on your VFD panel.

Sorry, didn't have time to test it tonight - there may be some issues.

Thank you,
Dmitry
Attachments
PT6311_Test_2014_02_28.zip
(10.07 KiB) Downloaded 772 times

Sam66
Posts: 15
Joined: Tue Feb 11, 2014 6:03 pm

Re: Driving VFD panels with PT6311 controller

Postby Sam66 » Fri Feb 28, 2014 11:01 pm

Hi Dmitry,

Great, more progress :) :- all symbols are working, except for flame.

TINY lights 0x02
SMALL lights 0x08
MEDIUM, LARGE & EXTRA LARGE: 0x01 briefly flashes on reset but does not stay lit

Sam

User avatar
dmitryp
Site Admin
Posts: 45
Joined: Sun Aug 04, 2013 1:16 am
Location: Sydney, Australia
Contact:

Re: Driving VFD panels with PT6311 controller

Postby dmitryp » Tue Mar 04, 2014 2:18 am

Hi Sam,

Good :)
The only unusual part is that flame control was the easiest thing to implement...

Will be sending to you update soon.

Thank you,
Dmitry


Return to “General Technical Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest