Skip to content

Commit

Permalink
Openscad & code updates (#6)
Browse files Browse the repository at this point in the history
- Move EBox to a `scad/box` subdirectory, and add number-labels for plant connectors.
- Improve drawing of moisture level on OLED screen
- Add OpenSCAD model of a soil-spike with holes for watering.
- Added compile-check
  • Loading branch information
chl33 authored Sep 19, 2024
1 parent 3fd7f24 commit 2b98a31
Show file tree
Hide file tree
Showing 21 changed files with 7,171 additions and 3,414 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/platformio-run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PlatformIO CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Build PlatformIO Project
run: pio run
10 changes: 5 additions & 5 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
[platformio]
extra_configs =
secrets.ini
; secrets-usb.ini
secrets-ota.ini
secrets-usb.ini
; secrets-ota.ini

[env:node32s]
platform = espressif32
Expand All @@ -23,9 +23,9 @@ monitor_speed = 115200
check_tool = clangtidy
monitor_filters = esp32_exception_decoder
build_type = release
lib_extra_dirs =
~/Projects2
~/Projects2/Plant133/lib/watering
;lib_extra_dirs =
; ~/Projects2
; ~/Projects2/Plant133/lib/watering
lib_deps =
watering
[email protected]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions box/box.scad → scad/box/box.scad
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ module Plant1337_box(top) {
if (top) {
in_Plant1337_board_frame(board_height=true)
shtc3_window(shtc3_loc, space_above_board+wall, wall, false, z_gap=-1);
translate([27, 30, outer_dims[2]-epsilon])
color("black") linear_extrude(0.5) {
translate([0, 0, 0]) text("1", size=4);
translate([14, 10, 0]) text("2", size=4);
translate([21, 10, 0]) text("3", size=4);
translate([29, 10, 0]) text("4", size=4);
}
} else {
// Stuff to add on bottom.
in_Plant1337_board_frame() {
Expand Down
File renamed without changes.
68 changes: 34 additions & 34 deletions box/box_bottom.stl → scad/box/box_bottom.stl
Original file line number Diff line number Diff line change
Expand Up @@ -1861,20 +1861,6 @@ solid OpenSCAD_Model
vertex 63.598 45.452 3.8
endloop
endfacet
facet normal -0.972343 0.233559 0
outer loop
vertex 63.7181 3.38197 1
vertex 63.7914 3.68713 3.8
vertex 63.7914 3.68713 1
endloop
endfacet
facet normal -0.972343 0.233559 0
outer loop
vertex 63.7914 3.68713 3.8
vertex 63.7181 3.38197 1
vertex 63.7181 3.38197 3.8
endloop
endfacet
facet normal -0.996924 -0.0783775 0
outer loop
vertex 63.816 44.544 1
Expand Down Expand Up @@ -4451,18 +4437,18 @@ solid OpenSCAD_Model
vertex 2.09789 3.38197 1
endloop
endfacet
facet normal -0.923881 0.38268 0
facet normal -0.972343 0.233559 0
outer loop
vertex 63.598 3.09202 1
vertex 63.7181 3.38197 3.8
vertex 63.7181 3.38197 1
vertex 63.7914 3.68713 3.8
vertex 63.7914 3.68713 1
endloop
endfacet
facet normal -0.923881 0.38268 0
facet normal -0.972343 0.233559 0
outer loop
vertex 63.7914 3.68713 3.8
vertex 63.7181 3.38197 1
vertex 63.7181 3.38197 3.8
vertex 63.598 3.09202 1
vertex 63.598 3.09202 3.8
endloop
endfacet
facet normal 0.760403 0.649452 0
Expand All @@ -4479,6 +4465,20 @@ solid OpenSCAD_Model
vertex 2.58579 2.58579 1
endloop
endfacet
facet normal -0.923881 0.38268 0
outer loop
vertex 63.598 3.09202 1
vertex 63.7181 3.38197 3.8
vertex 63.7181 3.38197 1
endloop
endfacet
facet normal -0.923881 0.38268 0
outer loop
vertex 63.7181 3.38197 3.8
vertex 63.598 3.09202 1
vertex 63.598 3.09202 3.8
endloop
endfacet
facet normal -0.649515 0.760349 0
outer loop
vertex 63.2302 2.58579 1
Expand Down Expand Up @@ -9393,20 +9393,6 @@ solid OpenSCAD_Model
vertex 43.9914 12.2455 0
endloop
endfacet
facet normal -0.233325 0.972399 0
outer loop
vertex 45.8815 10.3554 0
vertex 45.6527 10.3005 1
vertex 45.8815 10.3554 1
endloop
endfacet
facet normal -0.233325 0.972399 0
outer loop
vertex 45.6527 10.3005 1
vertex 45.8815 10.3554 0
vertex 45.6527 10.3005 0
endloop
endfacet
facet normal -0.64925 0.760575 0
outer loop
vertex 46.4787 10.7213 0
Expand Down Expand Up @@ -9519,6 +9505,20 @@ solid OpenSCAD_Model
vertex 44.2045 12.6637 0
endloop
endfacet
facet normal -0.233325 0.972399 0
outer loop
vertex 45.8815 10.3554 0
vertex 45.6527 10.3005 1
vertex 45.8815 10.3554 1
endloop
endfacet
facet normal -0.233325 0.972399 0
outer loop
vertex 45.6527 10.3005 1
vertex 45.8815 10.3554 0
vertex 45.6527 10.3005 0
endloop
endfacet
facet normal 0.64925 0.760575 -0
outer loop
vertex 44.5363 10.5685 0
Expand Down
File renamed without changes.
Loading

0 comments on commit 2b98a31

Please sign in to comment.