Skip to content

Falk358/Plant-Watering-Sensor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plant Watering Sensor

This project is a fork of arm-hello-world-rust. Use the Setup instructions below taken from arm-hello-world-rust to initialize this project.

This repository aims to read a Soil Moisture Sensor Hygrometer Module to detect whether your plants need to be watered.

Check the Feature List for features which are being worked on or to add your own requests.

Setup Instructions

ARM Cortex M4F application built using the rust-embedded template. This video might contain some useful information for setting up your development environment.

Target

This program is targeted at MSP432P401R Launchpad development board.

Getting Started

Install dependencies:

Make sure to install the latest commit of OpenOCD, which includes the MSP432 board configuration.

On macOS:

$ brew install openocd --HEAD

You may also need to install openocd dependencies: autoconf, automake and texinfo

On other platforms, follow the instructions on https://sourceforge.net/p/openocd/code/ci/master/tree/ in the section Compiling OpenOCD

Running

Setup Rust beta and add the ARM build platform target:

$ rustup default beta
$ rustup target add thumbv7em-none-eabihf

Clone and compile the project:

$ git clone git@github.com:caiotavares/arm-hello-world-rust.git
$ cd arm-hello-world-rust
$ cargo build

Open a OpenOCD server and leave it open in a terminal:

$ openocd

On a separate terminal, open the GDB client:

$ arm-none-eabi-gdb -q target/thumbv7em-none-eabihf/debug/arm-hello-world-rust
$ (gdb) target remote :3333
$ (gdb) load
$ (gdb) monitor arm semihosting enable
$ (gdb) continue

You should see Hello, world! displayed at the OpenOCD terminal

About

Plant watering Sensor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 98.8%
  • RPC 1.2%