Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from upstream #1

Open
wants to merge 108 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
134ca14
Added build day photographs.
mage0r Jan 11, 2016
3f01f34
Add DS18B20 offboard temp sensor to test sketch
projectgus Jan 13, 2016
30000a7
Hack to fix the problem where i2c can make USB stop sending data for a
projectgus Jan 13, 2016
5346a6b
Drop test sketch delay period, quicker results
projectgus Jan 13, 2016
bae3d49
STM32 Firmware major cleanup - remove cruft, rearrange, add README
projectgus Jan 13, 2016
ab79197
STM32 Firmware: Add license
projectgus Jan 13, 2016
a4d501b
Rearrange licenses to better meet the pid.codes terms and make it cle…
projectgus Jan 13, 2016
2920931
README: Add some notes about using with Arduino
projectgus Jan 13, 2016
983f81f
Adding more how to build photos
mage0r Jan 14, 2016
b1fa230
Added initial version of the mqtt logging firmware.
wolfeidau Jan 20, 2016
9c68516
Merge pull request #2 from CCHS-Melbourne/add_basic_mqtt_firmware
wolfeidau Jan 20, 2016
877d945
Add beginnings of final hardware tester
projectgus Jan 20, 2016
4f7e1dc
Version of prodtest used for first 12 boards last night
projectgus Jan 20, 2016
c264ec4
Prodtest: Add tests for NeoPixels, PIR
projectgus Jan 21, 2016
a0ec1d4
Prodtest: Add comment about test procedure
projectgus Jan 21, 2016
7576995
Use WFI sleep mode (least intrusive sleep mode) instead of busy-looping
projectgus Jan 22, 2016
8ebdc38
Add note about VSens rail
projectgus Jan 22, 2016
5eb89d3
Don't reset ESP when STM resets, avoid problems with brownout reset l…
projectgus Jan 23, 2016
01408e4
Move to STLINK v2.1 as default device (as per Nucleo)
projectgus Jan 23, 2016
a49ca61
USB: Stop UART/TIM3 clocks when USB CDC disconnected
projectgus Jan 23, 2016
0760597
Code changes to use STOP mode: Currently doesn't wake up properly
projectgus Jan 23, 2016
4932a69
Working STOP mode, low power OK but not great
projectgus Jan 23, 2016
1c0cc48
Adding Assembly Photos
mage0r Jan 24, 2016
be139f2
Don't reset ESP when STM resets, avoid problems with brownout reset l…
projectgus Jan 23, 2016
1c2d8f1
Move to STLINK v2.1 as default device (as per Nucleo)
projectgus Jan 23, 2016
62909cd
USB: Stop UART/TIM3 clocks when USB CDC disconnected
projectgus Jan 23, 2016
da0d9a4
Fixup prodtest sketch with input from Thomas
projectgus Jan 25, 2016
24c40bf
STM FW: Defer ADC start until end of initial i2c transaction
projectgus Jan 27, 2016
e5ae82b
STM FW: Update VID/PID, use serial number descriptor for versioning
projectgus Jan 27, 2016
341cb6f
STM FW: Remove as much boilerplate cruft as possible
projectgus Jan 27, 2016
9df050d
STM FW: Rename to esplant_stm_fw
projectgus Jan 27, 2016
e329b76
Merge branch 'master' into feature/stop_mode
projectgus Jan 27, 2016
814c95a
Fix concurrent STOP mode and USB support
projectgus Jan 27, 2016
9ba2b72
STM: Flush TXDR register if we have no i2c data to send
projectgus Jan 27, 2016
d1b95b7
Updated ESP firmware to add most of the sensors.
wolfeidau Jan 27, 2016
3598536
Added ESP Kwai library which bridges I2C from ESP to ARM for ADCs.
wolfeidau Jan 27, 2016
8478fd1
STM Makefile: flash target should exit after flashing
projectgus Jan 27, 2016
734220f
STM: Power on ADC whenever awake, save on unexpected delays
projectgus Jan 27, 2016
0c9d8ee
STM: Change TXD flush mechanism yet again
projectgus Jan 27, 2016
bfc4108
STM: Sanitise resetting of i2c bus
projectgus Jan 27, 2016
72bb4b3
STM FW: Version 0.2
projectgus Jan 27, 2016
c26794e
Removing all these huge images
mage0r Jan 29, 2016
e107b1b
Changed to using secure client.
wolfeidau Jan 29, 2016
3f24c6c
Replace renders on README with a board photo
projectgus Jan 30, 2016
305231e
Reword README picture captions
projectgus Jan 30, 2016
8c8ed59
Minor visual clean up on power schematic
projectgus Jan 30, 2016
25f4f4c
Updated Link to Plant Sensor Libraries
adricl Jan 30, 2016
a913d9f
Updated with Libraries that are requried
adricl Jan 30, 2016
774819a
Fixed spacing
adricl Jan 30, 2016
d19e79e
Text Update
adricl Jan 30, 2016
907c329
Merge pull request #5 from adricl/patch-1
mage0r Jan 30, 2016
4e7d41a
Merge pull request #6 from adricl/patch-2
mage0r Jan 30, 2016
7058822
Update README.md to include required Adafruit Unified Sensor Driver
cardre Jan 30, 2016
2a5027e
Merge pull request #7 from cardre/master
mage0r Jan 30, 2016
fa207dd
Fix number of LEDs in NeoPixel ring
cardre Jan 30, 2016
0a1fa6c
Fix number of LEDs in NeoPixel ring
cardre Jan 30, 2016
b7de726
Merge pull request #8 from cardre/master
mage0r Jan 30, 2016
9cb1de7
README improvements, STM Makefile tweaks
projectgus Jan 31, 2016
2766a12
Rename ESPlant_sensor.ino to ESPlant_MQTT_sensor.ino
cardre Jan 31, 2016
a019665
Rename ESPlant_sensor to ESPlant_MQTT_sensor
cardre Jan 31, 2016
38fcdb4
Make git submodules for all third party libraries
projectgus Jan 31, 2016
8c9698d
Add install_libraries.sh script to add all new libraries to Arduino f…
projectgus Jan 31, 2016
421088e
Add some comments and a default pin number for ESP_Kwai
projectgus Jan 31, 2016
0b9332b
Rename install_modules.sh to install_libraries.sh
projectgus Jan 31, 2016
da10828
Update install_libraries.sh script to work on OS X with no realpath
projectgus Jan 31, 2016
421c21b
Rejigged this and made TLS optional as well as updating README.
wolfeidau Jan 31, 2016
5b906fb
Merge branch 'add_tls_mqtt'
wolfeidau Jan 31, 2016
3f67a7e
Fix bug with install_libraries path detection
projectgus Jan 31, 2016
db1252a
ESP_Kwai: Rename battery_voltage to input_voltage, use millivolts as …
projectgus Jan 31, 2016
a0426c1
ESP_Kwai: Replace array of channel values with an enum, expose read_a…
projectgus Jan 31, 2016
a52569a
ESP_Kwai: Call Wire.begin() as part of begin()
projectgus Jan 31, 2016
2923633
Fix compile error in ESP_Kwai.begin()
projectgus Jan 31, 2016
acf1442
ESP_Kwai Use the Arduino "single class" model
projectgus Jan 31, 2016
6ab337d
Update minimum Arduino version to 1.6.6
projectgus Jan 31, 2016
67102ca
Update ESP_Onboarding submodule
projectgus Jan 31, 2016
8561860
Add new ESPlant_serial_sensor.ino sketch
cardre Jan 31, 2016
99cc712
Merge branch 'master' of github.com:CCHS-Melbourne/ESPlant
cardre Jan 31, 2016
63b893c
Harmonise READMEs, add staging instructions to main README
projectgus Jan 31, 2016
f0becd4
Remove old sensortest sketch
projectgus Jan 31, 2016
3017239
Just some tweaks to the readme to fix quotes.
wolfeidau Jan 31, 2016
05444d8
README: Add note about OneWire
projectgus Jan 31, 2016
bf40242
Update MQTT README
projectgus Jan 31, 2016
4b0ffcc
Change the git submodule url for the FT kicad library
projectgus Jan 31, 2016
c4ef8f8
Use 'git submodule update .' to avoid errors if Circuit submodule fails
projectgus Jan 31, 2016
29d8a7b
Add Adafruit's neopixel to the set of library submodules
projectgus Feb 1, 2016
b5481e5
Added neopixel streaming LED with color picker to random new color.
marcmerlin Feb 1, 2016
25e10bf
Fix color changing to set LED even if LED color didn't change.
marcmerlin Feb 1, 2016
866274b
Speed up and lenghten LED trail.
marcmerlin Feb 1, 2016
a79189a
Improve output of values.
marcmerlin Feb 1, 2016
a0cae00
Merge pull request #1 from marcmerlin/solar_voltage
marcmerlin Feb 1, 2016
a713dc1
Add new MQTT sensor sketch that uses deep sleep mode
Feb 1, 2016
51c080c
Add a constant for how long to sleep for
projectgus Feb 1, 2016
0242d0b
Merge branch 'feature/sleepsketch'
projectgus Feb 1, 2016
deadfbc
Merge pull request #10 from marcmerlin/master
mage0r Feb 1, 2016
4892624
Made PV output voltage an ifdef since it's not supported by default hw.
marcmerlin Feb 2, 2016
bf1c2b0
Merge pull request #14 from marcmerlin/master
mage0r Feb 2, 2016
de16106
Improved documentation.
marcmerlin Feb 2, 2016
25905c1
Merge pull request #15 from marcmerlin/doc_updates
mage0r Feb 2, 2016
1f9407d
Re-organized logging output by type and with units added.
marcmerlin Feb 2, 2016
55e85b4
Removed units next to values, and included units in variable names.
marcmerlin Feb 2, 2016
a5602b3
Merge pull request #16 from marcmerlin/improved_logs
wolfeidau Feb 2, 2016
1874e07
Small cleanups, added support for changing LED trail length and speed.
marcmerlin Feb 8, 2016
0c7d628
Merge pull request #19 from marcmerlin/improved_logs
projectgus Feb 8, 2016
d4d1478
README: Explain git clone requirements, only way to get submodules
projectgus Feb 20, 2016
8835fec
Added link to Mark's Github
mage0r Feb 26, 2016
7183abf
Add power selection resistors R203, R206 as "tie breakers" for VBAT=VIN
projectgus Feb 20, 2016
60b7210
Syntax fixes, delay to allow sending all MQTT logging
pwarren Nov 19, 2019
645bb90
Merge pull request #24 from pwarren/sleep_fixes
projectgus Feb 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,14 @@ Gerber/
# kicad backup stuff
*-bak
*-rescue.lib

# emacs
\#*
*~

# GTAGS
GPATH
GRTAGS
GTAGS

local.mk
29 changes: 28 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
[submodule "Circuit/freetronics_kicad_library"]
path = Circuit/freetronics_kicad_library
url = git@github.com:freetronics/freetronics_kicad_library.git
url = https://github.com/freetronics/freetronics_kicad_library.git
[submodule "Circuit/kicad-ESP8266"]
path = Circuit/kicad-ESP8266
url = https://github.com/jdunmire/kicad-ESP8266.git
[submodule "Libraries/ESP_Onboarding"]
path = Libraries/ESP_Onboarding
url = https://github.com/wolfeidau/ESP_Onboarding
[submodule "Libraries/pubsubclient"]
path = Libraries/pubsubclient
url = https://github.com/Imroy/pubsubclient.git
[submodule "Libraries/Adafruit_BME280_Library"]
path = Libraries/Adafruit_BME280_Library
url = https://github.com/adafruit/Adafruit_BME280_Library.git
[submodule "Libraries/Adafruit_ADXL345"]
path = Libraries/Adafruit_ADXL345
url = https://github.com/adafruit/Adafruit_ADXL345.git
[submodule "Libraries/ArduinoJson"]
path = Libraries/ArduinoJson
url = https://github.com/bblanchon/ArduinoJson.git
[submodule "Libraries/Adafruit_Sensor"]
path = Libraries/Adafruit_Sensor
url = https://github.com/adafruit/Adafruit_Sensor.git
[submodule "Libraries/Arduino-Temperature-Control-Library"]
path = Libraries/Arduino-Temperature-Control-Library
url = https://github.com/milesburton/Arduino-Temperature-Control-Library.git
[submodule "Libraries/ESP_MQTTLogger"]
path = Libraries/ESP_MQTTLogger
url = https://github.com/wolfeidau/ESP_MQTTLogger
[submodule "Libraries/adafruit_NeoPixel"]
path = Libraries/adafruit_NeoPixel
url = https://github.com/adafruit/adafruit_NeoPixel
11 changes: 6 additions & 5 deletions Circuit/ESPlant-Sensors.sch
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
EESchema Schematic File Version 2
LIBS:ESPlant-rescue
LIBS:freetronics_schematic
LIBS:power
LIBS:device
Expand Down Expand Up @@ -37,12 +38,12 @@ EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 3 3
Title ""
Date ""
Rev ""
Title "ESPlant"
Date "2016-02-20"
Rev "V1.5"
Comp ""
Comment1 ""
Comment2 ""
Comment1 "TAPR Open Hardware License"
Comment2 "Copyright (C) 2015 John Spencer & Angus Gratton"
Comment3 ""
Comment4 ""
$EndDescr
Expand Down
67 changes: 33 additions & 34 deletions Circuit/ESPlant-cache.lib
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ EESchema-LIBRARY Version 2.3
DEF +3V3 #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "+3V3" 0 140 50 H V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
ALIAS +3.3V
DRAW
P 2 0 1 0 -30 50 0 100 N
Expand Down Expand Up @@ -68,8 +68,8 @@ ENDDEF
DEF Battery BT 0 0 N Y 1 F N
F0 "BT" 100 50 50 H V L CNN
F1 "Battery" 100 -50 50 H V L CNN
F2 "" 0 40 60 V V C CNN
F3 "" 0 40 60 V V C CNN
F2 "" 0 40 50 V V C CNN
F3 "" 0 40 50 V V C CNN
DRAW
S -90 -7 90 -17 0 1 0 F
S -90 50 90 40 0 1 0 F
Expand All @@ -87,8 +87,8 @@ ENDDEF
DEF C C 0 10 N Y 1 F N
F0 "C" 25 100 50 H V L CNN
F1 "C" 25 -100 50 H V L CNN
F2 "" 38 -150 30 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 38 -150 50 H V C CNN
F3 "" 0 0 50 H V C CNN
$FPLIST
C?
C_????_*
Expand Down Expand Up @@ -130,8 +130,8 @@ ENDDEF
DEF CONN_01X02 P 0 40 Y N 1 F N
F0 "P" 0 150 50 H V C CNN
F1 "CONN_01X02" 100 0 50 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
$FPLIST
Pin_Header_Straight_1X02
Pin_Header_Angled_1X02
Expand All @@ -152,8 +152,8 @@ ENDDEF
DEF CONN_01X03 P 0 40 Y N 1 F N
F0 "P" 0 200 50 H V C CNN
F1 "CONN_01X03" 100 0 50 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
$FPLIST
Pin_Header_Straight_1X03
Pin_Header_Angled_1X03
Expand All @@ -176,8 +176,8 @@ ENDDEF
DEF CONN_01X05 P 0 40 Y N 1 F N
F0 "P" 0 300 50 H V C CNN
F1 "CONN_01X05" 100 0 50 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
$FPLIST
Pin_Header_Straight_1X05
Pin_Header_Angled_1X05
Expand All @@ -204,8 +204,8 @@ ENDDEF
DEF CONN_01X06 P 0 40 Y N 1 F N
F0 "P" 0 350 50 H V C CNN
F1 "CONN_01X06" 100 0 50 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
$FPLIST
Pin_Header_Straight_1X06
Pin_Header_Angled_1X06
Expand Down Expand Up @@ -234,8 +234,8 @@ ENDDEF
DEF CONN_01X08 P 0 40 Y N 1 F N
F0 "P" 0 450 50 H V C CNN
F1 "CONN_01X08" 100 0 50 V V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
$FPLIST
Pin_Header_Straight_1X08
Pin_Header_Angled_1X08
Expand Down Expand Up @@ -339,8 +339,8 @@ ENDDEF
DEF GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "GND" 0 -150 50 H V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
Expand Down Expand Up @@ -384,14 +384,13 @@ X K K 200 0 150 L 40 40 1 1 P
ENDDRAW
ENDDEF
#
# LM2903
# LM193-RESCUE-ESPlant
#
DEF LM2903 U 0 20 Y Y 2 F N
DEF LM193-RESCUE-ESPlant U 0 20 Y Y 2 F N
F0 "U" 150 150 60 H V C CNN
F1 "LM2903" 200 -200 60 H V C CNN
F1 "LM193-RESCUE-ESPlant" 200 -200 60 H V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
ALIAS LM293 LM393 LM193
DRAW
P 4 0 1 0 -200 200 200 0 -200 -200 -200 200 N
X ~ 1 500 0 300 L 40 40 1 1 C
Expand Down Expand Up @@ -441,10 +440,10 @@ ENDDEF
DEF PWR_FLAG #FLG 0 0 N N 1 F P
F0 "#FLG" 0 95 50 H I C CNN
F1 "PWR_FLAG" 0 180 50 H V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
DRAW
X pwr 1 0 0 0 U 20 20 0 0 w
X pwr 1 0 0 0 U 50 50 0 0 w
P 6 0 1 0 0 0 0 50 -75 100 0 150 75 100 0 50 N
ENDDRAW
ENDDEF
Expand Down Expand Up @@ -510,26 +509,26 @@ ENDDEF
DEF SW_PUSH SW 0 40 N N 1 F N
F0 "SW" 150 110 50 H V C CNN
F1 "SW_PUSH" 0 -80 50 H V C CNN
F2 "" 0 0 60 H V C CNN
F3 "" 0 0 60 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
DRAW
S -170 50 170 60 0 1 0 N
P 4 0 1 0 -40 60 -30 90 30 90 40 60 N
X 1 1 -300 0 200 R 60 60 0 1 P I
X 2 2 300 0 200 L 60 60 0 1 P I
X 1 1 -300 0 200 R 50 50 0 1 P I
X 2 2 300 0 200 L 50 50 0 1 P I
ENDDRAW
ENDDEF
#
# TEST_1P
#
DEF TEST_1P W 0 30 N N 1 F N
F0 "W" 0 270 40 H V C CNN
F1 "TEST_1P" 0 200 40 H V C CNN
F2 "" 200 0 60 H V C CNN
F3 "" 200 0 60 H V C CNN
F0 "W" 0 270 50 H V C CNN
F1 "TEST_1P" 0 200 50 H V C CNN
F2 "" 200 0 50 H V C CNN
F3 "" 200 0 50 H V C CNN
DRAW
C 0 130 30 0 1 0 N
X 1 1 0 0 100 U 60 60 1 1 P
X 1 1 0 0 100 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
Expand Down
Loading