Arduino UNO and TB6600-Based Automated Load Cell System with IR Sensor and Nema 17 Motor
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit design that includes various components such as Arduino UNOs, TB6600 stepper motor drivers, power supplies, sensors, and more. The circuit is designed to interface multiple sensors and actuators with microcontrollers to perform specific tasks. The document includes a component list, wiring details, and documented code for the microcontrollers.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
TB6600
- Description: A stepper motor driver.
- Pins: ENA-, ENA+, DIR-, DIR+, PUL-, PUL+, B-, B+, A-, A+, GND, VCC
12V Power Supply
- Description: A power supply providing 12V output.
- Pins: +, -
Nema 17
- Description: A stepper motor.
- Pins: A2(Black), A1(Green), b1(Red), B2(Blue)
IR Sensor
- Description: An infrared sensor.
- Pins: out, gnd, vcc
Load Cell - Red/White/Black/Green
- Description: A load cell for measuring weight.
- Pins: E+, A-, E-, A+
SparkFun Load Cell Amplifier - HX711
- Description: An amplifier for load cells.
- Pins: GND, CLK, DAT, VCC, YLW, GRN, WHT, BLK, RED, B-, B+
Current Sensor 5A
- Description: A sensor for measuring current up to 5A.
- Pins: 1, 2, GND, OUT, VCC
Toggle Switch SPST
- Description: A single-pole single-throw toggle switch.
- Pins: L1, COM
Pilot Lamp Green
- Description: A green pilot lamp.
- Pins: X1, X2
Pilot Lamp Red
- Description: A red pilot lamp.
- Pins: X1, X2
1 Channel Relay 5V
- Description: A single-channel relay module.
- Pins: VCC, GND, IN, NC, COM, NO
ADXXL335
- Description: An accelerometer sensor.
- Pins: VCC, X-OUT, Y-OUT, Z-OUT, GND
PR-Rotary Potentiometer
- Description: A rotary potentiometer.
- Pins: GND, OUT, VCC
Wiring Details
Arduino UNO
- GND connected to GND of IR Sensor
- GND connected to GND of SparkFun Load Cell Amplifier - HX711 (both instances)
- Vin connected to VCC of SparkFun Load Cell Amplifier - HX711 (both instances) and vcc of IR Sensor
- A0 connected to DAT of SparkFun Load Cell Amplifier - HX711 (instance 1)
- A1 connected to CLK of SparkFun Load Cell Amplifier - HX711 (instance 1)
- A2 connected to DAT of SparkFun Load Cell Amplifier - HX711 (instance 2)
- A3 connected to CLK of SparkFun Load Cell Amplifier - HX711 (instance 2)
- D2 connected to out of IR Sensor
- GND connected to COM of Toggle Switch SPST (both instances), ENA-, DIR-, PUL- of TB6600, and GND of Current Sensor 5A
- D4 connected to ENA+ of TB6600
- D3 connected to DIR+ of TB6600
- D2 connected to PUL+ of TB6600
- 5V connected to VCC of PR-Rotary Potentiometer, VCC of ADXXL335, VCC of 1 Channel Relay 5V, and VCC of Current Sensor 5A
- GND connected to GND of PR-Rotary Potentiometer, GND of 1 Channel Relay 5V, and GND of ADXXL335
- A0 connected to X-OUT of ADXXL335
- A1 connected to Z-OUT of ADXXL335
- A2 connected to OUT of PR-Rotary Potentiometer
- A3 connected to Y-OUT of ADXXL335
- A5 connected to OUT of Current Sensor 5A
- D7 connected to IN of 1 Channel Relay 5V
- D6 connected to L1 of Toggle Switch SPST (instance 1)
- D5 connected to L1 of Toggle Switch SPST (instance 2)
TB6600
- ENA-, DIR-, PUL- connected to GND of Arduino UNO
- ENA+ connected to D4 of Arduino UNO
- DIR+ connected to D3 of Arduino UNO
- PUL+ connected to D2 of Arduino UNO
- B- connected to B2 (Blue) of Nema 17
- B+ connected to b1 (Red) of Nema 17
- A- connected to A1 (Green) of Nema 17
- A+ connected to A2 (Black) of Nema 17
- GND connected to 2 of Current Sensor 5A
- VCC connected to X2 of Pilot Lamp Green, X2 of Pilot Lamp Red, COM of 1 Channel Relay 5V, and + of 12V Power Supply
12V Power Supply
- + connected to VCC of TB6600
- - connected to 1 of Current Sensor 5A
IR Sensor
- gnd connected to GND of Arduino UNO
- vcc connected to Vin of Arduino UNO
- out connected to D2 of Arduino UNO
Load Cell - Red/White/Black/Green
- E+ connected to RED of SparkFun Load Cell Amplifier - HX711 (both instances)
- A- connected to GRN of SparkFun Load Cell Amplifier - HX711 (both instances)
- E- connected to BLK of SparkFun Load Cell Amplifier - HX711 (both instances)
- A+ connected to WHT of SparkFun Load Cell Amplifier - HX711 (both instances)
SparkFun Load Cell Amplifier - HX711
- GND connected to GND of Arduino UNO (both instances)
- VCC connected to Vin of Arduino UNO (both instances)
- DAT connected to A0 of Arduino UNO (instance 1)
- CLK connected to A1 of Arduino UNO (instance 1)
- DAT connected to A2 of Arduino UNO (instance 2)
- CLK connected to A3 of Arduino UNO (instance 2)
- RED connected to E+ of Load Cell - Red/White/Black/Green (both instances)
- GRN connected to A- of Load Cell - Red/White/Black/Green (both instances)
- BLK connected to E- of Load Cell - Red/White/Black/Green (both instances)
- WHT connected to A+ of Load Cell - Red/White/Black/Green (both instances)
Current Sensor 5A
- 1 connected to - of 12V Power Supply
- 2 connected to GND of TB6600
- GND connected to GND of Arduino UNO
- OUT connected to A5 of Arduino UNO
- VCC connected to 5V of Arduino UNO
Toggle Switch SPST
- COM connected to GND of Arduino UNO
- L1 connected to D6 of Arduino UNO (instance 1)
- L1 connected to D5 of Arduino UNO (instance 2)
Pilot Lamp Green
- X1 connected to NO of 1 Channel Relay 5V
- X2 connected to VCC of TB660