Hello
Please see below a wiring diagram & parts list for my dancing robot. I was hoping that you knowledgeable folk could advise me whether
there are any improvements that I can make or good practices and circuit protection required. NOTE: The reason I have so many spare pins on the logic level converters is because some pins did not work so it was easier to add another unit.
My robot previously functioned well as anticipated, however since then I have added two more worm gear motors (with two BTS79060 drivers for each motor) and I changed two 2.8A Nema 23 stepper motors that were connected to a CNC shield with TMC2209's for two 4A Nema 23 stepper motors connected to two DM542T drivers. Since those changes it is clear that the robot is not happy about something, odd things happen intermittently like one 1.5A stepper motor moves by it self and judders, sometimes the 4A stepper does not move until the new worm gear motor stops moving, I have also had bootup issues where stepper motor coils energize before being enabled & I receive;
rst:0x10 (RTCWDT_RTC_RESEets Jul 29 2ets Jul 29 2019 12:21:46
rets Jul 29 2019 12:21:4ets Jul 29 2019 ets Jul 29 ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_Rets Jul ets Jul 29 2019 1ets ets Jul 2ets Jul
The Esp32 is powered by my laptop usb and I have not uploaded the code because it is several thousand lines long and as I said the functionality was previously working fine with the same code that I have duplicated for the new components.
22AWG wire used through out apart from 24v power connection to motor drivers and power connection to the dc motors where 16 or 18 AWG cables are being used.
OAS in the schematic stands for Obstacle Avoidance Sensor.
Thanks in advance.
1 X Power supply 240v to 24v 20A
[https://www.amazon.co.uk/dp/B09YLFNJHM?ref=ppx_yo2ov_dt_b_product_details&th=1]
2 X 1A DC 24V 25RPM Worm Gear Motor
[sourcingmap DC 24V 25RPM Worm Gear Motor 20kg-cm Reversible High Torque Speed Reduce Turbine Electric Gearbox Motor 8mm Shaft : Amazon.co.uk: Business, Industry & Science]
2 X 1A DC 24V 470RPM Worm Gear Motor
[sourcingmap DC 24V 470RPM 4Kg.cm Self-Locking Worm Gear Motor With Encoder And Cable, High Torque Speed Reduction Motor : Amazon.co.uk: Business, Industry & Science]
4 X Hailege BTS7960 43A Dual H-Bridge Stepper Motor
[https://www.amazon.co.uk/gp/product/B07Y4TTK3Z/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1]
2 X KINGPRINT TMC2209 V1.3 Stepper Motor Driver 2.8A
[KINGPRINT TMC2209 V1.3 Stepper Motor Driver 2.8A Peak Driver 3D Printer Parts for SKR V1.3 SKR PRO V1.1 (TMC2209 V1.2 6pcs) : Amazon.co.uk: Business, Industry & Science]
1 X CNC Shield V3.0 Expansion Board
[AZDelivery CNC Shield V3.0 Expansion Board Bundle, 4PCS A4988 Stepper Motor Drivers with 4PCS Heatsink Kits compatible with Arduino, 3D Printer Including E-Book! : Amazon.co.uk: Business, Industry & Science]
2 X Nema 17 Stepper Motor 42 1.5A
[Usongshine Nema 17 Stepper Motor 42 Motor 1.5A (17HS4401) High Torque 42N.cm (60oz.in) 42BYGH 1.8 Degree 4-Lead with 1m Cable and Connector for DIY CNC 3D Printer (Pack of 5) : Amazon.co.uk: Business, Industry & Science]
2 X Stepper CNC Kit Nema 23 4A Stepper Motor & Driver
[1 Axis Stepper CNC Kit 2.4Nm(339.87oz.in) Nema 23 Stepper Motor & Driver - 1-DM542T-23HS32 | StepperOnline]
4 X MCP23017 IO Expansion Board
[https://www.amazon.co.uk/gp/product/B08DFNR2JW/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1]
3 X TXS0108E 8 Channel Logic Level Converter Bi-Directional High Speed Full Duplex Shifter 3.3V 5V
[GeeekPi 6Pack TXS0108E 8 Channel Logic Level Converter Bi-Directional High Speed Full Duplex Shifter 3.3V 5V for Arduino Raspberry Pi : Amazon.co.uk: Computers & Accessories]
2 X 3.3V-5V 4 Channels Logic Level Converter Bi-Directional Shifter Module (Pack of 10) CYT1076
[Gebildet 10Pcs 3.3V-5V 4 Channels Logic Level Converter Bi-Directional Shifter Module (Pack of 10) CYT1076 : Amazon.co.uk: Business, Industry & Science]
1 X HD44780 1602 16x2 Serial LCD White Character Blue Backlight Display Board IIC PCF8574T I2C Adapter
[https://www.amazon.co.uk/gp/product/B07CQG6CMT/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1]
1 X 3A Buck Converter DC to DC Converter High Efficiency Voltage Regulator 3.0-40V to 1.5-35V
[Yizhet 5 Pack Buck Converter DC to DC Converter High Efficiency Voltage Regulator 3.0-40V to 1.5-35V Buck Converter Adjustable Power Supply Module : Amazon.co.uk: Business, Industry & Science]
2 X 2A LM2596S DC-DC Power Supply Adapter Step Down Module
[https://www.amazon.co.uk/gp/product/B07DP3JX2X/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1]
4 X Power Distribution Board 2 Inputs 13 Pairs Outputs for DC AC Voltage PCB007
[https://www.amazon.co.uk/gp/product/B0814B5P5M/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1]
1 X ESP32-DevKitC NodeMCU WiFi WLAN CP2102 ESP32-WROOM-32D
[https://www.amazon.co.uk/gp/product/B074RG86SR/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1]
1 X ESP32 Breakout Board ESP32 Expansion Board 38Pin
[XTVTX 2 Pcs ESP32 Breakout Board ESP32 Expansion Board 38Pin Development Board with Wireless WiFi Bluetooth for ESP-WROOM-32 Microcontroller Development Board : Amazon.co.uk: Business, Industry & Science]
2 X Bourns 128 Pulse Absolute Mechanical Rotary Encoder with a 6.35 mm Plain with Slot Shaft (Not Indexed)
[https://uk.rs-online.com/web/p/mechanical-rotary-encoders/2632918?cm_mmc=UK-PLA-DS3A-_-bing-_-PLA_UK_EN_Catch+All-_-Electronic+Components,+Power+%26+Connectors-_-2632918&matchtype=e&pla-4574724306713135&cq_src=google_ads&cq_cmp=554644865&cq_term=&cq_plac=&cq_net=o&cq_plt=gp&gclsrc=ds]
8 X IR Infrared Module 3-Wire
[https://www.amazon.co.uk/gp/product/B08DR1W3BK/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1]
AZDelivery 5 x KY-003 Digital Hall Effect Sensor
[https://www.amazon.co.uk/gp/product/B07V3S94HZ/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1]
2 X 3D Printer Limited Switch
[https://www.amazon.co.uk/gp/product/B07XDQ96FQ/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1]
16 X RGB LED 5050 Addressable WS2812B segments
[https://www.amazon.co.uk/gp/product/B0B39554LH/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1]
1 X Noctua NF-P12 redux-1300 PWM, Quiet Fan, 4-Pin, 1300 RPM
[Noctua NF-P12 redux-1300 PWM, Quiet Fan, 4-Pin, 1300 RPM (120mm, Grey) : Amazon.co.uk: Business, Industry & Science]