Update Software README.md

This commit is contained in:
joshr120 2024-10-26 16:38:12 +13:00 committed by GitHub
parent 17e0bfe600
commit 6e9a9c1c6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,19 +10,8 @@ USB CDC on Boot should be set to "Enabled"
![upload settings](https://github.com/joshr120/PD-Stepper/assets/120012174/f002548a-ec56-4bae-93c7-10ec5e83b6d1)
## ESPHome: ##
The current ESPHome .yaml config file treats the TMC2209 as a a4988 driver as there is no TMC2209 intergration yet. The microsteps and PD voltage are set at startup by GPIO pins and the motor is driven via the STEP and DIR pins. A future intergration could allow for advanced TMC2209 features such as sensorless homing (Could also manually talk to the TMC2209 with the [UART Bus component](https://esphome.io/components/uart.html))
Other interfaces exposed to ESPHOME include the POWER GOOD signal, this is a signal indicating the PD Stepper is getting the requested voltage from the USB power supply. The 3 buttons on the side are also set up is binary sensors and the encoder position is read using the [AS5600 component](https://esphome.io/components/sensor/as5600.html).
## Arduino Serial Bug: HAS BEEN FIXED##
**This has been fixed but will leave it here for reference**
There was a software bug which did not allow serial communication over USB to work at the same time as programming. A program would fail to upload if Serial.begin() has previously been called.
There are a couple of work arounds for this;
- You can manaully enter bootloader mode by holding the BOOT button, pressing and releasing the RST button and then releasing the BOOT button.
- Alternatively software can be set up such Serial.begin() is only called on startup if a button is held at boot. This will allow USB serial commication on this power cycle but not programming (This was done in all example sketches previously). Could also be implemented the opposite way if you plan on using serial comms more often than uploading.
- This bug is not present when using ESPHome.