[{"data":1,"prerenderedAt":548},["ShallowReactive",2],{"post-max7219-fc16-esp32-wiring-orientation-en":3,"related-posts-max7219-fc16-esp32-wiring-orientation-en":496,"related-categories-max7219-fc16-esp32-wiring-orientation-en":524,"blog-project-detail-card-gizmo-ticker-en":539},{"id":4,"title":5,"author":6,"authorImageUrl":7,"authorUrl":8,"body":9,"categorySlug":454,"categoryText":455,"dateModified":456,"datePublished":456,"description":457,"extension":458,"faqs":459,"image":478,"imageAlt":479,"language":480,"meta":481,"navigation":482,"path":483,"seo":484,"sitemap":485,"stem":486,"summary":487,"tags":488,"__hash__":495},"blog\u002Fblog\u002Fmax7219-fc16-esp32-wiring-orientation.md","MAX7219 FC16 With ESP32: Wiring, 3.3 V Logic, Mirroring","Mauro Brambilla","\u002Fimages\u002Fauthors\u002Fbruma.jpg","\u002Fabout",{"type":10,"value":11,"toc":443},"minimark",[12,21,35,39,44,65,68,72,81,88,95,100,103,112,123,144,147,154,157,161,164,167,171,190,193,206,210,222,228,252,258,262,273,277,280,291,333,344,348,351,355,361,365,368,376,387,391,408,419,423,426],[13,14,15,16,20],"p",{},"A 4-in-1 FC16 MAX7219 module connects to an ESP32 with five wires: 5 V, GND, DIN, CS and CLK. Drive it with the MD_MAX72XX library and set the hardware type to ",[17,18,19],"code",{},"FC16_HW",". If the text shows up mirrored, flipped or in the wrong order, the hardware type does not match your board, and changing it is the fix.",[13,22,23,24,29,30,34],{},"This is the focused reference behind the ",[25,26,28],"a",{"href":27},"\u002Fprojects\u002Fgizmo-ticker","Gizmo Ticker",", which runs an FC16 matrix on a XIAO ESP32-S3. The pins and library versions come from its firmware, the type table comes from the MD_MAX72XX source, and the parts measurements come from my part notes. The full build, with flashing and the API key, is in the ",[25,31,33],{"href":32},"\u002Fblog\u002Fhow-to-build-a-crypto-ticker-with-esp32-and-max7219","crypto ticker build guide",".",[36,37],"project-detail-card",{"project-slug":38},"gizmo-ticker",[40,41,43],"h2",{"id":42},"what-is-an-fc16-max7219-4-in-1-module","What is an FC16 MAX7219 4-in-1 module?",[13,45,46,47,53,54,58,59,64],{},"A MAX7219 is a driver chip that lights up to 64 LEDs, one 8x8 matrix, from a short serial bus, and it can be chained with other MAX7219s (",[25,48,52],{"href":49,"rel":50},"https:\u002F\u002Fwww.analog.com\u002Fen\u002Fproducts\u002Fmax7219.html",[51],"nofollow","Analog Devices product page","). An ",[55,56,57],"strong",{},"FC16 module"," is the common board that chains four of them for you: four 8x8 red matrices, each with its own MAX7219, on one long PCB. The MD_MAX72XX documentation says you can recognize an FC-16 by the \"FC-16\" printed on the PCB, and that most sets of four modules sold as one unit are this type (",[25,60,63],{"href":61,"rel":62},"https:\u002F\u002Fmajicdesigns.github.io\u002FMD_MAX72XX\u002Fpage_f_c16.html",[51],"FC-16 page",").",[13,66,67],{},"On the one I use for the ticker, the PCB measures 132 x 32 mm, and the LED blocks cover the whole length, although four 32 mm blocks would add up to 128 mm. Sellers disagree on the length (128 to 132 mm), so measure yours before you design anything around it. The straight header pins stick out about 7 mm at each end. Those numbers come from my part notes for this board, measured and confirmed on the ticker's test prints.",[40,69,71],{"id":70},"how-do-you-wire-an-esp32-to-a-max7219-fc16-module","How do you wire an ESP32 to a MAX7219 FC16 module?",[13,73,74,75,80],{},"You need the five pins of the input side of the module: VCC, GND, DIN, CS and CLK. The library names them like this: DIN is the serial data in, CLK clocks the data, and CS (called LD in the library's documentation) selects the whole chain, and the data is latched when it goes high again (",[25,76,79],{"href":77,"rel":78},"https:\u002F\u002Fmajicdesigns.github.io\u002FMD_MAX72XX\u002Fpage_connect.html",[51],"library connection notes","). The other side of the board has DOUT, which feeds the next module, so you leave it alone.",[13,82,83],{},[84,85],"img",{"alt":86,"src":87},"Five wires from the XIAO ESP32-S3 pads to the FC16 input: 5V to VCC, GND to GND, D10 to DIN, D9 to CS, D8 to CLK, with 3V3 not connected","\u002Fimages\u002Fblog\u002Fmax7219-fc16-esp32-wiring-orientation-wiring.webp",[13,89,90,91,34],{},"Here is the pin map the Gizmo Ticker uses. The GPIO numbers are the chip's own, and the D labels are the XIAO's pad names, explained in the ",[25,92,94],{"href":93},"\u002Fblog\u002Fxiao-esp32s3-pinout-safe-pins","XIAO ESP32-S3 pinout guide",[96,97],"blog-table",{":headers":98,":rows":99},"[\"FC16 input\",\"XIAO ESP32-S3 pad\",\"ESP32-S3 GPIO\",\"Role\"]","[[\"VCC\",\"5V\",\"none\",\"Matrix power\"],[\"GND\",\"GND\",\"none\",\"Ground\"],[\"DIN\",\"D10\",\"GPIO9\",\"SPI data out (MOSI)\"],[\"CS\",\"D9\",\"GPIO8\",\"Chip select\"],[\"CLK\",\"D8\",\"GPIO7\",\"SPI clock (SCK)\"]]",[13,101,102],{},"The pads next to 5V and GND follow the order of the module input, so a flat cable runs straight across and the 3V3 wire stays free. On any other ESP32 board, pick any three free GPIOs: the library has a constructor that takes the data, clock and CS pins directly, and another that uses the board's hardware SPI. Hardware SPI is faster, and the library's own documentation describes the software version as slower.",[13,104,105,106,111],{},"Here is the real setup code of the ticker, from ",[25,107,110],{"href":108,"rel":109},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fsrc\u002Fmatrix\u002Fmatrix.cpp",[51],"matrix.cpp",":",[113,114,121],"pre",{"className":115,"code":117,"filename":118,"language":119,"meta":120},[116],"language-cpp","SPI.begin(CLK_PIN, -1, DATA_PIN); \u002F\u002F The display only writes: no MISO, so its default pin stays free (MD_MAX72XX then reuses this bus)\nmatrix = new MD_Parola(HARDWARE_TYPE, CS_PIN, config.matrixModules);\nmatrix->begin(); \u002F\u002F Start the LED matrix\n","microcontroller\u002Fsrc\u002Fmatrix\u002Fmatrix.cpp","cpp","",[17,122,117],{"__ignoreMap":120},[13,124,125,126,129,130,133,134,137,138,143],{},"Two details matter. The ",[17,127,128],{},"-1"," means \"no MISO\", because the display never sends anything back, and that frees D9 to act as CS. The ",[17,131,132],{},"HARDWARE_TYPE"," constant is ",[17,135,136],{},"MD_MAX72XX::FC16_HW",", defined in ",[25,139,142],{"href":140,"rel":141},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fsrc\u002Fconfig\u002Fconfig.h",[51],"config.h",". The MD_MAX72XX 3.5.1 source starts each SPI transaction at 8 MHz in mode 0, which is under the 10 MHz clock limit in the MAX7219 datasheet but worth remembering if your wires are long.",[13,145,146],{},"If you are not on the XIAO, the same idea fits in a few lines. This minimal sketch follows the ticker's setup and the library's documented API, with the ticker's pins; I have not compiled this exact sketch, so treat it as a starting point and change the three pin numbers to your board's:",[113,148,152],{"className":149,"code":150,"filename":151,"language":119,"meta":120},[116],"#include \u003CMD_Parola.h>\n#include \u003CMD_MAX72xx.h>\n#include \u003CSPI.h>\n\nconstexpr MD_MAX72XX::moduleType_t HARDWARE_TYPE = MD_MAX72XX::FC16_HW;\nconstexpr uint8_t MODULES = 4; \u002F\u002F one 4-in-1 board\nconstexpr uint8_t CS_PIN = 8;\n\nMD_Parola display(HARDWARE_TYPE, CS_PIN, MODULES);\n\nvoid setup() {\n    SPI.begin(7, -1, 9); \u002F\u002F SCK, no MISO, MOSI\n    display.begin();\n    display.setIntensity(1); \u002F\u002F 0-15\n    display.displayText(\"HELLO\", PA_CENTER, 50, 1000, PA_SCROLL_LEFT, PA_SCROLL_LEFT);\n}\n\nvoid loop() {\n    if (display.displayAnimate()) display.displayReset();\n}\n","max7219_hello.ino",[17,153,150],{"__ignoreMap":120},[13,155,156],{},"Before celebrating, power the board and look for any text at all. A blank display with correct wiring is a different problem from mirrored text, and the next sections take them one at a time.",[40,158,160],{"id":159},"does-33-v-logic-work-with-a-5-v-max7219-board","Does 3.3 V logic work with a 5 V MAX7219 board?",[13,162,163],{},"Usually yes in practice, but it is outside what the datasheet guarantees. The matrix runs from 5 V, while the ESP32's GPIOs signal at 3.3 V, so what matters is whether a 3.3 V high counts as a high to the MAX7219.",[13,165,166],{},"The numbers, from the primary sources:",[96,168],{":headers":169,":rows":170},"[\"Source\",\"Parameter\",\"Value\",\"Conditions\"]","[[\"MAX7219 datasheet\",\"Logic high input voltage (VIH), DIN, CLK, CS\",\"3.5 V minimum\",\"V+ = 5 V, plus or minus 10%\"],[\"MAX7219 datasheet\",\"Logic low input voltage (VIL)\",\"0.8 V maximum\",\"V+ = 5 V, plus or minus 10%\"],[\"MAX7219 datasheet\",\"Operating supply voltage\",\"4.0 to 5.5 V\",\"none\"],[\"ESP32-S3 datasheet v2.2\",\"High-level output voltage (VOH)\",\"0.8 x VDD minimum, 2.64 V at 3.3 V\",\"VDD = 3.3 V, 25 C\"]]",[13,172,173,174,179,180,185,186,189],{},"Both come from the manufacturers: the ",[25,175,178],{"href":176,"rel":177},"https:\u002F\u002Fdocumentation.espressif.com\u002Fesp32-s3_datasheet_en.pdf",[51],"Espressif ESP32-S3 datasheet"," (table 5-4) and the Maxim MAX7219 datasheet, revision 4. Analog Devices' own page for it did not load when this post was checked, so I read the same revision from a ",[25,181,184],{"href":182,"rel":183},"https:\u002F\u002Fwww.sparkfun.com\u002Fdatasheets\u002FComponents\u002FGeneral\u002FCOM-09622-MAX7219-MAX7221.pdf",[51],"copy hosted by SparkFun","; the ",[25,187,52],{"href":49,"rel":188},[51]," may list a newer one.",[13,191,192],{},"So the guaranteed ESP32-S3 high (2.64 V) is below the guaranteed MAX7219 minimum (3.5 V). The datasheets do not promise that this works. What the Gizmo Ticker does is clear from its repository: DIN, CS and CLK go straight from the XIAO's 3.3 V pins to the matrix, which sits on the 5V pad, with no level shifter. The README documents the wiring and gives no margin analysis, and I am not claiming a test beyond that. Real chips often switch below the guaranteed level, but you cannot count on it with a different batch, a long cable or a noisy supply.",[13,194,195,196,200,201,205],{},"If you see garbage, flicker or random pixels, put a level shifter on the three signal lines (DIN, CS, CLK). It only needs to work in one direction, because the display never talks back. The reverse risk does not exist in this wiring: the ESP32-S3's inputs tolerate at most VDD plus 0.3 V, but no wire carries data from the matrix to the ESP32. The same question comes up for a 5 V I2C backpack in ",[25,197,199],{"href":198},"\u002Fblog\u002Fesp32-lcd-i2c-not-working-fix","ESP32 I2C LCD 16x2 not working",". Check the supply too, as the ",[25,202,204],{"href":203},"\u002Fblog\u002Fesp32-brownout-detector-was-triggered","ESP32 brownout guide"," explains.",[40,207,209],{"id":208},"why-is-my-max7219-text-mirrored-or-reversed","Why is my MAX7219 text mirrored or reversed?",[13,211,212,213,216,217,64],{},"Every FC16-style board has the same chips, but the wiring between the LED matrix and the MAX7219 differs from one board family to another. The MD_MAX72XX documentation says the circuits are essentially the same and that the difference is how the matrix is wired to the chip, which the library handles in software with a ",[17,214,215],{},"moduleType_t"," value (",[25,218,221],{"href":219,"rel":220},"https:\u002F\u002Fmajicdesigns.github.io\u002FMD_MAX72XX\u002Fpage_hardware.html",[51],"hardware page",[13,223,224],{},[84,225],{"alt":226,"src":227},"A four-module LED matrix shows FC16_HW? mirrored, while the maker holds a lens that shows the text the right way round","\u002Fimages\u002Fblog\u002Fmax7219-fc16-esp32-wiring-orientation-illustration.webp",[13,229,230,231,236,237,240,241,244,245,248,249,111],{},"Each type is a combination of three switches, described in the ",[25,232,235],{"href":233,"rel":234},"https:\u002F\u002Fmajicdesigns.github.io\u002FMD_MAX72XX\u002Fpage_new_hardware.html",[51],"structured names page",": ",[55,238,239],{},"DR"," (digits as rows), ",[55,242,243],{},"CR"," (columns reversed) and ",[55,246,247],{},"RR"," (rows reversed). This is how the 3.5.1 source sets them in ",[17,250,251],{},"setModuleParameters()",[13,253,254],{},[84,255],{"alt":256,"src":257},"Table of the four named MD_MAX72XX hardware types and their three switches: FC16_HW digits as rows only, GENERIC_HW columns reversed only, PAROLA_HW digits as rows and columns reversed, ICSTATION_HW all three","\u002Fimages\u002Fblog\u002Fmax7219-fc16-esp32-wiring-orientation-types.webp",[96,259],{":headers":260,":rows":261},"[\"Hardware type\",\"Digits as rows (DR)\",\"Columns reversed (CR)\",\"Rows reversed (RR)\",\"Structured name\"]","[[\"FC16_HW\",\"yes\",\"no\",\"no\",\"DR1CR0RR0\"],[\"GENERIC_HW\",\"no\",\"yes\",\"no\",\"DR0CR1RR0\"],[\"PAROLA_HW\",\"yes\",\"yes\",\"no\",\"DR1CR1RR0\"],[\"ICSTATION_HW\",\"yes\",\"yes\",\"yes\",\"DR1CR1RR1\"]]",[13,263,264,265,268,269,272],{},"The column and row flips act on one 8x8 block at a time: the source maps a pixel to ",[17,266,267],{},"COL_SIZE - 1 - c"," and ",[17,270,271],{},"ROW_SIZE - 1 - r",", where both sizes are 8. So they fix glyphs that are mirrored or flipped inside each block. The table below is my reading of those flags, not a bench test, so treat it as a short list of what to try first, one type per build.",[96,274],{":headers":275,":rows":276},"[\"What you see\",\"Which switch is probably off\",\"Try this\"]","[[\"Each letter mirrored left to right, upright\",\"Columns reversed (CR)\",\"Switch FC16_HW to PAROLA_HW, which differs only in CR\"],[\"Each letter flipped top to bottom\",\"Rows reversed (RR)\",\"Use the structured name DR1CR0RR1_HW, which has no alias in the library\"],[\"Each letter rotated 180 degrees\",\"CR and RR together\",\"Try ICSTATION_HW, which is FC16_HW with both flips added\"],[\"Letters lying on their side or scrambled\",\"Digits as rows (DR)\",\"Try GENERIC_HW, then run the HW_Mapper example\"]]",[13,278,279],{},"Module order is a separate question from the three flips. The library's FC-16 page says the display is oriented with the DIN side on the right, and the structured-names page says the modules are daisy chained from right to left. It also warns that the text printed on the PCB may appear upside down, so judge the board by what the LEDs show, not by its silkscreen. My parts notes assume the same DIN-on-the-right layout for the ticker and list it as still open: I have not confirmed it on every board. If whole words come out in the wrong module order, check that you fed the input pads (DIN) and not the output pads (DOUT), and that the module count in your code matches the number of modules.",[13,281,282,283,286,287,290],{},"If no named type works, the library ships a utility called ",[17,284,285],{},"MD_MAX72xx_HW_Mapper",": run it with one module, and it prints which digit and segment each lit pixel belongs to, so you can build the right ",[17,288,289],{},"DR#CR#RR#_HW"," name. The library warns that combinations without an alias are not guaranteed to work unless tested.",[13,292,293,294,268,297,300,301,304,305,307,308,310,311,314,315,318,319,322,323,326,327,332],{},"Can you fix it in software instead? MD_Parola has ",[17,295,296],{},"PA_FLIP_UD",[17,298,299],{},"PA_FLIP_LR"," zone effects, set with ",[17,302,303],{},"setZoneEffect()",". Its header says ",[17,306,296],{}," works with every text effect, but ",[17,309,299],{}," does not work with ",[17,312,313],{},"SCROLL_LEFT",", ",[17,316,317],{},"SCROLL_RIGHT"," or ",[17,320,321],{},"SLICE",", and the ticker scrolls left (",[17,324,325],{},"PA_SCROLL_LEFT"," in ",[25,328,331],{"href":329,"rel":330},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fsrc\u002Fconfig\u002Fconfig.cpp",[51],"config.cpp","). For a scrolling display, a left-to-right mirror is fixed by the hardware type, not by a flip.",[13,334,335,336,338,339,341,342,34],{},"In the Gizmo Ticker, that means editing the ",[17,337,132],{}," line in ",[17,340,142],{}," and building the firmware yourself. The browser-flashed release is fixed to ",[17,343,19],{},[40,345,347],{"id":346},"why-is-my-max7219-matrix-blank-dim-or-showing-garbage","Why is my MAX7219 matrix blank, dim or showing garbage?",[13,349,350],{},"A blank or noisy FC16 display is almost always power, wiring or a mismatch between the code and the board, and the order below goes from the cheapest check to the most work. Change one thing at a time.",[96,352],{":headers":353,":rows":354},"[\"What you see\",\"Likely cause\",\"What to check\"]","[[\"Nothing lights up\",\"No power, no common ground or the wrong end wired\",\"5 V on VCC, GND joined to the ESP32, wires on the input pads, not DOUT\"],[\"Nothing lights up, wiring looks right\",\"CS or module count differs from the code\",\"The CS pin in the constructor matches the CS wire, and the module count is 4 per board\"],[\"Very faint text\",\"Intensity set low\",\"setIntensity() takes 0 to 15, and the ticker's default is 1\"],[\"Random pixels, flicker or garbage\",\"Marginal 3.3 V logic or a weak supply\",\"Level shifter on DIN, CS and CLK, shorter wires, a stable 5 V supply\"],[\"Text is readable but mirrored or flipped\",\"Wrong hardware type\",\"The symptom table in the mirroring section above, one type at a time\"]]",[13,356,357,358,360],{},"The MAX7219 datasheet gives an operating supply of 4.0 to 5.5 V, so a matrix wired to the 3V3 pad is below its range. The ticker keeps that pad free for the same reason. The ",[25,359,204],{"href":203}," covers the case where the whole board resets instead.",[40,362,364],{"id":363},"how-do-you-chain-max7219-modules-and-how-much-current-is-that","How do you chain MAX7219 modules, and how much current is that?",[13,366,367],{},"A chain is a shift register line: DOUT of one module goes to DIN of the next, while CS and CLK are shared by all of them. The library's connection notes say data is shifted into a 16-bit register and latched on the rising edge of the load signal, and that the CS line selects the whole chain. An FC16 board already chains its four modules; to extend the display, join the output pads of one board to the input pads of the next.",[13,369,370,371,375],{},"You tell the library how many 8x8 modules there are, and the rest follows. The Gizmo Ticker stores that number in flash and accepts 4 to 32 in steps of 4, because the boards come as 4-in-1. Its default is 4, one board, which is also what the ",[25,372,374],{"href":373},"\u002Fblog\u002F3d-printed-esp32-enclosure-design-guide","enclosure"," is drawn for. The firmware restarts after you change the count, since the display object is created once at boot.",[13,377,378,379,382,383,386],{},"On current I have no measured number for the FC16 board. The ticker repository states none, and my parts notes do not list one. The MAX7219 datasheet gives a worst case for one chip: up to 330 mA with every segment on at 40 mA, and an FC16 board has four chips, so the ceiling multiplies, but the real draw depends on the brightness setting and on the board's own current-set resistor. The library documentation only says the supply must provide enough current for the connected modules. What I can say from the firmware: brightness is the ",[17,380,381],{},"setIntensity()"," setting, 0 to 15, and the ticker defaults to 1. If you chain more boards, measure the draw with a USB power meter at your brightness before you trust a laptop port, and read the ",[25,384,385],{"href":203},"brownout guide"," if the board resets when the display gets bright. I would feed long chains from a proper 5 V supply with the grounds joined, but that is my preference, not something I tested.",[40,388,390],{"id":389},"which-library-should-you-pick-for-an-esp32-max7219-display","Which library should you pick for an ESP32 MAX7219 display?",[13,392,393,394,397,398,401,402,407],{},"Two libraries from the same author, one on top of the other. ",[55,395,396],{},"MD_MAX72XX"," talks to the chips and treats the chain as one pixel surface: set a pixel, draw a bitmap, change the intensity. ",[55,399,400],{},"MD_Parola"," builds text on top of it: scrolling, alignment, pauses and animations, and it needs MD_MAX72XX installed. The ticker uses MD_Parola 3.7.5 and MD_MAX72XX 3.5.1, pinned in ",[25,403,406],{"href":404,"rel":405},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fplatformio.ini",[51],"platformio.ini",", because text is all it shows.",[13,409,410,411,413,414,418],{},"For text, start with MD_Parola. For graphics, a game or a custom animation, use MD_MAX72XX directly. Both take the same ",[17,412,215],{}," argument, so everything above applies to either. If you are still deciding between this kind of display and a bigger panel, ",[25,415,417],{"href":416},"\u002Fblog\u002Fmax7219-vs-hub75-led-matrix-esp32","MAX7219 vs HUB75"," compares them.",[40,420,422],{"id":421},"what-did-we-verify-and-what-is-still-open","What did we verify, and what is still open?",[13,424,425],{},"You now have the five-wire map for an FC16 module on a XIAO ESP32-S3, the code that starts it, and a table that turns \"my text is mirrored\" into the next type to try. The pins, the pinned library versions and the 8 MHz SPI setting come from the ticker and library sources. The 2.64 V output level comes from Espressif's datasheet, and the 3.5 V input level from the MAX7219 datasheet, revision 4.",[13,427,428,429,432,433,437,438,442],{},"Three limits remain. The 3.3 V wiring works in the ticker but sits below the datasheet's guaranteed input level, so a level shifter is the safe fix when it misbehaves. The symptom table follows from the library's flags and has not been run on every board family. And chain length and current are untested here beyond one 4-in-1 board. To see the whole device built around this matrix, read the ",[25,430,431],{"href":32},"crypto ticker build",", and ",[25,434,436],{"href":435},"\u002Fblog\u002Fcoingecko-api-esp32-rate-limits","CoinGecko API on ESP32: free limits and polling rate"," for how its prices are fetched. See also ",[25,439,441],{"href":440},"\u002Fblog\u002Fwhat-is-opengizmo","what OpenGizmo is"," for the other projects.",{"title":120,"searchDepth":444,"depth":444,"links":445},2,[446,447,448,449,450,451,452,453],{"id":42,"depth":444,"text":43},{"id":70,"depth":444,"text":71},{"id":159,"depth":444,"text":160},{"id":208,"depth":444,"text":209},{"id":346,"depth":444,"text":347},{"id":363,"depth":444,"text":364},{"id":389,"depth":444,"text":390},{"id":421,"depth":444,"text":422},"builds","Builds","2026-11-14T00:00:00Z","Wire a 4-in-1 FC16 MAX7219 matrix to an ESP32 with five wires, check the 3.3 V logic question, and fix mirrored text with the right MD_MAX72XX hardware type.","md",[460,463,466,469,472,475],{"question":461,"answer":462},"Which HARDWARE_TYPE should I use for an FC16 MAX7219 module?","Use FC16_HW in the MD_MAX72XX library for the common 4-in-1 boards with FC-16 printed on the PCB. The Gizmo Ticker firmware sets exactly that. If the text still appears mirrored or flipped, try PAROLA_HW, GENERIC_HW or ICSTATION_HW one at a time and rebuild.",{"question":464,"answer":465},"Can an ESP32 drive a MAX7219 matrix with 3.3 V logic?","Often, but it is outside the datasheet guarantee. The MAX7219 datasheet lists a minimum input high of 3.5 V at a 5 V supply, while the ESP32-S3 guarantees at least 2.64 V on a high output. The Gizmo Ticker wires the matrix directly, without a level shifter; add one if the display shows garbage.",{"question":467,"answer":468},"Does a MAX7219 matrix need a MISO wire?","No. The MAX7219 only receives data: DIN, CLK and CS are all it needs, plus power. The Gizmo Ticker starts SPI with MISO set to -1, which frees the default MISO pad of the XIAO ESP32-S3 to act as the chip-select line for the display.",{"question":470,"answer":471},"How many MAX7219 modules can I chain on one ESP32?","You pass the module count to the MD_MAX72XX constructor, and each FC16 board adds four modules. The Gizmo Ticker accepts 4 to 32 modules in steps of 4, but its repository documents wiring and power only for one 4-in-1 board, so test the power draw before chaining more.",{"question":473,"answer":474},"Why is my MAX7219 text mirrored or upside down?","The matrix is wired to the MAX7219 chip differently on different boards, and the MD_MAX72XX library compensates with a hardware type. FC16_HW, PAROLA_HW, GENERIC_HW and ICSTATION_HW differ in whether digits map to rows and whether columns or rows are reversed. A wrong type shows as mirrored, flipped or rotated glyphs.",{"question":476,"answer":477},"Should I use MD_Parola or MD_MAX72XX for scrolling text?","Use MD_Parola for text: it adds scrolling, alignment and animation effects on top of MD_MAX72XX, which it needs. Use MD_MAX72XX alone when you draw single pixels or bitmaps. The Gizmo Ticker pins MD_Parola 3.7.5 and MD_MAX72XX 3.5.1 in its platformio.ini, and the hardware type goes in either constructor.","\u002Fimages\u002Fblog\u002Fmax7219-fc16-esp32-wiring-orientation.jpg","A woman with her hair in a bun and a denim jacket holds a screwdriver beside a four-module red LED matrix showing HELLO, wired to an ESP32 board.","en",{},true,"\u002Fblog\u002Fmax7219-fc16-esp32-wiring-orientation",{"title":5,"description":457},{"loc":483},"blog\u002Fmax7219-fc16-esp32-wiring-orientation","An FC16 MAX7219 module needs five wires to an ESP32: 5 V, GND, DIN, CS and CLK. Pick FC16_HW in MD_MAX72XX; mirrored or reversed text means the hardware type does not match your board.",[489,490,491,492,493,494],"MAX7219","ESP32","Displays","XIAO ESP32-S3","Electronics","OpenGizmo","AZ5lzitDa2Ed4fD8vI-i0Iiz9dsjaXLaDAYI0miXmbg",[497,503,510,518],{"title":498,"description":499,"image":500,"categoryText":455,"categorySlug":454,"tags":501,"path":32},"ESP32 Crypto Ticker With MAX7219: Parts, Wiring, Setup","Build an ESP32 crypto ticker with a MAX7219 matrix: XIAO ESP32-S3 pinout, browser flashing, captive portal setup and a free CoinGecko key. Firmware on GitHub.","\u002Fimages\u002Fblog\u002Fhow-to-build-a-crypto-ticker-with-esp32-and-max7219.png",[490,492,489,491,494,502],"Wi-Fi",{"title":504,"description":505,"image":506,"categoryText":507,"categorySlug":508,"tags":509,"path":198},"ESP32 I2C LCD 16x2 Not Working: Address, 5 V, Contrast","ESP32 I2C LCD 16x2 blank or showing blocks? Scan for the 0x27 or 0x3F address, turn the contrast trimmer, and check the 5 V backpack on 3.3 V pins.","\u002Fimages\u002Fblog\u002Fesp32-lcd-i2c-not-working-fix.jpg","Troubleshooting","troubleshooting",[490,491,492,493,507,494],{"title":511,"description":512,"image":513,"categoryText":514,"categorySlug":515,"tags":516,"path":416},"MAX7219 vs HUB75 LED Matrix for ESP32: Which to Pick","MAX7219 vs HUB75 LED matrix on an ESP32: pins, power, colors, libraries and cost compared, plus why the Gizmo Ticker uses a MAX7219 matrix.","\u002Fimages\u002Fblog\u002Fmax7219-vs-hub75-led-matrix-esp32.jpg","Comparisons","comparisons",[489,491,490,517,493,494],"Hardware",{"title":519,"description":520,"image":521,"categoryText":455,"categorySlug":454,"tags":522,"path":373},"3D-Printed ESP32 Enclosure Design Rules That Fit","How to design a 3D-printed ESP32 enclosure that fits: clearances, board holders, M3 screws, vents, antenna and PLA vs PETG, with real OpenGizmo numbers.","\u002Fimages\u002Fblog\u002F3d-printed-esp32-enclosure-design-guide.jpg",[523,490,492,494,517],"3D Printing",[525,529,533],{"name":514,"slug":515,"path":526,"count":527,"image":528},"\u002Fblog\u002Fcategories\u002Fcomparisons",8,"\u002Fimages\u002Fblog\u002Fesp32-ota-update-methods-compared.jpg",{"name":507,"slug":508,"path":530,"count":531,"image":532},"\u002Fblog\u002Fcategories\u002Ftroubleshooting",5,"\u002Fimages\u002Fblog\u002Fesp32-brownout-detector-was-triggered.jpg",{"name":534,"slug":535,"path":536,"count":537,"image":538},"Guides","guides","\u002Fblog\u002Fcategories\u002Fguides",11,"\u002Fimages\u002Fblog\u002Fcoingecko-api-esp32-rate-limits.jpg",{"title":28,"badge":540,"description":541,"path":27,"image":542,"cardIcon":543,"highlights":544},"Open-source ESP32 + MAX7219 project","A WiFi-connected crypto display built with an ESP32, a MAX7219 LED matrix, and a Nuxt 4 web app for browser-based setup and configuration.","\u002Fimages\u002Fprojects\u002Fgizmo-ticker\u002Fcover.webp","BitcoinIcon",[545,546,547],"Live crypto ticker","MAX7219 LED matrix","Web-based setup",1795018238083]