#7 segment display MAX7219 not working corectly

1 messages · Page 1 of 1 (latest)

grand bison
#

Hello i have problem with my vs speed display i wanna do this https://github.com/Mobiflight/MobiFlight-Connector/wiki/Tutorial-for-Airbus-VS-display-via-7-Segment-LED-Module but its not working i mean this is beacuse the new version in older version mobiflight my arduino is not alive in program i do normal config but its working on - vs speed but on + on the first number is 1,2,3,4,5 …

GitHub

MobiFlight is an open source project that allows you to create your own home cockpit for your favorite flight simulator in a flexible, affordable and extremely user-friendly way. - MobiFlight/MobiF...

grand bison
grand bison
#

only speed working corectly

#

someone help me?

snow mason
#

ok you need to share screenshot of your config for the display

#

and what the "output value" is in the MF Connector window

#

and how that relates to the displayed value

snow mason
#

it is too hard to see the sim values but is the problem that the digits are offset? like the values are cut off or have too many zeroes?

snow mason
#

it is otherwise impossible to help (and as we are all at different timezones and doing different projects and stuff, it is not very common to have a fully realtime troubleshooting)

grand bison
#

Ik but im not in home at this time

snow mason
#

exactly, so when you are, take those screenshots, so when we are around and have a moment, we can look

#

without those we cannot really say anything. And even though I talk here a lot, I also check the support channels when I take a break from work or projects

#

sometimes things match up if people are on the same timezone, but its not so common

grand bison
#

yep this is my config

grand bison
snow mason
#

so when you have wrong numbers on the digits, whats on the "output value" column is important

grand bison
#

-800 its output

snow mason
#

and what is shown on the digits?

grand bison
#

-8000

snow mason
#

the video is kinda difficult to follow

grand bison
#

the same trouble with heading

#

wheen i have 080 its show 800

#

i can take a video but bit slow

snow mason
#

yeah let me look at the config screenshot quick

#

so for heading,

#

set left padding of zeros

#

and set the length of the field to 3

#

the left padding means it makes 1 into 001 on a 3-digit output display

grand bison
snow mason
#

you can also make it pad with space, so it then is 1 with space padded, and 001 with zero padding

grand bison
snow mason
#

so the way the 7segment displays work

#

is you have a MAX7219 module

#

then you define a "display" with X number of digits

#

so if you have a 8 digit module like this

#

you can have HDG and SPD on the same one

grand bison
snow mason
#

by jsut not using the same digits on both

grand bison
#

Um?

snow mason
#

but like SPD HDG

#

ok that is wires getting loose

#

or interference

#

the MAX7219 is not happy with bad connections

grand bison
#

heading not solved

snow mason
#

need to stop/run mobiflight to reset that

grand bison
#

i try use left

#

okey its solved

#

i reset mobiflight and it working heading

snow mason
#

yeah the max is a bit like that, you can add a capacitor and make sure you have high quality prototyping wires (the cheap ones are very flimsy and easily disconnect momentarily when they wobble)

grand bison
snow mason
#

yeah that -0500 is a bit wonky but I think the wiki tutorial @jade cipher did is really splitting the values into three parts: the minus sign, the full hundreds, and the tiny zeros (that are actually letters "oo")

#

but that is explained in the tutorial, its maybe good to first learn how the numbers on seven segments work in general, it is a bit of trickery to get that "-05oo" done

#

and I have not done that myself ever either

#

but it is basically the matter of knowing the length of the display "window" and using padding and multiplication when needed

#

you can also now use the padding modifier (that didnt exist when the wiki page was made)

grand bison
#

im dont wanna small zeros or another but i only want to do this working

snow mason
#

but it is easily a lot of new things at once

#

ok just values

#

so heading works?

#

what doesnt now?

#

because when the plane says "-05oo" it really is -500

#

so your display is correct, but it has that extra zero from somewhere, remove the zero padding from that one?

grand bison
snow mason
#

or set padding to spaces

grand bison
#

i change to spaces but wheen i have 0000 in plane its showing on display single 0

#

but its working

snow mason
#

left padding with zeros?

grand bison
#

with space

snow mason
#

padding means it fills the extra numbers on that side with zero or space

#

so if you want 0 to be 0000 you pad with zeros so it is 000+0

#

pad means it fills the extra numbers not part of your value with either zero or space

#

so it pushes the number either left or right

grand bison
#

i repair this single 0 to 00oo

snow mason
#

and fills the rest

#

the small zeros you need to do more tricks with modifiers, but learn to use the digits stuff first different ways

#

so you can pad and align different numbers in your display the way you want

#

because otherwise you have no idea what you should change to make the more wild stuff work

grand bison
#

KK

#

thanks for advice and i do someone tricks in modifier