Skip to content

Commit 668160f

Browse files
Merge pull request #24 from simplefoc/dev
Update docs for 2.3.2 release
2 parents 497f638 + aa8baca commit 668160f

File tree

8 files changed

+816
-18
lines changed

8 files changed

+816
-18
lines changed

README.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,52 @@
11
# simplefoc.github.io
2+
23
Documentation website for SimpleFOCproject
34

45
- [Documentation](https://docs.simplefoc.com)
56
- [Community forum](https://community.simplefoc.com)
67
- [Shop](https://simplefoc.com/shop)
78

8-
99
## Running the site using anaconda environement
1010

1111
Nice tutorial: https://s-canchi.github.io/2021-04-30-jekyll-conda/
1212

1313
First create the new anaconda environmnet using the `environment.yaml`file
14+
1415
```
15-
conda env create -f environment.yaml
16+
conda env create -f environement.yaml
1617
conda activate simpledocs
1718
```
1819

1920
Once in the environment `simpledocs` install jekyll
21+
2022
```
2123
gem install jekyll bundler
2224
```
25+
2326
Then install necessary jekyll dependencies of the simplefoc docs:
27+
2428
```
29+
# Optionally specify "--path /some/other/dir" to avoid needing root.
2530
bundle install
2631
```
32+
2733
And you're ready to go!
2834

2935
Just make sure that whenever you open your terminal to generate the website to activate the conda environment:
3036
```
3137
conda activate simpledocs
3238
```
3339

34-
35-
## Generating the website
40+
## Generating the website
3641

3742
To generate the site locally clone the repo to your local directory and then open terminal inside the repo folder and run:
43+
3844
```
3945
bundle exec jekyll serve
4046
```
47+
4148
Since the site is quiet large sometimes the `--incremental` flag helps with faster execution
49+
4250
```
4351
bundle exec jekyll serve --incremental
4452
```
@@ -50,4 +58,4 @@ bundle exec jekyll serve --incremental
5058
- `url: "http://olddocs.simplefoc.com" `
5159
- `baseurl: "v2.2.3"`
5260
3) run `bundle exec jekyll build`
53-
4) in `_site` you have the generated html
61+
4) in `_site` you have the generated html

docs/simplefoc_library/hardware/motors/index.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,17 @@ Arduino <span class="simple">Simple<span class="foc">FOC</span>library</span> su
2525
- 2 phase (4 wire)
2626

2727
## 📢 Make sure to read this before running any motor!
28+
2829
Before running any BLDC motor with the <span class="simple">Simple<span class="foc">FOC</span>library</span> please make sure your hardware can handle the currents your motor requires.
2930

30-
The simplest way to do it is by checking the motor phase resistance `R`. Either check the datasheet of your motor and search for the resistance value or measure it yourself using a multimeter. Then check the value of your power supply voltage `V_dc` and once when you have the values you can find the maximum current `I_max` value by calculating:
31+
The simplest way to do it is by checking the motor phase resistance `R`. Either check the datasheet of your motor and search for the resistance value or [measure it yourself using a multimeter](phase_resistance).
32+
33+
Then check the value of your power supply voltage `V_dc` and once when you have the values you can find the maximum current `I_max` value by calculating:
34+
3135
```cpp
3236
I_max = V_dc/R
3337
```
38+
3439
Finally check the value of the maximum current `I_max` with the datasheet of your driver board. If the `I_max` is too high you can lower the power supply voltage `V_dc` in order prevent too high peaks of the current. If you are not able to change your power supply voltage you can limit the voltage set to motor in software.
3540
<blockquote class="warning">
3641
<p class="heading">NOTE</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
layout: default
3+
title: Phase resistance
4+
nav_order: 3
5+
description: "Arduino Simple Field Oriented Control (FOC) library ."
6+
permalink: /phase_resistance
7+
parent: Motors
8+
grand_parent: Supported Hardware
9+
grand_grand_parent: Arduino <span class="simple">Simple<span class="foc">FOC</span>library</span>
10+
---
11+
12+
# Phase resistance
13+
14+
The term "phase resistance" may lend itself to some ambiguity, in both meaning and method for measurement. This page attempts to explain how to measure its value, which is required by several of the control algorithms in SimpleFOC.
15+
16+
In this documentation, phase resistance corresponds to the resistance of a single coil inside your motor, measured in Ohms. The line resistance is the resistance between two (non-center) motor leads.
17+
18+
## Identification of 3-phase motors
19+
20+
In the case of 3-phase BLDC motors, you first need to learn whether the motor is wound in a Wye (a.k.a "star") or Delta configuration. Once you know that, it's simple maths to compute the phase resistance from the phase-to-phase measurement.
21+
22+
Additionally, a 3-phase motor may expose 3 or 4 leads, which will affect how phase resistance is measured. In the case of a wye/star motor, the fourth lead corresponds to the center point (a.k.a. "star point"), and will show the least resistance when measured against the other leads.
23+
24+
![3-phase-configurations.svg](extras/Images/3-phase-configurations.svg)
25+
26+
> Common configurations for 3-phase motors ([source](https://en.wikipedia.org/wiki/File:Delta-Star_Transformation.svg)).
27+
28+
## Procedure
29+
30+
Steps to measure phase resistance for different coil configurations and number of leads. You'll need a multi-meter that can measure resistance and your wits.
31+
32+
### 3-wire Wye/Star
33+
34+
Diagram:
35+
36+
![3-phase-3-wire-star.svg](extras/Images/3-phase-3-wire-star.svg "3-phase-3-wire-star.svg")
37+
38+
Procedure:
39+
40+
1. Use a multi-meter to measure the resistance across any pair of leads (in Ohms), this is referred to as the "line resistance". All three possible pairs of leads must show the same resistance.
41+
2. **Divide the measurement by two** to obtain the final value for the phase resistance of your motor.
42+
43+
> In Wye/Star configuration, you're measuring two phases at once across each pair, so the measured resistance must be divided by `2`.
44+
45+
### 4-wire Wye/Star
46+
47+
Diagram:
48+
49+
![3-phase-4-wire-star.svg](extras/Images/3-phase-4-wire-star.svg)
50+
51+
In this case, you'll need to first identify the lead connected to the "center point" (labeled `N_abc` in the diagram above).
52+
53+
Procedure:
54+
55+
1. Use a multi-meter to measure the resistance across all pairs of leads (in Ohms), looking for a lead with exactly half the resistance than the lead pairs that exclude it.
56+
2. The resistance between the lead with the least resistance is connected to the "center point". Label it appropriately.
57+
3. Measure the resistance across the center point you just identified and any of the remaining three leads. This value is the phase resistance of your motor.
58+
59+
> In a 4-wire Wye/Star configuration, the resistance between the center point (4-th lead) and any of the three main leads is the phase resistance, because the measurement does not involve any of the other phases.
60+
61+
### 3-wire Delta
62+
63+
Diagram:
64+
65+
![3-phase-3-wire-delta.svg](extras/Images/3-phase-3-wire-delta.svg)
66+
67+
Procedure:
68+
69+
1. Use a multi-meter to measure the resistance across all pairs of leads (in Ohms). All measurements must be equal.
70+
2. **Multiply the measurement by 1.5** to obtain the final value for the phase resistance of your motor.
71+
72+
> In Delta configuration, you measure all phases at once; one of them being in parallel with the remaining two in series. Since all phase resistances are equal, the measurement must be multiplied by `1.5`.
+147
Loading

0 commit comments

Comments
 (0)