Skip to content

Commit 53c8618

Browse files
authored
Merge pull request #33 from simplefoc/next_release
Next release
2 parents ee92cbf + b28c7b0 commit 53c8618

File tree

147 files changed

+4625
-577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+4625
-577
lines changed

_config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ ga_tracking: UA-55976594-3
5353

5454
plugins:
5555
- jekyll-seo-tag
56+
- jekyll-toc
5657

5758
compress_html:
5859
clippings: all
@@ -61,3 +62,8 @@ compress_html:
6162
startings: []
6263
blanklines: false
6364
profile: false
65+
66+
toc:
67+
ordered_list: false
68+
list_class: toc-li
69+
sublist_class: toc-li

_includes/js/custom.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,12 @@ var classNames = [
6565
"BLDCMotor",
6666
"StepperMotor",
6767
"BLDCDriver3PWM",
68+
"SimpleFOCDebug",
6869
"BLDCDriver6PWM",
6970
"StepperDriver4PWM",
7071
"StepperDriver2PWM",
72+
"BLCDriverXPWM",
73+
"StepperDriverXPWM",
7174
"Encoder",
7275
"MagneticSensor",
7376
"MagneticSensorSPI",
@@ -178,7 +181,8 @@ var funcNames = [
178181
"scalar",
179182
"motion",
180183
"target",
181-
"motor"
184+
"motor",
185+
"SIMPLEFOC_DEBUG"
182186

183187
];
184188
var structNames = [
@@ -271,4 +275,20 @@ jtd.onReady(function(){
271275

272276
e.innerHTML = str;
273277
});
274-
});
278+
});
279+
280+
281+
282+
function show(id,cls){
283+
Array.from(document.getElementsByClassName(cls)).forEach(
284+
function(e){e.style.display = "none";});
285+
console.log(Array.from(document.getElementsByClassName(cls+"-"+id)));
286+
Array.from(document.getElementsByClassName(cls+"-"+id)).forEach(
287+
function(e){e.style.display = "block";});
288+
Array.from(document.getElementsByClassName("btn-"+cls)).forEach(
289+
function(e){e.classList.remove("btn-primary");});
290+
Array.from(document.getElementsByClassName("btn-"+id)).forEach(
291+
function(e){e.classList.add("btn-primary");});
292+
var elmnt = document.getElementById("btn-"+id);
293+
if(elmnt) elmnt.classList.add("btn-primary");
294+
}

_layouts/default.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,23 @@
127127
</nav>
128128
{% endif %}
129129
{% endunless %}
130-
<div id="main-content" class="page-content" role="main" tabindex="0">
131-
{% if site.heading_anchors != false %}
130+
<div id="main-content" class="page-content" role="main" tabindex="0">
131+
{% if page.toc == true %}
132+
<details open markdown="block" class="inpage_toc">
133+
<summary class="text-delta">
134+
<span class="on_this_page_big">On this page</span>
135+
<span class="marker-closed hide">
136+
<i class="fa fa-chevron-down"></i>
137+
</span><span class="marker-open">
138+
<i class="fa fa-chevron-left"></i>
139+
</span>
140+
</summary>
141+
{{ content | toc_only }}
142+
</details>
143+
{% endif %}
144+
{% if site.heading_anchors != false %}
132145
{% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#link\"></use></svg>" anchorClass="anchor-heading" %}
133-
{% else %}
146+
{% else %}
134147
{{ content }}
135148
{% endif %}
136149
{% if page.has_children == true and page.has_toc != false %}

_sass/overrides.scss

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,4 +433,80 @@ a.remove_dec{
433433
.inline_block_top{
434434
display: inline-block;
435435
vertical-align: top;
436+
}
437+
438+
.hide {
439+
display: none;
440+
}
441+
442+
443+
444+
// custom inpage toc
445+
.inpage_toc {
446+
position:fixed;
447+
right:20px;
448+
background-color: rgb(252, 252, 252);
449+
padding: 10px;
450+
max-width: 300px;
451+
z-index: 100;
452+
}
453+
.inpage_toc a {
454+
text-overflow: ellipsis;
455+
white-space: normal !important;
456+
}
457+
458+
.inpage_toc {
459+
margin: 0.2em;
460+
margin-left: 0.7em;
461+
padding: 5px;
462+
padding-left: 10px;
463+
border-right: 5px solid;
464+
border-radius: 3px;
465+
color: #686969;
466+
opacity: 0.95;
467+
}
468+
.inpage_toc summary{
469+
cursor: pointer;
470+
font-size: 1em !important;
471+
// text-transform: none !important;
472+
color: #686969;
473+
margin: 10px;
474+
}
475+
.inpage_toc ul{
476+
list-style-type: none; /* Remove bullets */
477+
}
478+
details[open] .marker-open {
479+
display: inline;
480+
}
481+
details[open] .marker-closed {
482+
display: none;
483+
}
484+
details .marker-open {
485+
display: none;
486+
}
487+
details .marker-closed {
488+
display: inline;
489+
}
490+
491+
.inpage_toc .marker-closed{
492+
float: right;
493+
}
494+
.inpage_toc .marker-open{
495+
float: right;
496+
}
497+
#toc li {
498+
// margin: 0px;
499+
font-size: 0.95em;
500+
}
501+
/* Styles for larger screens (default open) */
502+
@media (min-width: 768px) {
503+
.inpage_toc{
504+
display: block;
505+
}
506+
}
507+
/* Styles for smaller screens (default closed) */
508+
@media (max-width: 767px) {
509+
.inpage_toc{
510+
display: none;
511+
}
436512
}

docs/boards/index.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ nav_order: 2
66
permalink: /boards
77
has_children: true
88
has_toc: false
9+
toc: true
910
---
1011

1112
# <span class="simple">Simple<span class="foc">FOC</span> Boards</span>
@@ -33,7 +34,7 @@ In addition to the official boards, there are many other boards compatible with
3334
These boards are designed to be compatible with the Arduino UNO R3 headers, enabling an easy to start experience with the <span class="simple">Simple<span class="foc">FOC</span>library</span> and the Arduino IDE. The boards can be used with any board with the standard Arduino headers, such as the Arduino MEGA, STM32 Nucleo boards, Adafruit Metro, ESP32 D1 R3, Arudino UNO R4 and many others. This format enables usesr to easily exchange the microcontrollers and find the best solution for their application. The boards are fully open-source and the fabrication files are available in the respective repositories, as well as detailed guides on how to fabricate the boards yourself. The boards are additionally available in the [shop](https://www.simplefoc.com/shop) for those who prefer to buy them, as well as on other mainstream platforms like Aliexpress and Ebay (no relation to the <span class="simple">Simple<span class="foc">FOC</span>project</span>).
3435

3536

36-
## <span class="simple">Simple<span class="foc">FOC</span>Shield</span> <small>v3.2</small> - <small>[Find out more](arduino_simplefoc_shield_showcase)</small>
37+
### <span class="simple">Simple<span class="foc">FOC</span>Shield</span> <small>v3.2</small> - <small>[Find out more](arduino_simplefoc_shield_showcase)</small>
3738

3839
![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?color=blue)
3940
![GitHub release (latest by date)](https://img.shields.io/github/v/release/simplefoc/arduino-simplefocshield)
@@ -48,6 +49,7 @@ The <span class="simple">Simple<span class="foc">FOC</span>Shield</span>, in com
4849

4950

5051
### Features
52+
{: .no_toc }
5153
- **Plug & play**: In combination with Arduino *Simple**FOC**library* - [github](https://github.com/simplefoc/Arduino-FOC)
5254
- **Low-cost**: Price of 15-30€ - [Check the pricing](https://www.simplefoc.com/shop)
5355
- **In-line current sensing**: Up to 5Amps bidirectional
@@ -72,7 +74,7 @@ The <span class="simple">Simple<span class="foc">FOC</span>Shield</span>, in com
7274

7375

7476

75-
## <span class="simple">Simple<span class="foc">FOC</span> <b>Power</b>Shield</span> <small>v0.2</small> <small>⚠️<i>( development abandoned )</i></small>
77+
### <span class="simple">Simple<span class="foc">FOC</span> <b>Power</b>Shield</span> <small>v0.2</small> <small>⚠️<i>( development abandoned )</i></small>
7678

7779
A powerful arduino shield for running BLDC motors using the FOC algorithm. This board is based on the [BTN8982](https://www.infineon.com/dgdl/Infineon-BTN8982TA-DS-v01_00-EN.pdf?fileId=db3a30433fa9412f013fbe32289b7c17) half bridges and can support currents up to 30 Amps continuos and 50Amps peak. Making it a board that can run virtually any BLDC motor.
7880

@@ -91,6 +93,7 @@ This does not mean that the board itself is not functional or that it will not w
9193
</blockquote>
9294

9395
### Features
96+
{: .no_toc }
9497
- **Plug & play**: In combination with Arduino <span class="simple">Simple<span class="foc">FOC</span>library</span>
9598
- **Low-cost**: Fabrication price under €25/pcs - **⚠️ will not be sold by silplefoc.com**
9699
- **High-side current sensing**: - not yet supported by *Simple**FOC**library*
@@ -114,7 +117,7 @@ Read more about this board at [link](https://github.com/simplefoc/Arduino-Simple
114117
This is a set of miniature boards designed to be small, low-cost, and easy to use. They are intended for low power applications and are designed to be compatible with the <span class="simple">Simple<span class="foc">FOC</span>library</span>. The boards are created as minimal working examples and are intended to be used as a reference design for the community to build upon. The boards are fully open-source and the fabrication files are available in the respective repositories, as well as detailed guides on how to fabricate the boards yourself. The boards are additionally available in the [shop](https://www.simplefoc.com/shop) for those who prefer to buy them, as well as on other mainstream platforms like Aliexpress and Ebay (no relation to the <span class="simple">Simple<span class="foc">FOC</span>project</span>).
115118

116119
<div class="width40 inline_block_top" markdown="1">
117-
## <span class="simple">Simple<span class="foc">FOC</span>Mini</span> <small>v1.1</small> - <small>[Find out more](simplefocmini)</small>
120+
### <span class="simple">Simple<span class="foc">FOC</span>Mini</span> <small>v1.1</small> - <small>[Find out more](simplefocmini)</small>
118121

119122
![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?color=blue)
120123
![GitHub release (latest by date)](https://img.shields.io/github/v/release/simplefoc/simplefocmini)
@@ -128,7 +131,8 @@ Small package, low-cost BLDC driver board fully compatible with the <span class=
128131

129132

130133

131-
## Features
134+
### Features
135+
{: .no_toc }
132136
- **Plug & play**: In combination with Arduino <span class="simple">Simple<span class="foc">FOC</span>library</span>
133137
- **DRV8313 based** - [datasheet](https://www.ti.com/lit/ds/symlink/drv8313.pdf?ts=1650461862269&ref_url=https%253A%252F%252Fwww.google.com%252F)
134138
- Power supply: 8-35V
@@ -149,7 +153,7 @@ Read more about this board at [link](https://github.com/simplefoc/SimpleFOCMini)
149153

150154
</div><div class="width40 inline_block_top" style markdown="1">
151155

152-
## <span class="simple">Simple<span class="foc">FOC</span> <b>Step</b>Mini</span> <small>v1.0</small> - <small>[See on Github](https://github.com/simplefoc/SimpleFOC-StepMini)</small>
156+
### <span class="simple">Simple<span class="foc">FOC</span> <b>Step</b>Mini</span> <small>v1.0</small> - <small>[See on Github](https://github.com/simplefoc/SimpleFOC-StepMini)</small>
153157

154158
![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?color=blue)
155159
![GitHub release (latest by date)](https://img.shields.io/github/v/release/simplefoc/simplefoc-stepmini)
@@ -160,7 +164,8 @@ Small package, low-cost Stepper driver board fully compatible with the <span cla
160164
<img src="https://raw.githubusercontent.com/simplefoc/SimpleFOC-StepMini/main/docs/top.png" class="img200"/>
161165

162166

163-
## Features
167+
### Features
168+
{: .no_toc }
164169
- **Plug & play**: In combination with Arduino <span class="simple">Simple<span class="foc">FOC</span>library</span>
165170
- **DRV8844 based** - [datasheet](https://www.ti.com/lit/ds/symlink/drv8844.pdf)
166171
- Power supply: 8-35V

docs/boards/simplefoc_mini/getting_started/code.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ nav_order: 2
77
permalink: /mini_code
88
grand_parent: <span class="simple">Simple<span class="foc">FOC</span>Mini</span>
99
grand_grand_parent: <span class="simple">Simple<span class="foc">FOC</span> Boards</span>
10+
toc: true
1011
---
1112

13+
1214
# Writing the code
1315
Once you have all the [hardware connected](mini_connect_hardware):
1416
- Microcontroller

docs/boards/simplefoc_mini/getting_started/connecting/mini_v1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ parent: Connecting the hardware
88
grand_parent: Starting with Mini
99
grand_grand_parent: <span class="simple">Simple<span class="foc">FOC</span>Mini</span>
1010
grand_grand_grand_parent: <span class="simple">Simple<span class="foc">FOC</span> Boards</span>
11+
toc: true
1112
---
1213

1314

15+
1416
# Connecting the hardware to <span class="simple">Simple<span class="foc">FOC</span>Mini</span> v1
1517

1618
Connecting the <span class="simple">Simple<span class="foc">FOC</span>Mini</span> to the microcontroller, BLDC motor and power-supply is very straight forward.

docs/boards/simplefoc_mini/getting_started/connecting/mini_v11.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ parent: Connecting the hardware
88
grand_parent: Starting with Mini
99
grand_grand_parent: <span class="simple">Simple<span class="foc">FOC</span>Mini</span>
1010
grand_grand_grand_parent: <span class="simple">Simple<span class="foc">FOC</span> Boards</span>
11+
toc: true
1112
---
1213

1314
# Connecting the hardware to <span class="simple">Simple<span class="foc">FOC</span>Mini</span> v1.1

docs/boards/simplefoc_mini/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ nav_order: 2
77
permalink: /simplefocmini
88
has_children: true
99
has_toc: false
10+
toc: true
1011
---
1112

1213

docs/boards/simplefoc_mini/mini_fabrication.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ nav_order: 2
88
permalink: /mini_fabrication
99
has_children: true
1010
has_toc: false
11+
toc: true
1112
---
1213

1314

0 commit comments

Comments
 (0)