Skip to content

Instantly share code, notes, and snippets.

@CircuitSetup
CircuitSetup / printer.cfg
Created June 27, 2021 12:34
CR-30 Config
# This file contains pin mappings for the Creality CR-30 PrintMill. To
# use this config, during "make menuconfig" select the STM32F103 with
# a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication.
# If you prefer a direct serial connection, in "make menuconfig"
# select "Enable extra low-level configuration options" and select
# serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
# cable used for the LCD module as follows:
# 3: Tx, 4: Rx, 9: GND, 10: VCC
@CircuitSetup
CircuitSetup / smart_watering_v2.ino
Last active June 15, 2018 20:48
Arduino Smart Watering with 4 water sensors & solenoids
//******************************************************************************************
// File: smart_watering_v2.ino
// Author: John deGlavina
//
// The following sketch is used to water a garden depending on the readings of 4 moisture sensors.
// These moisture sensors correspond to 4 solenoid valves that will open when the water_threshold
// falls below the percentage that is set. When the threshold is reached again, the solenoid will
// close. The level of the moisture sensors will be checked every check_interval concurrently.
//
// The original setup uses a DF Robot 4 relay shield, moisture sensors v1.2 (found on ebay),