Skip to content

Latest commit

 

History

History
63 lines (56 loc) · 2.38 KB

README.md

File metadata and controls

63 lines (56 loc) · 2.38 KB

Oixde h2o 🦀

Soil moisture monitoring system built with Rust, utilising the avr-hal project. For now it only supports the Arduino Uno board, but the code can easily be adapted for other boards with the help of the avr-hal examples.

⚠️ This project is still in draft stage, the end goal is to build an auto-watering system.

image

Prerequisites

You need to have the following installed on your system:

Rust

Install the Rust compiler, this this curl command:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

On Windows use rustup-init.exe.

Avrdude

The installation process for avrdude will depend on your OS.

Windows

You can download avr-gcc, which includes avrdude. You can use the following guide. After downloading the archive extract it to C:\Users\Username\Programs\avr8-gnu-toolchain. Then, create a AVRGCCStart.cmd file with this content:

set Path=%Path%;C:\Users\Username\Programs\avr8-gnu-toolchain\bin
set Path=%Path%;C:\Users\Username\Programs\avr8-gnu-toolchain\avr\bin

start cmd

After that save it, and then execute the script. From there you can change to where you've cloned the repository and follow the steps after.

MacOS

avrdude is packaged in a homebrew formula and can be installed with

brew install avrdude

Linux

There should be a avrdude package in your distro package manager, for instance for Ubuntu you can use:

sudo apt-get install avrdude

Usage

Clone this repo:

git clone [email protected]:axiomatic-aardvark/oxide-h2o.git

And just run the project:

cargo run

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.