Hello. First SparkFun project, help needed.
Obtained a DMX to LED Shield, and ESP32 Thing Plus, attached stacking headers and installed/updated the libraries. Now I wish to start with Example2-DMXInput.ino and mod it to trigger a relay. The controller is not responding to DMX data over XLR cable. The compile-time messages are these.
In file included from C:\Users\Owner\Documents\Arduino\libraries\FastLED\src/FastLED.h:67,
from C:\Users\Owner\Documents\Arduino\Sketchbook\ESP32thing\DMXsolenoid\DMX_TriggerTest_01\DMX_TriggerTest_01.ino:17:
C:\Users\Owner\Documents\Arduino\libraries\FastLED\src/fastspi.h:145:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sketch uses 263717 bytes (20%) of program storage space. Maximum is 1310720 bytes.
Global variables use 17736 bytes (5%) of dynamic memory, leaving 309944 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.3
Serial port COM6
Connecting....
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:dd:57:67:39:e0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
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 0x00050fff...
Flash params set to 0x022f
Compressed 17440 bytes to 12090...
Writing at 0x00001000... (100 %)
Wrote 17440 bytes (12090 compressed) at 0x00001000 in 0.4 seconds (effective 335.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.1 seconds (effective 392.6 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 654.9 kbit/s)...
Hash of data verified.
Compressed 264112 bytes to 147151...
Writing at 0x00010000... (11 %)
Writing at 0x0001c5e5... (22 %)
Writing at 0x00024d80... (33 %)
Writing at 0x0002a471... (44 %)
Writing at 0x0002f875... (55 %)
Writing at 0x00034d61... (66 %)
Writing at 0x0003e1e6... (77 %)
Writing at 0x0004594b... (88 %)
Writing at 0x0004ae82... (100 %)
Wrote 264112 bytes (147151 compressed) at 0x00010000 in 2.4 seconds (effective 885.5 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
To the example code I added some serial prints and instructions to blink LED-13 in response to incoming data. The serial output shows this.
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13160
load:0x40080400,len:3036
entry 0x400805e4
E (10) timer_group: timer_init(273): HW TIMER divider outside of [2, 65536] range error
E (10) timer_group: timer_set_counter_value(86): HW TIMER NEVER INIT ERROR
E (14) timer_group: timer_start(97): HW TIMER NEVER INIT ERROR
E (19) timer_group: timer_isr_callback_add(227): HW TIMER NEVER INIT ERROR
E (26) timer_group: timer_set_alarm_value(155): HW TIMER NEVER INIT ERROR
E (32) timer_group: timer_set_auto_reload(132): HW TIMER NEVER INIT ERROR
E (39) timer_group: timer_set_alarm(179): HW TIMER NEVER INIT ERROR
initialized...
0
The controller detects only an unchanging zero value on all DMX channels involved.
My small voltmeter shows that 5V of USB power is present on the shield’s push terminals.
DMX data does correctly pass through the shield to other lights wired in the chain.
I suspect that the compile-time warning about undefined hardware SPI pins may be part of the issue. This message appears even when compiling the unmodified example code. How should I define these pins? Is that relevant to the problem? I haven’t seen this warning mentioned in other forum topics. Thanks for reading.
Hallelujah!
Disciple