LED 8x8 Matrix Hi guys I am trying to do diagonal lines with an

LED 8x8 Matrix

Hi guys

I am trying to do diagonal lines with an 8x8 LED matrix. However, when I do that, it becomes really feint. Anyone know why this happens and what I need to do to make them more observable like the horizontal and vertical ones I have?

many thanks

tej

Hi Tej, this isn’t really the right place for this question, but if you provide some more details someone here might be able to help. How are the LEDs wired and powered? What kind of microcontroller are you using?

@Sam_Guyer I thought I may ask
Wired with no resistors and according to the pinout in my define section of code. Powered by teensy / USB port. No external supply other than teensy

@Tejkaran_Samra in your routine to display diagonal could you try with not calling your refresh function ? It looks like you are turning on and of the leds really fast

@Yves_BAZIN I have tried, but if I don’t refresh as often, then the whole 8x8 grid turns on because you are turning on each row and column. You have to refresh after each one. That is my understanding.

@Tejkaran_Samra then you need to increase the refresh rate. i had that issue when i tried this kind of setup too.

I’m guessing it’s a power problem. The Teensy can’t provide a lot of power from the data pins. But I still don’t fully understand the circuit. Are these individual LEDs wired into a matrix? How are the rows and columns supposed to work?

@Yves_BAZIN thanks. I will try to do that.
@Sam_Guyer I am not convinced it is a power problem as the horizontal stripes light up properly. It’s the diagonal ones that do not. I will report back once I try increasing the refresh rate as advised by Yves

got it working. @Yves_BAZIN you were right. Essentially I needed to increase the lighting up and refresh speed. I have updated the gist with a few more things included. thank you

@Tejkaran_Samra welcome :wink: