LED P10 (32x16) with esp32

i am integrating ledp10 single color matrix(32x16) using this connection

and code is an example od dmd32 library-`#include <DMD32.h>
#include "fonts/SystemFont5x7.h"
#include "fonts/Arial_Black_16_ISO_8859_1.h"

//Fire up the DMD library as dmd
#define DISPLAYS_ACROSS 1
#define DISPLAYS_DOWN 1
DMD dmd(DISPLAYS_ACROSS, DISPLAYS_DOWN);

//Timer setup
//create a hardware timer of ESP32
hw_timer_t * timer = NULL;

/--------------------------------------------------------------------------------------
Interrupt handler for Timer1 (TimerOne) driven DMD refresh scanning, this gets
called at the period set in Timer1.initialize();
--------------------------------------------------------------------------------------
/
void IRAM_ATTR triggerScan()
{
dmd.scanDisplayBySPI();
}

/--------------------------------------------------------------------------------------
setup
Called by the Arduino architecture before the main loop begins
--------------------------------------------------------------------------------------
/
void setup(void)
{

// return the clock speed of the CPU
uint8_t cpuClock = ESP.getCpuFreqMHz();

// Use 1st timer of 4
// devide cpu clock speed on its speed value by MHz to get 1us for each signal of the timer
timer = timerBegin(0, cpuClock, true);
// Attach triggerScan function to our timer
timerAttachInterrupt(timer, &triggerScan, true);
// Set alarm to call triggerScan function
// Repeat the alarm (third parameter)
timerAlarmWrite(timer, 300, true);

// Start an alarm
timerAlarmEnable(timer);

//clear/init the DMD pixels held in RAM
dmd.clearScreen( true ); //true is normal (all pixels off), false is negative (all pixels on)
Serial.begin(115200);
}

/--------------------------------------------------------------------------------------
loop
Arduino architecture main loop
--------------------------------------------------------------------------------------
/
void loop(void)
{
dmd.clearScreen( true );
dmd.selectFont(Arial_Black_16_ISO_8859_1);
// Français, Österreich, Magyarország
const char MSG = "Fran""\xe7""ais, ""\xd6""sterreich, Magyarorsz""\xe1""g";
dmd.drawMarquee(MSG,strlen(MSG),(32
DISPLAYS_ACROSS)-1,0);
long start=millis();
long timer=start;
while(1){
if ((timer+30) < millis()) {
dmd.stepMarquee(-1,0);
timer=millis();
}
}
}`

and i found output like this -

i have checked all connection properly.

A still image doesn't say much about scrolling text. Did you try to light on a single pixel in defined x, y point? Or a line from left to right?

no i did not try any single pixel, i am using example of library, i have also tried another code ,code has been run on serial monitor but module didnt give any response, its always looks like above image.

What module did you exactly get? You hooked it up as 1/4 scan (using A and B) but it could be 1/8 scan (using A, B and C). Maybe it uses 2 color channels.

@Rintin , OP said that it is a monochrome panel. As far as I know, all monochromes are only 1/4

@piyoosh
try the code below and show us the video

void loop(void)
{
unsigned long timer = millis();
uint16_t fg = 
dmd.clearScreen( true );
while(1) {
 if (millis() - timer > 30) {
   for (int i = 0; i < 16; i++) {
        for (int j = 0; j < 32; j++) {
            dmd.drawPixel(j,i, GRAPHICS_NORMAL, 1);
            delay(30);
        }
   }
  timer=millis();
  }
}
}

no it is 1/4

#include <DMD32.h>
#include "fonts/SystemFont5x7.h"
#include "fonts/Arial_black_16.h"

#define DISPLAYS_ACROSS 1
#define DISPLAYS_DOWN 1

DMD dmd(DISPLAYS_ACROSS, DISPLAYS_DOWN);

void setup() {
  Serial.begin(115200);
  dmd.clearScreen(true);
}

void loop() {
  dmd.selectFont(SystemFont5x7);
  dmd.clearScreen(true);
  dmd.drawString(0, 0, "Hello, World!", 12, GRAPHICS_NORMAL);
  delay(2000);
}

display is not working

It is not my code.

I found a lead to draw different-different graphic image on led matrix with arduino but still i didn`t undestand why module not workingh for esp32 while i am making all connection according dmd32 library.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.