Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Philip is done here #40

Merged
merged 137 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
c0eb954
Add files via upload
Jtl1282 Oct 19, 2023
4dd11ad
Add files via upload
MatthewD2 Oct 19, 2023
993fd1d
Merge pull request #7 from ISSUIUC/adding-new-manufacturing-files
philipzolf Oct 19, 2023
9368b31
uploading threaded rod support draft
zdahhan Oct 20, 2023
69ad1cb
Add files via upload
ganta2 Oct 20, 2023
1b8dd07
uploading 8 in rail draft
zdahhan Oct 20, 2023
91bc9cf
Merge pull request #8 from ISSUIUC/Uploading-threaded-rod-support-and…
zdahhan Oct 20, 2023
f02b8fb
Merge pull request #9 from ISSUIUC/Thin-Plate-Draft
zdahhan Oct 20, 2023
a00430b
Add files via upload
Jtl1282 Oct 20, 2023
073bd93
Add files via upload
Jtl1282 Oct 20, 2023
85ca9b7
Add files via upload
Corbinh2 Oct 20, 2023
10afee0
Add files via upload
kdabr2 Oct 24, 2023
6504581
Add files via upload
kdabr2 Oct 24, 2023
c95eb38
Add files via upload
Jtl1282 Oct 24, 2023
3632837
Add files via upload
Jtl1282 Oct 24, 2023
1df098f
Add files via upload
Jtl1282 Oct 24, 2023
5a5d3f1
Add files via upload
Jtl1282 Oct 24, 2023
9937070
Delete Test Stand/steel plate bracket.prt
Jtl1282 Oct 24, 2023
21f4c16
Add files via upload
Jtl1282 Oct 24, 2023
5b8726e
Add files via upload
Corbinh2 Oct 25, 2023
69da198
Add files via upload
Corbinh2 Oct 25, 2023
9c0cba0
Add files via upload
Corbinh2 Oct 27, 2023
e82612c
Delete X-Winder Frame/X-Winder_Frame_Assembly/X-Winder_frame_assembly…
zdahhan Oct 31, 2023
d9930de
Add files via upload
zdahhan Oct 31, 2023
a2d7c5a
Add files via upload
zdahhan Oct 31, 2023
b33acde
Add files via upload
zdahhan Oct 31, 2023
cb2b909
Add files via upload
zdahhan Oct 31, 2023
5a40b3a
Merge pull request #10 from ISSUIUC/updating-all-xwinder-frame-cad-files
zdahhan Oct 31, 2023
0898f1f
Merge pull request #11 from ISSUIUC/zdahhan-patch-1
zdahhan Oct 31, 2023
69368f7
Delete X-Winder Frame/Horizontal Support/X-Winder_frame_long_rail.prt
zdahhan Oct 31, 2023
7aa343a
Merge pull request #12 from ISSUIUC/zdahhan-patch-2
zdahhan Oct 31, 2023
4d75657
Delete X-Winder Frame/Thin Plate/X_Winder_frame_threaded_rod_support.prt
zdahhan Oct 31, 2023
7e20c90
Add files via upload
zdahhan Oct 31, 2023
a01c403
Merge pull request #13 from ISSUIUC/patch
zdahhan Oct 31, 2023
599badd
Add files via upload
zdahhan Oct 31, 2023
7a503dd
Add files via upload
zdahhan Oct 31, 2023
ec922c4
Delete X-Winder Frame/X-Winder_Frame_Assembly/X-Winder_frame_assembly…
zdahhan Oct 31, 2023
d5e132f
Merge pull request #14 from ISSUIUC/uploading-new-long-rail
zdahhan Oct 31, 2023
20c86af
Delete X-Winder Frame/X-Winder_Frame_Assembly/XWinder_assembly.prt
zdahhan Oct 31, 2023
84801c0
Add files via upload
zdahhan Oct 31, 2023
6c37593
Delete X-Winder Frame/Vertical Support/Vertical_Support.prt
zdahhan Oct 31, 2023
e516622
Add files via upload
zdahhan Oct 31, 2023
6b5b38a
Delete X-Winder Frame/Horizontal Support/X-Winder_frame_long_rail.prt
zdahhan Oct 31, 2023
3443e63
Delete X-Winder Frame/Horizontal Support/X-Winder_frame_8in_rail (1).prt
zdahhan Oct 31, 2023
9ac05f9
Delete X-Winder Frame/Horizontal Support/wooden_horizontal_support.prt
zdahhan Oct 31, 2023
9471893
Add files via upload
zdahhan Oct 31, 2023
10e51c0
Merge pull request #15 from ISSUIUC/uploading-new-long-rail
zdahhan Oct 31, 2023
33f9fe0
Add files via upload
Jtl1282 Nov 10, 2023
b298022
uploading updated 54 mm nozzle part and draft
zdahhan Jan 19, 2024
9835d55
Merge pull request #16 from ISSUIUC/zdahhan-patch-2
zdahhan Jan 19, 2024
f18d0e8
Delete 54 mm SRAD Nozzle/Drawings and Cad/54mm_nozzle_draft_updated_o…
zdahhan Jan 26, 2024
7de100d
Delete 54 mm SRAD Nozzle/Drawings and Cad/updated_oring_groove_54mm_n…
zdahhan Jan 26, 2024
370d815
uploading updated 54 mm nozzle and draft
zdahhan Jan 26, 2024
8c52816
Merge pull request #17 from ISSUIUC/zdahhan-patch-2
zdahhan Jan 26, 2024
2ad59d0
Delete 54 mm SRAD Nozzle/Drawings and Cad/54mm_nozzle_draft_updated_o…
zdahhan Feb 2, 2024
ec5f8e8
Delete 54 mm SRAD Nozzle/Drawings and Cad/zdahhan2_54mm_nozzle_draft_…
zdahhan Feb 2, 2024
549c3a2
uploading updated 54 mm nozzle draft and part
zdahhan Feb 2, 2024
e18cae9
Merge pull request #18 from ISSUIUC/zdahhan-patch-2
zdahhan Feb 2, 2024
1e875c0
Delete 54 mm SRAD Nozzle/Drawings and Cad/54mm_nozzle_updated_oring_g…
zdahhan Feb 2, 2024
36fc8e8
Merge pull request #19 from ISSUIUC/zdahhan-patch-3
zdahhan Feb 2, 2024
1d9b451
Delete 54 mm SRAD Nozzle/Drawings and Cad/54mm_nozzle_updated_oring_g…
zdahhan Feb 2, 2024
a05bdce
Add files via upload
zdahhan Feb 2, 2024
39e4ce0
Merge pull request #20 from ISSUIUC/zdahhan-patch-3
zdahhan Feb 2, 2024
147f760
uploading styrofoam connect part
zdahhan Feb 14, 2024
4f8a143
Merge pull request #21 from ISSUIUC/zdahhan-patch-3
zdahhan Feb 14, 2024
5de85fa
Add files via upload
Corbinh2 Feb 18, 2024
c07e242
Create 75mm CAD
mcharney767 Feb 27, 2024
d8aaaa2
Merge pull request #22 from ISSUIUC/mcharney767-patch-1
zdahhan Feb 27, 2024
3efb482
created 75 mm rocket motor folder
zdahhan Feb 27, 2024
c74bd61
Merge pull request #23 from ISSUIUC/zdahhan-patch-4
zdahhan Feb 27, 2024
2bec219
Delete 75mm CAD file
zdahhan Feb 27, 2024
9aa2ff2
Create filler
zdahhan Feb 27, 2024
f99e13f
uploading 75mm forward closure and 75 mm casing
zdahhan Feb 27, 2024
38fb342
Merge pull request #24 from ISSUIUC/zdahhan-patch-4
zdahhan Feb 27, 2024
67427f2
Delete 75 mm rocket motor/CAD/75mmForwardClosure.prt
zdahhan Feb 27, 2024
8e7c7ab
uploading updated 75 mm forward closure
zdahhan Feb 27, 2024
bbaf5d9
adding 75 mm aft closure
zdahhan Feb 27, 2024
874f4ed
Add files via upload
Corbinh2 Feb 29, 2024
8b32542
Merge pull request #25 from ISSUIUC/zdahhan-patch-4
zdahhan Mar 18, 2024
abc77ac
Delete 75 mm rocket motor/CAD/75mmAftClosureV2.prt
zdahhan Mar 18, 2024
2733190
Delete 75 mm rocket motor/CAD/75mmCasing.prt
zdahhan Mar 18, 2024
a751cc2
Delete 75 mm rocket motor/CAD/75mmForwardClosure.prt
zdahhan Mar 18, 2024
1b3d9fc
uploading assembly and updated parts
zdahhan Mar 18, 2024
47133a5
Merge pull request #26 from ISSUIUC/adding-75-mm-assembly
zdahhan Mar 18, 2024
658ed5b
Delete 75 mm rocket motor/CAD/75mm_Phenolic_Liner.prt
zdahhan Mar 18, 2024
cb2fd9c
Delete 75 mm rocket motor/CAD/75mm_Assembly.prt
zdahhan Mar 18, 2024
e3972e8
Delete 75 mm rocket motor/CAD/75mmForwardClosure.prt
zdahhan Mar 18, 2024
d51f79a
Delete 75 mm rocket motor/CAD/75mmCasing (1).prt
zdahhan Mar 18, 2024
787436f
Delete 75 mm rocket motor/CAD/75mmAftClosureV2 (2).prt
zdahhan Mar 18, 2024
aeb8620
updating 75 mm assembly and editing nozzle
zdahhan Mar 18, 2024
bbde67f
Merge pull request #27 from ISSUIUC/updating-75-mm-assembly-with-edit…
zdahhan Mar 18, 2024
0294fa2
Delete 75 mm rocket motor/CAD/75mmAftClosureV2 (2) (1).prt
zdahhan Mar 19, 2024
15cb5be
Delete 75 mm rocket motor/CAD/75mmCasing (1) (1).prt
zdahhan Mar 19, 2024
6b1fd87
Delete 75 mm rocket motor/CAD/75mmForwardClosure (2).prt
zdahhan Mar 19, 2024
1920407
Delete 75 mm rocket motor/CAD/75mm_Assembly (2).prt
zdahhan Mar 19, 2024
1c603fa
Delete 75 mm rocket motor/CAD/75mm_Phenolic_Liner (1).prt
zdahhan Mar 19, 2024
904d50e
Delete 75 mm rocket motor/CAD/filler
zdahhan Mar 19, 2024
d9f2fcc
Delete 75 mm rocket motor/CAD/nozzle_75mm.prt
zdahhan Mar 19, 2024
7d2af19
Create filler
zdahhan Mar 19, 2024
ce054b8
adding updated assembly
zdahhan Mar 19, 2024
26ad895
Merge pull request #28 from ISSUIUC/updating-75-mm-assembly-with-edit…
zdahhan Mar 19, 2024
d95150f
Delete 75 mm rocket motor/CAD/nozzle_75mm.prt
zdahhan Mar 21, 2024
4178c7f
Delete 75 mm rocket motor/CAD/75mm_Assembly (2) (1).prt
zdahhan Mar 21, 2024
7efcb00
uploading adjusted assembly with fixed nozzle
zdahhan Mar 21, 2024
734b02a
Merge pull request #29 from ISSUIUC/updating-75-mm-assembly-first-new…
zdahhan Mar 21, 2024
1ce4377
Delete 75 mm rocket motor/CAD/75mmAftClosureV2 (2) (1) (1).prt
zdahhan Mar 22, 2024
af5a2b4
Delete 75 mm rocket motor/CAD/75mm_Assembly (2) (1).prt
zdahhan Mar 22, 2024
11a34f4
Delete 75 mm rocket motor/CAD/nozzle_75mm_adj.prt
zdahhan Mar 22, 2024
249c45e
uploading imrpoved nozzle
zdahhan Mar 22, 2024
4ae5bc4
Merge pull request #30 from ISSUIUC/75-mm-assembly-update-with-improv…
zdahhan Mar 22, 2024
9b53fb6
Create filler
zdahhan Mar 29, 2024
fc690c7
uploading CAD for ANSYS
zdahhan Mar 29, 2024
0083c61
Merge pull request #31 from ISSUIUC/uploading-CAD-files-for-75-mm-ans…
zdahhan Mar 29, 2024
69e4d76
created draft sheets folder for 75 mm motor
zdahhan Jul 29, 2024
2955170
Merge pull request #32 from ISSUIUC/zdahhan-patch-5
zdahhan Jul 29, 2024
8311742
uploading draft sheets for 75 mm motor
zdahhan Jul 29, 2024
62865d7
Merge pull request #33 from ISSUIUC/zdahhan-patch-5
zdahhan Jul 29, 2024
3a10db6
Delete 75 mm rocket motor/CAD/75mmAftClosureV2 (2) (1) (1) (1).prt
zdahhan Jul 29, 2024
2c68be7
Delete 75 mm rocket motor/CAD/75mmCasing (1) (1) (1).prt
zdahhan Jul 29, 2024
cb63a33
Delete 75 mm rocket motor/CAD/75mmForwardClosure (2) (1).prt
zdahhan Jul 29, 2024
2f37dda
Delete 75 mm rocket motor/CAD/nozzle_75mm_adj (2).prt
zdahhan Jul 29, 2024
248acb5
Delete 75 mm rocket motor/CAD/filler
zdahhan Jul 29, 2024
abbbe8d
uploading 75mm parts with draft sheets made
zdahhan Jul 29, 2024
97f0bfb
Merge pull request #34 from ISSUIUC/zdahhan-patch-5
zdahhan Jul 29, 2024
6dc996d
Merge pull request #35 from ISSUIUC/adding_testing_cad
zdahhan Sep 17, 2024
c2c235c
add README
mariano-f-r Sep 19, 2024
265e273
add pull request info to README
mariano-f-r Sep 19, 2024
f7edab0
Merge pull request #36 from ISSUIUC/chore/update-readme
MylesLJ Sep 19, 2024
fed5182
Add current SETS_2 Code and moved old code to folder
MylesLJ Sep 24, 2024
63c3250
add device tree fragment to add SPI CS lines on BCM pins 5 and 20
mariano-f-r Sep 29, 2024
e504ad5
add device tree blob compiled from device tree source
mariano-f-r Sep 29, 2024
b54b0e8
Merge pull request #38 from ISSUIUC/feat/custom-device-tree-overlay
MylesLJ Oct 1, 2024
435065d
add gitignore file
MylesLJ Oct 1, 2024
026f968
delete outdated code
MylesLJ Oct 1, 2024
0167a22
chore: delete .DS_Store
MylesLJ Oct 1, 2024
8c9f4e3
chore: Delete .DS_Store
MylesLJ Oct 1, 2024
7cfd50e
refactor/add-sets_2-code
mariano-f-r Oct 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/.DS_Store
.DS_Store
Binary file not shown.
Binary file not shown.
Binary file added 54 mm SRAD Nozzle/Styrofoam_Connectprt.prt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 75 mm rocket motor/ANSYS/CAD/75 mm nozzle.prt
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions 75 mm rocket motor/ANSYS/CAD/filler
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added 75 mm rocket motor/CAD/75mm Aft Closure.prt
Binary file not shown.
Binary file added 75 mm rocket motor/CAD/75mm Casing.prt
Binary file not shown.
Binary file added 75 mm rocket motor/CAD/75mm Forward Closure.prt
Binary file not shown.
Binary file added 75 mm rocket motor/CAD/75mm Nozzle.prt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions 75 mm rocket motor/CAD/Draft Sheets/filler
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file not shown.
1 change: 1 addition & 0 deletions 75 mm rocket motor/filler
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
t
Binary file added Propellant Manufacturing/38mm_mold_assembled.prt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Propellant Manufacturing/Igniter mold v2.prt
Binary file not shown.
Binary file added Propellant Manufacturing/Mold_38mm_vskim.prt
Binary file not shown.
53 changes: 51 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,53 @@
# Solid_Propulsion
# Solid Propulsion

> "Don't Let Team Center stop you, cause' we can't stoppin."
> - The forebears

Don't Let Team Center stop you, cause' we can't stoppin.
This repo serves as a monolithic repository (a "monorepo") for any and all contributions done for the Solid Propulsion team at the Illinois Space Society
It serves both to track CAD contributions as snapshots (wherein CAD from older commits can be examined to see older versions) and track code as any normal Git repository.
At this time, there are no plans to separate CAD and code, although the idea should be strongly considered due to the incompatible semantics of versioning that CAD and code have.

# Contributing

We have a few rules for adding new items to this repository that depend on what manner of contribution you plan to add.

A few general rules of thumb:
- Do not commit directly to main, open a branch and create a pull request.
- Do not force merge your pull requests. If the contribution is CAD, it will be automatically by our CI/CD pipeline. If it is code, then your commit should be tested before it gets merged.
- When creating branches, adhere to the branch structure which is included below.

| Type of Commit | Branch Prefix |
|--------------- | --------------- |
| CAD | `cad/` |
| New code feature | `feat/` |
| Code refactor | `<refactor/` |
| Bug fix | `fix/` |
| Repository chore | `chore/` |

Note: While we do not presently have more than 1 codebase, in the event we have multiple (which will be an eventuality given we will be storing our in-house Python data analysis software here as well as our firmware), one should prefix all normal code branches with the name of the codebase that you are working on.
EG: If we had a new feature for our firmware, the branch prefix `firmware/feat/` would be used instead of `feat/` as the feature now exists in the context of one of our codebases.

## For CAD

It would be preferable if none of the files you are adding have spaces in their name, as well as folders.
Name your branch based on the overall changes you've made.
For example, if you were to have created a new part and modified an existing one to create a new crossbeam, name the branch `cad/add-new-crossbeam`.
Do not name it after any individual changes you've made, rather the sum total.
Prefer uploading your files directly to using Git from the command line.
In either case, name your commit as follows `cad: <short description here>`.

## For code
It is mandatory none of the files you are adding have spaces in their name, as well as folders.
Name your branch based on the feature you've added, the bug you've fixed, or the item(s) you've refactored.

### Commits
We follow [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) when doing any squash merge commits when merging a branch.
When doing normal commits, ensure your commits are reasonably well detailed as to what they change.

#### When starting a new codebase
Starting a new codebase usually means transitioning from a nonworking prototype to a minimum viable product very rapidly.
We discourage committing anything until the codebase is in a working state, as zealously logging changes in Git when the code is in such a state of flux hinders productivity.

## Naming Pull Requests
Prefix your pull requests with the type of branch you've created followed by a short description.
EG, for a branch named `cad/add-aim9-sidewinder-missile-launcher`, name your pull request `CAD: add AIM-9 sidewinder missile support`.
Binary file added Test Stand/SETS_3/0.25 inch bolt.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/0.25 inch long bolt.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/0.25 inch nut.prt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Test Stand/SETS_3/10.91x2x2 block.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/1m_12M_Threaded_Rod.prt
Binary file not shown.
Binary file not shown.
Binary file added Test Stand/SETS_3/25 lb block.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/7-16 inch nut.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/7-16 inch nuttop.prt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Test Stand/SETS_3/7-16 inch threaded rod.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/7-16 inch washer.prt
Binary file not shown.
Binary file not shown.
Binary file added Test Stand/SETS_3/Circle Plate with Holes.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/CircleTubeSquareBase (1).prt
Binary file not shown.
Binary file added Test Stand/SETS_3/CircleTubeSquareBaseFinal.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/Hexagonal Nut M12.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/Loadcell.prt
Binary file not shown.
Binary file not shown.
Binary file added Test Stand/SETS_3/M12 approx nut.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/M12 approx threaded rod.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/M12 approx washer.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/M4 Bolt.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/M4 Nut.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/SETS3.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/Sets 3 assembly inches.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/base stabilizer 3dprint.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/centering rings 98mm.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/centering rings.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/epoxy-like-stuff-inches.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/grainger-25DD03_stp.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/grainger-2FE45_stp.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/grainger-5NYR7_stp.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/grainger-6CA71_stp.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/loadcell hole 3dprint.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/metalchannel10in.prt
Binary file not shown.
Binary file not shown.
Binary file added Test Stand/SETS_3/metalchannel10intop lower.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/metalchannel10intop lowers.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/metalchannel10intop.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/metalchannel5ft.prt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Test Stand/SETS_3/mirror_metalchannel10intop.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/mockmotor.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/sets3cage.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/steel plate bracket bottom.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/steel plate bracket.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/steel security rope draft.prt
Binary file not shown.
Binary file added Test Stand/SETS_3/steel security rope.prt
Binary file not shown.
71 changes: 71 additions & 0 deletions Test Stand/Sets_2/SETS_2 Code/Arduino_HX711.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#include <HX711.h>

/*
Setup your scale and start the sketch WITHOUT a weight on the scale
Once readings are displayed place the weight on the scale
Press +/- or a/z to adjust the calibration_factor until the output readings match the known weight
OUTDATED
Arduino pin 6 -> HX711 CLK
Arduino pin 5 -> HX711 DOUT
Arduino pin 5V -> HX711 VCC
Arduino pin GND -> HX711 GND
*/

#include "HX711.h"

HX711 scale(30, 32); // data pin, clock pin

float calibration_factor = -23.00; // this calibration factor is adjusted according to my load cell
float units;
float ounces;
float newtons;

void setup() {
Serial.begin(9600);
// Serial.println("HX711 calibration sketch");
// Serial.println("Remove all weight from scale");
// Serial.println("After readings begin, place known weight on scale");
// Serial.println("Press + or a to increase calibration factor");
// Serial.println("Press - or z to decrease calibration factor");

scale.set_scale();
scale.tare(); //Reset the scale to 0

long zero_factor = scale.read_average(); //Get a baseline reading
// Serial.print("Zero factor: "); //This can be used to remove the need to tare the scale. Useful in permanent scale projects.
// Serial.println(zero_factor);
}

void loop() {
scale.set_scale(calibration_factor); //Adjust to this calibration factor

// Serial.print("Reading: ");
units = scale.get_units(), 10;
if (units < 0)
{
units = 0.00;
}
ounces = units * 0.035274;
// newtons = units * 0.0098;
Serial.print(units);
Serial.print('\t');
Serial.print(units);
Serial.print('\t');
Serial.print(units);
Serial.print('\t');
Serial.print(units);
// Serial.print(units);
// Serial.print(" grams");
// Serial.print(" calibration_factor: ");
// Serial.print(calibration_factor);
Serial.println();

if(Serial.available())
{
char temp = Serial.read();
if(temp == '+' || temp == 'a')
calibration_factor += 10;
else if(temp == '-' || temp == 'z')
calibration_factor -= 10;
}
}
Loading
Loading