Skip to content
This repository has been archived by the owner on Dec 19, 2021. It is now read-only.
/ forgetmenot Public archive

using ATtiny3217 to measure and control environment of plants or wormboxes

Notifications You must be signed in to change notification settings

2ni/forgetmenot

Repository files navigation

!!! PLEASE check the newer version apricot !!!

purpose

This is the software used for my forgetmenot board based on ATtiny3217 (alternative ATtiny1617, ATtiny817). See hardware. The board can:

  • measure temperature on chip / board / humidity sensor
  • measure soil humidity
  • send/receive data via RFM69 to gateway
  • send data via RFM95 (abp mode)
  • send data via RFM95 (otaa mode)
  • notify via LED's
  • control a motor via bridge
  • output data on ST7735 / SSD1306
  • handle touch sensor (short/long press)
  • read hall sensor (magnetic switch)
  • measure battery voltage
  • sleep
  • debug output to serial (input is not possible on this version of the board)
  • BOD (brown-out detector) on low voltages

This is a complete new version of a sensor based on the ATtiny88.

installation

pyenv virtualenv 3.7.8 forgetmenot
pyenv local forgetmenot
pip install -r requirements
./activate.py node
make build port=3

directory structure

  • examples: many examples
  • node: main sensor project
  • common: commonly used "libraries"

To upload one of the examples or node:

./activate.py examples/blink
make build port=3

serial output

You can connect the usb of your computer to the usb and run

make serial port=1

available ports

Depending on where you connect the device on your computer it has a different port number. You can find out the number by running the following command:

make ports

useful links

programmer

todos

toolchains for avr-gcc / avrxmega3

I tried many things including patching etc. At the end 2 options worked. You can configure them in the Makefile. I have markr42 active by default.

  1. toolchain_microchip
  • download the newest toolchain from microchip with a patch
  • download pack from atmel (search for attiny3217 to get the correct pack)
mkdir toolchain_microchip
tar xfz avr8-gnu-toolchain-osx-3.6.2.503-darwin.any.x86_64.tar.gz -C toolchai_microchip/ 
make patch_toolchain_microchip

mkdir toolchain_microchip/pack
unzip Atmel.ATtiny_DFP.1.4.283.atpack -d toolchain_microchip/pack/
  1. toolchain_markr42 (more info) I just adapted it to have the binaries locally installed and not in /usr/local/avr (that's what the patch is for)
mkdir toolchain_markr42
cd toolchain_markr42
brew install automake
wget https://github.com/MarkR42/robotbits/raw/master/avr_toolchain/build.sh
wget https://github.com/MarkR42/robotbits/raw/master/avr_toolchain/avr-xmega3.patch.bz
make patch_toolchain_markr42

About

using ATtiny3217 to measure and control environment of plants or wormboxes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published