Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

CityofEdmonton/moisture-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LoPy 4 Soil Moisture Sensor

This device reads soil moisture as an analog value and transmits it to the internet via LoRa. Built with Pycom components and programmed in Micropython.

Components:

Setup:

Hardware:

Before use, the firmware on the LoPy 4 and Expansion Board/ Pytrack must be updated to the current version.

To update the firmware on the Expansion Board/Pytrack follow the instructions at the following link

Next, update the firmware on the LoPy 4 follow the instructions at the following link

Programming Environment:

Pycom offers a plugin for Visual Studio Code called PyMakr which allows for easy development on Pycom devices.

Follow the instructions at the following link to install PyMakr.

A Pycom microcontroller can be connected to in two ways, (1) via USB and (2) via Telnet

Using PyMakr:

Along the bottom of your VSCode Window with PyMakr installed, you will see the following toolbar.

PyMakr Toolbar

  • Run: runs the code in the currently open file once, this code is not saved into flash memory
  • Upload: Uploads ALL the code in the current workspace folder to flash memory and runs it. This code will run on the device automatically when it is turned on
  • Download: downloads code from device to computer

Useful PyMakr Commands:

  • os.uname(): shows current version of firmware
  • os.mkfs('/flash'): erases flash memory

About

LoRa enabled moisture sensor device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published