# ESC_BEMF_reference
## Description
So what is an ESC? Well, electronic speed controllers are used to control brushless motors, in thisc ase the motor has a triple phase input. To control this input, the ESC must apply a special sequence of LOWs and HIGHs signals in a predefined order. It has to conmutate very fast and by taht rotate the rotor of the motor. In this tutorial we will see how to control the rotation, the speed, detect the BEMF and by that know when to make the switch to the next step of the sequence. So this is a sensorless brushless motor speed controller since it uses no sensor to detect the rotor position. We will learn:
- The schematic and why we need each part
- Triple phase MOSFET bridge control
- BEMF detection and 0 cross
- Interrumprions and internal comparator of ATMEGA328
- PWM control
## Project Details
- **Owner:** jselfridge
- **Created:** 3/7/2023
- **Last Updated:** 3/7/2023
- **Visibility:** Public
- **Download the GERBERs:** http://electronoobs.com/eng_arduino_tut91_gerbers1.php
- **Tutorial website:** https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbnYwbDlMNXVucWt5T1BXd21hVnlBVXVjS0VpUXxBQ3Jtc0tuRHFod1kyZkNzaS02bER3NWxhNWNhMVBIM182YVZjejY3RE1qZXpVM0FYSWNJZnI0bF9HeU9TeWhJNUtsZHRmeFJVczh6bXZHbTVsc0s1S2lFOWtDZEdRX2lrXzZ5SGJCdjJVUVdiS1FKWXl0d1ktVQ&q=https%3A%2F%2Fwww.electronoobs.com%2Feng_arduino_tut91.php
- **ESC BOARD - PART LIST:** http://electronoobs.com/eng_arduino_tut91_parts1.php
- **Copies:** 1
## Key Components
### ? — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### ? — [USB micro](https://www.flux.ai/jharwinbarrozo/usb-micro-b~t8p.md)
- Manufacturer Name: GCT
- Manufacturer Part Number: USB3140-30-0170-0-C
**Pins:**
- D-
- D+
- GND
- ID
- VBUS
### ? — Label
**Pins:**
- P1
- P2
### ? — Label
**Pins:**
- P1
- P2
### ? — Label
**Pins:**
- P1
- P2
### 12V — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### 12V — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### 12V — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### 12V — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### 12V — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### A0 — Label
**Pins:**
- P1
- P2
### A1 — Label
**Pins:**
- P1
- P2
### A2 — Label
**Pins:**
- P1
- P2
### A3 — Label
**Pins:**
- P1
- P2
### A4 — Label
**Pins:**
- P1
- P2
### A5 — Label
**Pins:**
- P1
- P2
### A6 — Label
**Pins:**
- P1
- P2
### A7 — Label
**Pins:**
- P1
- P2
### AH — Label
**Pins:**
- P1
- P2
### AH — Label
**Pins:**
- P1
- P2
### AL — Label
**Pins:**
- P1
- P2
### AL — Label
**Pins:**
- P1
- P2
### BH — Label
**Pins:**
- P1
- P2
### BH — Label
**Pins:**
- P1
- P2
### BL — Label
**Pins:**
- P1
- P2
### BL — Label
**Pins:**
- P1
- P2
### Buzz — Label
**Pins:**
- P1
- P2
### Buzz — Label
**Pins:**
- P1
- P2
### Buzz — Label
**Pins:**
- P1
- P2
### BUZZ14 — [Buzzer](https://www.flux.ai/lwcassid/buzzer~ip.md)
**Pins:**
- undefined
- undefined
### CH — Label
**Pins:**
- P1
- P2
### CH — Label
**Pins:**
- P1
- P2
### CL — Label
**Pins:**
- P1
- P2
### CL — Label
**Pins:**
- P1
- P2
### D1 — [LED](https://www.flux.ai/jharwinbarrozo/led-tht~gr.md)
- Forward Voltage: 1.70
- Saturation Current: 93.2e-12A
- Emission Coefficient: 3.73
- Series Resistance: 0.42Ω
- Breakdown Voltage: 0V
**Pins:**
- ANODE
- CATHODE
### D12 — Label
**Pins:**
- P1
- P2
### D2 — [PN Junction Diode](https://www.flux.ai/jharwinbarrozo/pn-junction-diode~z7.md)
- Saturation Current: 1.88e-9A
- Emission Coefficient: 2.00
- Series Resistance: 0.0286Ω
- Breakdown Voltage: 50V
**Pins:**
- A
- K
### D21 — [LED](https://www.flux.ai/jharwinbarrozo/led-tht~gr.md)
- Emission Coefficient: 3.73
- Forward Voltage: 1.70
- Saturation Current: 93.2e-12A
- Series Resistance: 0.42Ω
- Breakdown Voltage: 0V
**Pins:**
- ANODE
- CATHODE
### D4 — [PN Junction Diode](https://www.flux.ai/jharwinbarrozo/pn-junction-diode~z7.md)
- Saturation Current: 1.88e-9A
- Emission Coefficient: 2.00
- Series Resistance: 0.0286Ω
- Breakdown Voltage: 50V
**Pins:**
- A
- K
### D5 — [PN Junction Diode](https://www.flux.ai/jharwinbarrozo/pn-junction-diode~z7.md)
- Breakdown Voltage: 50V
- Series Resistance: 0.0286Ω
- Emission Coefficient: 2.00
- Saturation Current: 1.88e-9A
**Pins:**
- A
- K
### D6 — Label
**Pins:**
- P1
- P2
### D6 — Label
**Pins:**
- P1
- P2
### DTR — Label
**Pins:**
- P1
- P2
### DTR — Label
**Pins:**
- P1
- P2
### FB — Label
**Pins:**
- P1
- P2
### FB — Label
**Pins:**
- P1
- P2
### J1 — [Connector 01x03](https://www.flux.ai/jharwinbarrozo/6c767f69-5799-eb75-ad6f-9e1bfe69ab96~we.md)
- Part Type: Connector
**Pins:**
- Pin_1
- Pin_2
- Pin_3
### J2 — [Connector 01x03](https://www.flux.ai/jharwinbarrozo/6c767f69-5799-eb75-ad6f-9e1bfe69ab96~we.md)
- Part Type: Connector
**Pins:**
- Pin_1
- Pin_2
- Pin_3
### J6 — [Pin Header 01x02 2.54mm Vertical](https://www.flux.ai/jharwinbarrozo/pin-header-01x02-254mm-vertical~4uy.md)
- Part Type: Connector
**Pins:**
- P1
- P2
### J9 — [Connector 01x05](https://www.flux.ai/jharwinbarrozo/connector-01x05~bpe.md)
- Part Type: Connector
**Pins:**
- Pin_1
- Pin_2
- Pin_3
- Pin_4
- Pin_5
### PhaseA — Label
**Pins:**
- P1
- P2
### PhaseA — Label
**Pins:**
- P1
- P2
### PhaseB — Label
**Pins:**
- P1
- P2
### PhaseB — Label
**Pins:**
- P1
- P2
### PhaseC — Label
**Pins:**
- P1
- P2
### PhaseC — Label
**Pins:**
- P1
- P2
### PWM_IN — Label
**Pins:**
- P1
- P2
### PWM_IN — Label
**Pins:**
- P1
- P2
### Q1 — [IRLR7843TRPBF](https://www.flux.ai/vasyl/e2dd2286-e60c-3f80-1400-ffed6839bf98~cu0.md)
- Manufacturer Part Number: IRLR7843TRPBF
- Manufacturer Name: Infineon Technologies AG
**Pins:**
- DRAIN
- GATE
- SOURCE
### Q11 — [IRLR7843TRPBF](https://www.flux.ai/vasyl/e2dd2286-e60c-3f80-1400-ffed6839bf98~cu0.md)
- Manufacturer Part Number: IRLR7843TRPBF
- Manufacturer Name: Infineon Technologies AG
**Pins:**
- DRAIN
- GATE
- SOURCE
### Q12 — [IRLR7843TRPBF](https://www.flux.ai/vasyl/e2dd2286-e60c-3f80-1400-ffed6839bf98~cu0.md)
- Manufacturer Part Number: IRLR7843TRPBF
- Manufacturer Name: Infineon Technologies AG
**Pins:**
- DRAIN
- GATE
- SOURCE
### Q13 — [IRLR7843TRPBF](https://www.flux.ai/vasyl/e2dd2286-e60c-3f80-1400-ffed6839bf98~cu0.md)
- Manufacturer Name: Infineon Technologies AG
- Manufacturer Part Number: IRLR7843TRPBF
**Pins:**
- DRAIN
- GATE
- SOURCE
### Q14 — [IRLR7843TRPBF](https://www.flux.ai/vasyl/e2dd2286-e60c-3f80-1400-ffed6839bf98~cu0.md)
- Manufacturer Part Number: IRLR7843TRPBF
- Manufacturer Name: Infineon Technologies AG
**Pins:**
- DRAIN
- GATE
- SOURCE
### Q2 — [IRLR7843TRPBF](https://www.flux.ai/vasyl/e2dd2286-e60c-3f80-1400-ffed6839bf98~cu0.md)
- Manufacturer Name: Infineon Technologies AG
- Manufacturer Part Number: IRLR7843TRPBF
**Pins:**
- DRAIN
- GATE
- SOURCE
### RESET — Label
**Pins:**
- P1
- P2
### RESET — Label
**Pins:**
- P1
- P2
### Rx — Label
**Pins:**
- P1
- P2
### RX — Label
**Pins:**
- P1
- P2
### RX — Label
**Pins:**
- P1
- P2
### Tx — Label
**Pins:**
- P1
- P2
### TX — Label
**Pins:**
- P1
- P2
### TX — Label
**Pins:**
- P1
- P2
### U1 — ATMEGA328-AU
- Manufacturer Part Number: ATMEGA328-AU
**Pins:**
- ADC6
- ADC7
- AREF
- AVCC
- GND
- GND
- GND
- PB0
- PB1
- PB2
- PB3
- PB4
- PB5
- PB6
- PB7
- PC0
- PC1
- PC2
- PC3
- PC4
- PC5
- PC6/~RESET
- PD0
- PD1
- PD2
- PD3
- PD4
- PD5
- PD6
- PD7
- VCC
- VCC
### U2 — [MP2307DN-LF-Z](https://www.flux.ai/vasyl/mp2307dn-lf-z~de9.md)
- Manufacturer Part Number: MP2307DN-LF-Z
**Pins:**
- BS
- COMP
- EN
- EP
- FB
- GND
- IN
- SS
- SW
### U3 — [IR2101S](https://www.flux.ai/vasyl/ir2101s~nqh.md)
- Datasheet URL: https://www.infineon.com/dgdl/Infineon-ir2101-DS-v01_00-EN.pdf?fileId=5546d462533600a4015355c7a755166c
- Manufacturer Part Number: IR2101S
- Manufacturer Name: Infineon Technologies AG
- Manufacturer Part Number: IR2101S
- Package or Case Code: 8-SOIC
**Pins:**
- COM
- HIN
- HO
- LIN
- LO
- VB
- VCC
- VS
### U4 — [IR2101S](https://www.flux.ai/vasyl/ir2101s~nqh.md)
- Manufacturer Part Number: IR2101S
- Package or Case Code: 8-SOIC
- Manufacturer Part Number: IR2101S
- Manufacturer Name: Infineon Technologies AG
- Datasheet URL: https://www.infineon.com/dgdl/Infineon-ir2101-DS-v01_00-EN.pdf?fileId=5546d462533600a4015355c7a755166c
**Pins:**
- COM
- HIN
- HO
- LIN
- LO
- VB
- VCC
- VS
### U5 — [IR2101S](https://www.flux.ai/vasyl/ir2101s~nqh.md)
- Package or Case Code: 8-SOIC
- Manufacturer Part Number: IR2101S
- Datasheet URL: https://www.infineon.com/dgdl/Infineon-ir2101-DS-v01_00-EN.pdf?fileId=5546d462533600a4015355c7a755166c
- Manufacturer Name: Infineon Technologies AG
- Manufacturer Part Number: IR2101S
**Pins:**
- COM
- HIN
- HO
- LIN
- LO
- VB
- VCC
- VS
### U6 — CH340C
- Manufacturer Part Number: CH340C
- Package or Case Code: 16-SOIC
- Datasheet URL: https://datasheet.lcsc.com/szlcsc/Jiangsu-Qin-Heng-CH340C_C84681.pdf
- Manufacturer Name: Wah
- Part Type: Integrated Circuit
**Pins:**
- ~CTS
- ~DCD
- ~DSR
- ~DTR
- ~RI
- ~RTS
- GND
- NC
- NC
- R232
- RXD
- TXD
- UD-
- UD+
- V3
- VCC
### VCC — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### VCC — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### VCC — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### VCC — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### VCC — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### VCC — [Power Symbol](https://www.flux.ai/usairemalamgeer/power-symbol~qr.md)
**Pins:**
- P1
### X1 — Label
**Pins:**
- P1
- P2
### X1 — Label
**Pins:**
- P1
- P2
### X2 — Label
**Pins:**
- P1
- P2
### X2 — Label
**Pins:**
- P1
- P2
### X3 — [Crystal Oscillator](https://www.flux.ai/jharwinbarrozo/crystal-oscillator~i9.md)
- Frequency: 16MHz
- Part Type: Oscillator
**Pins:**
- P1
- P2
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/jselfridge/escbemfreference~w7](https://www.flux.ai/jselfridge/escbemfreference~w7).*
---
*Generated from [https://www.flux.ai/jselfridge/escbemfreference~w7](https://www.flux.ai/jselfridge/escbemfreference~w7)*