Mac Mini Setup #191
Replies: 34 comments 56 replies
-
Late 2012 Mac Mini is a masterpiece of engineering made by people for people, anyone who loves silence & good performance or had opportunity to disassembly it appreciates it. BTW probably I've found very cheap substitute for Rpi but I'm waiting for my order from China to arrive. But it won't be as powerful and capable as Rpi or Mac.
|
Beta Was this translation helpful? Give feedback.
-
Your diagram looks good. You need:
You need also standard "common ground": the ground of the ESP32 (from its pinout) should be connected to the "minus" from the LED strip power supply, that is also connected to the "minus" of the LED strip. Without it very bad things could happen. |
Beta Was this translation helpful? Give feedback.
-
Technically CP2102N should be able to achieve 2Mb serial port speed. Otherwise any of HyperSerial firmware won't work. But... I haven't tested it and no user has reported any update about that chip either, so nobody will guarantee it will work. I know that esphome-flasher has a version for macOS but I didn't test it. ESP in our project is just a controller using 3.3V GPIO and that's why level shifter (3.3V ESP to 5V LED) must be purchased or DIY like in the above links. |
Beta Was this translation helpful? Give feedback.
-
@awawa-dev Hi, it's me again! I'm slowly inching along in this project. My ESP32 board finally came and it seems like it flashed okay, but then I have all these "invalid header" messages at the end of the log. Should I continue with my setup, or will this board not work? Thanks for your help! Using '/dev/cu.usbmodem14201' as serial port. Chip Info:
Leaving... Showing logs: |
Beta Was this translation helpful? Give feedback.
-
Hi But first you need to put your ESP32 board into download mode, otherwise esphome-flasher won't be able to flash or detect it. |
Beta Was this translation helpful? Give feedback.
-
Maybe your board come without the bootloader also. You can read about it here: https://kno.wled.ge/basics/install-binary/ |
Beta Was this translation helpful? Give feedback.
-
I held down the boot button, then simultaneously hit reset. I tried ESPHome
again and got this message:
Using '/dev/cu.usbmodem12401' as serial port.
Connecting...
Detecting chip type... ESP32-S3
Connecting...
Chip Info:
- Chip Family: ESP32
- Chip Model: ESP32-S3
- Number of Cores: 1
- Max CPU Frequency: 80MHz
- Has Bluetooth: NO
- Has Embedded Flash: NO
- Has Factory-Calibrated ADC: NO
- MAC Address: 84:F7:03:C0:34:24
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
- Flash Size: 8MB
- Flash Mode: dio
- Flash Frequency: 80MHz
Erasing flash (this may take a while)...
Chip erase completed successfully in 1.2s
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00050fff...
Unexpected chip id in image. Expected 9 but value was 0. Is this image for
a different chip model?
Flash params set to 0x023f
Compressed 15856 bytes to 10276...
Writing at 0x00001000... (100 %)Wrote 15856 bytes (10276 compressed) at
0x00001000 in 0.2 seconds (effective 530.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Writing at 0x00008000... (100 %)Wrote 3072 bytes (144 compressed) at
0x00008000 in 0.0 seconds (effective 805.1 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)Wrote 8192 bytes (47 compressed) at
0x0000e000 in 0.1 seconds (effective 1061.7 kbit/s)...
Hash of data verified.
Compressed 262880 bytes to 113931...
Writing at 0x0004a719... (100 %)Wrote 262880 bytes (113931 compressed) at
0x00010000 in 2.4 seconds (effective 861.6 kbit/s)...
Hash of data verified.
Leaving...
Hard Resetting...
Hard resetting via RTS pin...
Done! Flashing is complete!
Showing logs:
Seems successful?
…On Wed, Feb 2, 2022 at 10:56 AM Awawa ***@***.***> wrote:
It seems that your board is equipped with dedicated download mode button
so no need for grounding GPIO 0:
*Boot Button: Download button. Holding down Boot and then pressing Reset
initiates Firmware Download mode for downloading firmware through the
serial port.*
—
Reply to this email directly, view it on GitHub
<#191 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATLNE5ECXPZVFNTTN5GSILLUZF45BANCNFSM5L3CP3KQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is what I've got coming out of the Arduino Serial Monitor:
11:58:11.362 -> invalid header: 0ESP-ROM:esp32s3-20210327
11:58:11.362 -> Build:Mar 27 2021
11:58:11.362 -> rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
11:58:11.362 -> Saved PC:0x40048839
11:58:11.362 -> invalid header: 0xffffffff
This last line repeats
…On Wed, Feb 2, 2022 at 11:50 AM Awawa ***@***.***> wrote:
We will see ;) What firmware did you use? HyperSerialESP32?
We need to connect now to ESP to confirm it.
I prefer Arduino IDE's serial port monitor but every serial port client
should be enough. For example putty. Select proper serial port and speed
(2000000 for HyperSerialESP32). If nothing happens press reset to see if
there is some output.
[image: obraz]
<https://user-images.githubusercontent.com/69086569/152226203-660993f4-b9e3-423a-9d29-3df53f52b360.png>
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATLNE5A4Z365STRAWDYSCSLUZGDJBANCNFSM5L3CP3KQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The same problem. Still not sure if it's firmware or missing bootloader. Put it into download mode again and upload WLED for s2 firmware-esp32s2_saola (extract it before flashing) https://github.com/Aircoookie/WLED/actions/runs/1785795633 It's fresh port for that s2 platform, maybe s3 will work too. |
Beta Was this translation helpful? Give feedback.
-
Okay, I flashed using firmware-esp32s2_saola (from the bin file, not the
bin.gz if that makes a difference). Got this message in ESPHome
Using '/dev/cu.usbmodem12401' as serial port.
Connecting...
Detecting chip type... ESP32-S3
Connecting...
Chip Info:
- Chip Family: ESP32
- Chip Model: ESP32-S3
- Number of Cores: 1
- Max CPU Frequency: 80MHz
- Has Bluetooth: NO
- Has Embedded Flash: NO
- Has Factory-Calibrated ADC: NO
- MAC Address: 84:F7:03:C0:34:24
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
- Flash Size: 8MB
- Flash Mode: qio
- Flash Frequency: 80MHz
Erasing flash (this may take a while)...
Chip erase completed successfully in 1.4s
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0010cfff...
Unexpected chip id in image. Expected 9 but value was 0. Is this image for
a different chip model?
Flash params set to 0x003f
Compressed 17392 bytes to 11185...
Writing at 0x00001000... (100 %)Wrote 17392 bytes (11185 compressed) at
0x00001000 in 0.3 seconds (effective 515.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Writing at 0x00008000... (100 %)Wrote 3072 bytes (144 compressed) at
0x00008000 in 0.0 seconds (effective 791.1 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)Wrote 8192 bytes (47 compressed) at
0x0000e000 in 0.1 seconds (effective 1047.5 kbit/s)...
Hash of data verified.
Compressed 1034528 bytes to 727155...
Writing at 0x0010a6b4... (100 %)Wrote 1034528 bytes (727155 compressed) at
0x00010000 in 11.5 seconds (effective 717.7 kbit/s)...
Hash of data verified.
Leaving...
Hard Resetting...
Hard resetting via RTS pin...
Done! Flashing is complete!
Showing logs:
Serial port closed!
And then in Arduino Serial Monitor, I'm seeing this:
13:21:56.045 -> invalid header: 0ESP-ROM:esp32s3-20210327
13:21:56.045 -> Build:Mar 27 2021
13:21:56.045 -> rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
13:21:56.045 -> Saved PC:0x40048841
13:21:56.045 -> invalid header: 0xffffffff
Repeting.
…On Wed, Feb 2, 2022 at 12:39 PM Awawa ***@***.***> wrote:
The same problem. Still not sure if it's firmware or missing bootloader.
Put it into download mode again and upload WLED for s2
firmware-esp32s2_saola (extract it before flasshing)
https://github.com/Aircoookie/WLED/actions/runs/1785795633 It's fresh
port for that s2 platform, maybe s3 will work too.
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATLNE5BHL3BTW5ZX77TU5OTUZGJAXANCNFSM5L3CP3KQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Then probably we must wait till Arduino-ESP32 will provide official support for that board (it's around a corner): espressif/arduino-esp32#5594 |
Beta Was this translation helpful? Give feedback.
-
I can get the following boards by tomorrow if any of these might work
better:
ESP32-DevKitM-1 Development Board
ESP32-DevKitM-1U Development Board
ESP32-DevKitC-DA Development Board
ESP32-PICO-DevKitM-2U Development
What do you think?
…On Wed, Feb 2, 2022 at 1:52 PM Awawa ***@***.***> wrote:
Then probably we must wait till Arduino-ESP32 will provide official
support for that board (it's around a corner):
espressif/arduino-esp32#5594
<espressif/arduino-esp32#5594>
I check it now in Arduino IDE and currently I can't select that board. The
second question is if makuna/neopixelbus library is compatible with that
board also.
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATLNE5F24T4R5FLWYHVHKXLUZGRTBANCNFSM5L3CP3KQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
These are development boards I don't know (I'm using generic ESP32 boards). Probably as long as they belong to ESP32 line they will work, ESP32-S2/S3/C3 are completely different boards. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Pardon the cursing, but holy shit! This is exciting! On to the next set of
problems to solve ;)
Thank you for all your help! It really is quite remarkable how available
you are and dedicated to making your ideas available to everyone. I
appreciate it very much.
…On Thu, Feb 3, 2022 at 10:31 AM Awawa ***@***.***> wrote:
Yes, great job! You have just finished LED software & firmware
configuration part. Everything is ready for connecting the LED strip.
—
Reply to this email directly, view it on GitHub
<#191 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATLNE5CYWCLZGXTP2SP7ADTUZLCWRANCNFSM5L3CP3KQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Do you know if there’s a very detailed guide somewhere for how to wire the
Esp32/level shifter/LEDs/power supply all together? Like, for someone who
knows nothing about electronic engineering and just wants to follow
something step by step?
…On Thu, Feb 3, 2022 at 10:32 AM Steve Yager ***@***.***> wrote:
Pardon the cursing, but holy shit! This is exciting! On to the next set of
problems to solve ;)
Thank you for all your help! It really is quite remarkable how available
you are and dedicated to making your ideas available to everyone. I
appreciate it very much.
On Thu, Feb 3, 2022 at 10:31 AM Awawa ***@***.***> wrote:
> Yes, great job! You have just finished LED software & firmware
> configuration part. Everything is ready for connecting the LED strip.
>
> —
> Reply to this email directly, view it on GitHub
> <#191 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ATLNE5CYWCLZGXTP2SP7ADTUZLCWRANCNFSM5L3CP3KQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
PDF for higher resolution: |
Beta Was this translation helpful? Give feedback.
-
Yes! Thank you so much!!
…On Fri, Feb 4, 2022 at 3:13 AM Awawa ***@***.***> wrote:
I think that should help:
[image: sk6812_esp32 2_bb]
<https://user-images.githubusercontent.com/69086569/152519584-c49ab3b2-cb30-4ee2-b907-3b1a5e9f7d54.png>
PDF for higher resolution:
Untitled Sketch 2_bb.pdf
<https://github.com/awawa-dev/HyperHDR/files/8002521/Untitled.Sketch.2_bb.pdf>
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATLNE5DJANITRVMCSP5SKXTUZOYHHANCNFSM5L3CP3KQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Amateur question… I’m I using 22 awg hookup wire for everything? Should I
use stranded or solid copper? Thank you!
…On Fri, Feb 4, 2022 at 7:28 AM Steve Yager ***@***.***> wrote:
Yes! Thank you so much!!
On Fri, Feb 4, 2022 at 3:13 AM Awawa ***@***.***> wrote:
> I think that should help:
> [image: sk6812_esp32 2_bb]
> <https://user-images.githubusercontent.com/69086569/152519584-c49ab3b2-cb30-4ee2-b907-3b1a5e9f7d54.png>
>
> PDF for higher resolution:
> Untitled Sketch 2_bb.pdf
> <https://github.com/awawa-dev/HyperHDR/files/8002521/Untitled.Sketch.2_bb.pdf>
>
> —
> Reply to this email directly, view it on GitHub
> <#191 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ATLNE5DJANITRVMCSP5SKXTUZOYHHANCNFSM5L3CP3KQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks for this! Another newbie question. If I'm just checking everything
out on a breadboard before I solder things to a perf board, does the larger
awg wire fit into the holes on the breadboard or do I join the thicker wire
to the thinner wire that's going into the breadboard? I'm assuming once I
go to actually solder everything, I can just solder the thicker wire to the
board, right?
Thanks!
…On Sat, Feb 5, 2022 at 8:15 AM Awawa ***@***.***> wrote:
Stranded cable. But I usually mix them (I find solid copper are easier to
solder to connect LED segments on the frame).
For segments from power supply to LED strip and between LED strip segment:
power lines +5V cables and GND are needed to be thick.
[image: obraz]
<https://user-images.githubusercontent.com/69086569/152649324-fe95f586-1b8d-4128-8aa5-2875b817b78c.png>
Since I live in EU they are differently branded but usually I choose cable
that in AWG16-AWG17 range for delivering the power. Signal cables may be
much thinner, since the their current is minimal.
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATLNE5C7A2E25HPFYFFLE6LUZVELVANCNFSM5L3CP3KQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Well, @awawa-dev I'm back. And not with good news. Hoping you might be able to help me! I transferred everything to perf board. I tested the continuity on all my connections with my multimeter. And before I taped it all to my frame, I decided to plug it into the computer and be sure it was all working first. This is what I'm getting with doing a HyperHDR effect pattern: IMG_1268.mp4Is it possible I fried the data pad or something? I opened up the serial monitor and I got this: Here's my wiring: The perf board has continuous copper connection on the back of each row, which is why some of my wires are on other columns. |
Beta Was this translation helpful? Give feedback.
-
@awawa-dev I'm preparing my new layout and wondering which of these wiring diagrams you think is the best choice. 1) 1OE and GND from level shifter are connected to ESP GND. Then GND from ESP is soldered to LED GND and one wire goes to a single V- terminal. 2 All GND wires are going separately to the V- terminals. 3 Only the LED GND wire is going separately to the V- terminal. ESP and Level shifter are going as one wire. Does it even matter?? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Okay, thanks! I appreciate it. I'll stick with the SN74AHCT125N.
…On Tue, Feb 15, 2022 at 1:49 PM Awawa ***@***.***> wrote:
Since this setup was built, I switched to the SN74AHCT125N, tested it
extensively, used it on a daily basis, and I can say it's reliable.
Sacrificial pixel level shifter (LED driver like esp32/esp8266 is still
needed, works with both) was also good solution but SN74AHCT125N is more
"professional" ;) And you don't need to modify your HyperHDR LED geometry
scheme to include that single sacrificial LED in your configuration.
—
Reply to this email directly, view it on GitHub
<#191 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATLNE5C2EQNQEZCWEVYMHALU3LC5FANCNFSM5L3CP3KQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@awawa-dev I'm back with some good news (mostly)! I got everything working again. The effects are working great and the USB grabber was working great. I watched some tests on YouTube and it all seemed to be working. But then I was poking around in the settings and clicked "Screen Capturing" under the advanced settings and hit allow even though I didn't know what it was for. Now I can only play effects and I am not getting anything mirroring the TV. When I hit "clear" in the HyperHDR bar the LEDs only turn off. |
Beta Was this translation helpful? Give feedback.
-
Transfer to the perf board was successful! Now to mount it to the frame and solder 🙏 |
Beta Was this translation helpful? Give feedback.
-
@awawa-dev I can't thank you enough for all your help. I'm finally done. I'm still absolutely blown away by how available you were during this whole process. A million thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm planning my setup and wanted to get some advice.
I bought a late 2012 Mac Mini since Rpi's are all out of stock. I'm planning on using my Yamaha RX-A2A receiver's HDMI out as the video source. And I'm planning on using SK6812 LEDs.
What other hardware do I need to complete my setup? I've been looking around, but I'm not as experienced as I need to be to decipher all the options.
I want to get the lowest latency possible and be able to use a 4k HDR HDCP coming from the Yamaha receiver.
Any help would be greatly appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions