forked from LuckfoxTECH/luckfox-pico
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into LoraWan_Interface
- Loading branch information
Showing
19 changed files
with
761 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Prepare build environment | ||
run: ./cicd/prepare_runner.sh | ||
- name: Build | ||
run: ./cicd/docker_brun.sh | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: Balloon${{ github.run_id }}${{ github.run_attempt }} | ||
release_name: Release ${{ github.sha }} | ||
body: | | ||
Contents of this release: | ||
* update.img - Update image for LuckyFox pico Board. | ||
* output.zip - Contents of output folder | ||
draft: true | ||
prerelease: false | ||
- name: Upload Release Asset update.img | ||
id: upload-release-asset-update | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./output/image/update.img | ||
asset_name: update.img | ||
asset_content_type: application/img | ||
- name: Upload Release Asset output.zip | ||
id: upload-release-asset-output | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./output.zip | ||
asset_name: output.zip | ||
asset_content_type: application/zip | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
set -e | ||
|
||
sudo docker run --privileged --mount type=bind,source="$(pwd)",target=/balloon luckfoxtech/luckfox_pico:1.0 /bin/bash /balloon/build.sh | ||
|
||
zip output.zip output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
set -e | ||
|
||
# Install binfmt-support and zip | ||
sudo apt install -y binfmt-support qemu-user-static zip | ||
|
||
# Install docker | ||
# Add Docker's official GPG key: | ||
sudo apt-get update | ||
sudo apt-get install ca-certificates curl gnupg | ||
sudo install -m 0755 -d /etc/apt/keyrings | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
sudo chmod a+r /etc/apt/keyrings/docker.gpg | ||
|
||
# Add the repository to Apt sources: | ||
echo \ | ||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | ||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ | ||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
sudo apt-get update | ||
|
||
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
|
||
# Do submodule checkout | ||
git submodule init | ||
git submodule update --depth=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# WSPR Design | ||
|
||
## Introduction | ||
|
||
WSPR is a stands for Weak Signal Propogation Reporter, more information can be found at [https://www.sigidwiki.com/wiki/WSPR]https://www.sigidwiki.com/wiki/WSPR | ||
|
||
WSPR is designed to be able to report incredibly weak signals, and has various base points for detection around the world. This allows communication at an extremely slow speed for location data to provide telemetry. This can be seen on WSPRNet. | ||
|
||
[http://www.wsprnet.org/drupal/WSPRnet/map]WSPRNet | ||
|
||
For use the protocol requires an amateur radio license. For this project, I have aquired one for use of WSPRNet, however anyone using this project will need to aquire a license for themselves in order to use this technology. | ||
|
||
## Base Design | ||
|
||
### Code | ||
|
||
The project is based on [https://github.com/alexf91/WSPR-Beacon/]alexf91/WSPR-Beacon however has been completely rewritten. | ||
|
||
The initial code was designed for an Arduino based solution with a USB interface. The re-write here disregards the code apart from the WSPR encoding library. | ||
|
||
A special mention here is [https://github.com/threeme3/WsprryPi]threeme3/WsprryPi. I's not used in this project, but was vastly helpful for design purposes. | ||
|
||
### Electronics | ||
|
||
The WSPR part of the project requires an oscillator to function at around 14MHz. | ||
|
||
For this it was chosen to use the si5351, for the good community support, and the ease of the i2c interface. | ||
|
||
Technically, it a low pass filter should be added, but given the harmonics of a square wave and the transmission power, for this indiviual use case, I would consider unnecessary. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<mxfile host="app.diagrams.net" modified="2023-11-25T22:53:09.270Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" etag="ORIoZZMIWaURs2VqVCU3" version="22.1.3" type="device"> | ||
<diagram name="Page-1" id="xXQSwJtIRi74mmdLVUvR"> | ||
<mxGraphModel dx="880" dy="470" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="0" /> | ||
<mxCell id="1" parent="0" /> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="K1NoG9OSjYkEAMSQnG4f-1" target="K1NoG9OSjYkEAMSQnG4f-2"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-5" value="UART2" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="K1NoG9OSjYkEAMSQnG4f-4"> | ||
<mxGeometry x="-0.5077" y="-2" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="K1NoG9OSjYkEAMSQnG4f-1" target="K1NoG9OSjYkEAMSQnG4f-3"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-7" value="SPI0" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="K1NoG9OSjYkEAMSQnG4f-6"> | ||
<mxGeometry x="0.2133" y="-2" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="K1NoG9OSjYkEAMSQnG4f-1" target="K1NoG9OSjYkEAMSQnG4f-10"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-1" value="LuckFox-Pico-Mini-B" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1"> | ||
<mxGeometry x="220" y="100" width="160" height="160" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-2" value="uBlox-Neo6M" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1"> | ||
<mxGeometry x="470" y="100" width="80" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-3" value="sx1276" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1"> | ||
<mxGeometry x="30" y="100" width="80" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-8" value="Notes - Reset to GND" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> | ||
<mxGeometry x="20" y="190" width="130" height="30" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-9" value="Both devices connected to 3.3v on MPU" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> | ||
<mxGeometry x="184" y="270" width="230" height="30" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="K1NoG9OSjYkEAMSQnG4f-10" value="CSI (WiP)" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> | ||
<mxGeometry x="220" width="160" height="60" as="geometry" /> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.