Driving VFD panels with PT6311 controller

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 Mar 05, 2014 10:39 pm

Hi Sam,

In VFDPanel_19S9D.cpp in void VFD_19S9D::renderFlame() try to replace

Code: Select all

    _vfdFrame[VFD_FLAME_ADDR] |= 1 << flameState;


with

Code: Select all

    _vfdFrame[VFD_FLAME_ADDR] |= flameState;


This should fix the flame.

Thank you,
Dmitry

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

Re: Driving VFD panels with PT6311 controller

Postby Sam66 » Thu Mar 06, 2014 9:53 pm

Hi Dmitry

Yes, flame is fixed with that change.

Thanks,

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 Mar 06, 2014 10:17 pm

Hi Sam,

Good, today-tomorrow I will be sending update that allows flashing (blinking) for digits and special symbols. It is a bit tricky but I think I figured out already how to implement it in NOT very cumbersome way and at the same time make the algorithm fast enough.

Thank you,
Dmitry

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 » Mon Mar 10, 2014 12:28 pm

Hi Sam,

Please try the updated driver and run PT6311_Test03_Sketch.ino sketch. Digits are supposed to be flashing one by one, in other words, one flashing digit at a time. I have some doubts if it is fast enough and there is no visible flickering effect... but if there is then we would need to sacrifice 27 more bytes for a temporary buffer similar to _vfdFrame[VFD_DIGITS * VFD_BYTES_PER_DIGIT]. What type of Arduino board are you using?

And yes, special symbols can't flash yet.

There could be some bugs so let me know the symptoms if it doesn't work.

Thank you,
Dmitry
Attachments
PT6311_Test_2014_03_10.zip
(11.74 KiB) Downloaded 880 times

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

Re: Driving VFD panels with PT6311 controller

Postby Sam66 » Mon Mar 10, 2014 10:23 pm

Hi Dmitry,

Flashing works, but all digits are flashing at the same time, not one by one. Flashing rate is ok and no flicker effect.

At the moment I am using a cheap nano clone board. I would like to stick with this due to small size, but it may not have enough memory for my finished sketch so I might have to switch to mega 2560.

Thanks,

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 » Mon Mar 10, 2014 10:31 pm

Hi Sam,

I see, it is better not to use extra buffer then.

Ok, I'll have a look tonight - should be something trivial. If you don't see flicker effect, there are good chances that we can make the logic a bit more complicated to make special symbols flash as well without detrimental change.

Thank you,
Dmitry

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 11, 2014 9:43 pm

Hi Sam,

In VFDPanel_19S9D.h please replace

Code: Select all

uint8_t getFlashAttr(uint8_t index);

with

Code: Select all

uint16_t getFlashAttr(uint8_t index);


in VFDPanel_19S9D.cpp please replace

Code: Select all

uint8_t VFD_19S9D::getFlashAttr(uint8_t index)

with

Code: Select all

uint16_t VFD_19S9D::getFlashAttr(uint8_t index)


and replace

Code: Select all

if (( _flashAttr >> _col ) & 0x1 == 0)

with

Code: Select all

if (((_flashAttr >> _col ) & 0x1) == 0)


Thank you,
Dmitry

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

Re: Driving VFD panels with PT6311 controller

Postby Sam66 » Tue Mar 11, 2014 11:53 pm

Hi Dmitry,

Changes made - it's working ok now.

Each digit now flashes twice, progressing from right to left across the bottom and then the top(so in reverse order to position order if that makes sense).

Thanks,

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 Mar 12, 2014 12:18 am

Hi Sam,

Yes, it does make sense - it is an expected behaviour (well, going backwards from very last index to the very first but this is how it is done in the sketch).

OK... special symbols are next :)

Thank you,
Dmitry

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 » Sat Mar 15, 2014 8:36 am

Hi Sam,

Please try the updated driver and run PT6311_Test03_Sketch.ino again - it has two parts now, one demonstrates how to flash with digits, one shows how to flash with special symbols. Tested it to the best of my abilities - should work.

Thank you,
Dmitry
Attachments
PT6311_Test_2014_03_15.zip
(12.47 KiB) Downloaded 865 times


Return to “General Technical Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest