Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MechaRaptor - Arduino Controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aerospace and Mechanical Engineering
tlambert
MechaRaptor - Arduino Controller
Commits
c97c11da
Verified
Commit
c97c11da
authored
2 years ago
by
Thomas Lambert
Browse files
Options
Downloads
Patches
Plain Diff
doc: minor updates and typo fixes
parent
c8fe5f41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+16
-9
16 additions, 9 deletions
CHANGELOG.md
README.md
+28
-28
28 additions, 28 deletions
README.md
with
44 additions
and
37 deletions
CHANGELOG.md
+
16
−
9
View file @
c97c11da
...
...
@@ -9,11 +9,23 @@ to [Semantic Versioning][sem_ver].
### Added
### Changed
### Deprecated
### Removed
### Fixed
## [v2.0.0] - 2022-11-23
### Added
-
**Doc**
: Changelog
-
**Controller**
: Complete control over Serial
-
**Acquisition**
: Angle sensor acquisition
-
**Acquisition**
: PSU current and tension
monitor
ing
-
**Calibration**
: Wing angle automatic
calibration
-
**Acquisition**
: PSU current and tension
logg
ing
-
**Calibration**
: Wing angle automatic
"zeroing"
### Changed
...
...
@@ -25,12 +37,6 @@ to [Semantic Versioning][sem_ver].
-
**All**
: Use more precise types to limit RAM
-
**Refactor**
: Split the code into different files
### Deprecated
### Removed
### Fixed
## [v1.0.0] - 2022-10-25
### Added
...
...
@@ -40,5 +46,6 @@ to [Semantic Versioning][sem_ver].
[
sem_ver
]:
<
https://semver.org/spec/v2.0.0.html
>
[
keep_chglog
]:
<
https://keepachangelog.com/en/1.0.0/
>
[
Unreleased
]:
https://gitlab.uliege.be/thlamb/mecharaptor-controller/-/compare/v1.0.0...main
[
Unreleased
]:
https://gitlab.uliege.be/thlamb/mecharaptor-controller/-/compare/v2.0.0...main
[
v2.0.0
]:
https://gitlab.uliege.be/thlamb/mecharaptor-controller/-/releases/tag/v2.0.0
[
v1.0.0
]:
https://gitlab.uliege.be/thlamb/mecharaptor-controller/-/releases/tag/v1.0.0
This diff is collapsed.
Click to expand it.
README.md
+
28
−
28
View file @
c97c11da
...
...
@@ -7,8 +7,8 @@ dynamics and its impact on the performance of the aft wing.
The system is actuated by two sets of brushless DC motors (BLDC), each
controlled with an Engine Speed Controller (ESC). The ESCs are themselves
controlled using an Arduino Uno, which acts as the "brain" of the whole s
ystem
.
This Arduino is the main interface for piloting the s
etup
and logging important
controlled using an Arduino Uno, which acts as the "brain" of the whole s
etup
.
This Arduino is the main interface for piloting the s
ystem
and logging important
metrics.
This repository contains the Arduino code and the wiring schematics for the
...
...
@@ -22,20 +22,20 @@ electrical components of the setup.
position of the wings.
_Note: A maximum rotation speed is imposed to the BLDC by the ESC. This value
has been manually set for each ESC using the ESC's terminal (JETIBOX). Th
is
value
is reflected in the Arduino code as well,
in
so the inputs and
outputs are
calibrated properly._
has been manually set for each ESC using the ESC's terminal (JETIBOX). Th
e
maximum BLDC speed
is reflected in the Arduino code as well, so the inputs and
outputs are
calibrated properly._
## Usage
Before powering the Arduino, set the ON/OFF switch in the appropriate position:
-
ON: Serial mode (control using a PC)
-
ON: Serial mode (control using a PC
connected to the Arduino
)
-
OFF: Manual mode (control using the potentiometer)
Further switch changes during the Arduino runtime will not be accounted for.
Then turn
plug
the ESCs power using batteries or DC power supply.
Then turn
on
the ESCs power using batteries or DC power supply.
If the setup is in manual mode, the potentiometer must be turned all the way
down to initiate the setup. If it is in automatic mode, it will wait for a
...
...
@@ -68,11 +68,11 @@ re-open a new one.
Besides controlling the system, the Arduino also logs the input data and some
measurements. The most important data are:
-
ESC input setting
-
ESC input setting
s
-
Wing angles (for each wing)
-
PSU current and tension
These
logged
data are transmitted through the serial connection and saved on the
These data are transmitted through the serial connection and
can be
saved on the
computer that controls the Arduino for later analysis.
A
[
_json_ configuration file
](
controller/mechaRaptor.json
)
is provided in order
...
...
@@ -82,35 +82,35 @@ allows the automatic logging and retention of all data in _csv_ spreadsheets.
### Angle calibration
The flapping angle of each wing is measured using an absolute encoder. These
sensors need to be '
calibrat
ed' properly so the value they output corresponds to
sensors need to be '
zero
ed' properly so the value they output corresponds to
the actual wing angle.
This calibration process be done automatically in Serial mode. At the end of the
calibration, the Serial console will output the offset and the max angle values
measured. This calibration is only necessary for the first run of the setup (or
after a re-assembly). So the values measured during the calibration can be
hard-coded in the code and the calibration functions can be by-passed by setting
This calibration process can be done automatically in Serial mode. It is only
useful to calibrate the sensors after a re-assembly of the setup. Once the
calibration has been made a first time, we recommend hard-coding the values
measured and deactivate the calibration procedure altogether by putting
`gSKIP_CALIB = true`
.
## Bill of Materials
| Device | Reference
| Usage
|
|------------------ | --------------- | --------------- |
|
**BLDC**
|
[
Plettenberg
][
plettenberg
]
Advance 30
<br
/>
_(Discontinued by manufacturer)_
| Motor
|
|
**ESC**
|
[
JETI SPIN 75 Pro Opto
][
jetispin
]
| Motor controller |
|
**ESC Terminal**
|
[
JETIBOX
][
jetibox
]
| Program ESC, motor telemetry |
|
**PSU**
|
[
Electroautomatik
][
elektro
]
PSI 8080 - 60 T (1500W)
<br
/>
_(Discontinued by manufacturer)_
| DC power supply |
|
**Controller board**
|
[
Arduino uno (Rev 3)
][
arduino
]
| Full setup control, data logging|
|
**Encoders**
|
[
Broadcom AEAT 6012
][
AEAT612
]
| Flapping angle measurement |
|
**Potentiometer**
| N/A | Manual control of RPM|
|
**ON/OFF switch**
| N/A | Switch between
`Serial`
and
`Manual`
control |
|
**Resistors**
| N/A
| Voltage divider
,
noise reduction |
|
**Current sensor**
|
[
Allegro SEN0098
][
SEN0098
]
[^
1]
| PSU current logging |
| Device
| Reference
| Usage
|
|------------------
---
| ---------------
----------------------------------------
| ---------------
-
|
|
**BLDC**
|
[
Plettenberg
][
plettenberg
]
Advance 30
[^1] | Motor
|
|
**ESC**
|
[
JETI SPIN 75 Pro Opto
][
jetispin
]
| Motor controller |
|
**ESC Terminal**
|
[
JETIBOX
][
jetibox
]
| Program ESC, motor telemetry |
|
**PSU**
|
[
Electroautomatik
][
elektro
]
PSI 8080 - 60 T (1500W)
[^1]
| DC power supply |
|
**Controller board**
|
[
Arduino uno (Rev 3)
][
arduino
]
| Full setup control, data logging|
|
**Encoders**
|
[
Broadcom AEAT 6012
][
AEAT612
]
| Flapping angle measurement |
|
**Potentiometer**
| N/A
| Manual control of RPM|
|
**ON/OFF switch**
| N/A
| Switch between
`Serial`
and
`Manual`
control |
|
**Resistors**
| 47 k$
`\Omega`
$, 6.8 k$
`\Omega`
$
| Voltage divider
&
noise reduction |
|
**Current sensor**
|
[
Allegro SEN0098
][
SEN0098
]
[^
2]
| PSU current logging |
## Schematics
To Do (ETA January 2023)
[
^1
]:
Using
an ACS758 chip LCB050B-3370XAA-1044
[
^1
]:
Discontinued
by manufacturer.
[
^2
]:
Using
an ACS758 chip LCB050B-3370XAA-1044.
[
plettenberg
]:
<
https://plettenbergmotors.com/
>
[
serial-studio
]:
<
https://serial-studio.github.io/
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment