Here is version v8.27 of the Arduino ESP32 source code for this project:
The main source file:
hbg3.ino.v8.27.txt 281.2KB
22 downloads
Optional ethernet support:
eth.h.txt 17.18KB
14 downloads
There is no need to edit either file. If one wants Ethernet support, then place eth.h into the same Arduino Sketchbook folder as hbg3.ino and it will be discovered and used. Otherwise, if eth.h is not present, then hbg3.ino will build without Ethernet support. Automatically.
The eth.h file is not new: it is the same file (but now updated) that is normally part of the aio-hbg3 builds for the HomeBrew All-In-One (AIO) device.
New in this version of the firmware:
- Tighten up command parsing and also make it mostly case-independent, except for single-letter commands.
- Add new "send" command. Requires device and at least one (hex) command byte as args. Eg. send ALT fe
- Decode/display Evolution battery state when tracing.
- New 'D' command to toggle discarding of MC ACK responses to SSAG: reduces traffic on Relay bus.
- Reduce AUXBUS_TXQ_SIZE from 32 to 16; it rarely gets as high as 8; SSAG AutoGuiding may need more than 8.
- Add routing table: keep track of which devices are on which bus.
- p3000: Close connection before completing "reset" command.
- Ethernet: Add Ethernet support to HBG3. Uses same pins as Stepper Motor, so either/or for those two.
- Ethernet: Enable more than one client at a time for myDHCP Server.
So it's not just the new Ethernet stuff, but a big improvement (routing) for the HBG3-Relay devices, and upgrades to the Serial/Telnet debug commands.
https://www.amazon.com/dp/B0B7MLTGZ3/
https://www.amazon.com/dp/B07MYY7QW2/
The recommended Ethernet hardware is a Wiznet W5500 module, which will connect directly to the HBG3's SPI pins, and can be powered with 3.3V from the HBG3 I2C pads or, for Ethernet modules with a 5V regulator onboard, from the 5V pin of the HBG3. One literally just hooks up the six (6) jumper wires between the HBG3 and the Ethernet module, and it works. No fuss.
Note that the SPI pins are also the same multi-purpose pins used when wiring up a Stepper motor to the HBG3, so one can hook up ONLY one of Ethernet or Stepper Motor. The code will auto-detect which (if any) is connected, and do the Right Thing. Another thing to keep in mind, is that these Ethernet modules can sometimes interfere with GPS reception unless they are well shielded. See the HomeBrew All-In-One thread for details.
Flashable binaries (with Ethernet support) are in the usual places, including Over-The-Air (OTA, using WiFi) Firmware Update binaries for both the HBG3 and the AIO project. Fully pre-configured and patched HBG3_Arduino build packages are also available from the links at https://rtr.ca/hbg3/
Edited by mlord, 17 December 2023 - 11:19 PM.