-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinfo_and_refs.ino
105 lines (87 loc) · 4.25 KB
/
info_and_refs.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/******************************************************************************
EarthListener by Pieter Sijmons @ Velleman NV
Based on examples by Adafruit, SparkFun and Tom Igoe
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
Special thanks to Marie-Suzanne for keeping me fed & sane while coding/debugging.
Thanks to Xavier, Brecht & Philip for their help and guidance.
Thanks to the Velleman forum supporter Bert.test to help us debugging the code and all those who contributed to this firmware!
-------------------------------
BasicReadings.ino
by Nathan Seidle @ SparkFun Electronics March 9th, 2018
https://www.sparkfun.com/products/14348
Get basic environmental readings from the BME280
This example shows how to read humidity, pressure, and current temperature from the BME280 over I2C.
Hardware connections:
BME280 -> Arduino
GND -> GND
3.3 -> 3.3
SDA -> A4 (UNO)
SCL -> A5 (UNO)
-------------------------------
BasicReadings.ino
by Marshall Taylor & Nathan Seidle @ SparkFun Electronics April 4, 2017
https://github.com/sparkfun/CCS811_Air_Quality_Breakout
https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library
Read the TVOC and CO2 values from the SparkFun CSS811 breakout board
A new sensor requires at 48-burn in. Once burned in a sensor requires
20 minutes of run in before readings are considered good.
Hardware Connections (Breakoutboard to Arduino):
3.3V to 3.3V pin
GND to GND pin
SDA to A4 (UNO)
SCL to A5 (UNO)
-------------------------------
Graphicstest.ino
by Adafruit
https://github.com/adafruit/Adafruit-GFX-Library
// IMPORTANT: Adafruit_TFTLCD LIBRARY MUST BE SPECIFICALLY
// CONFIGURED FOR EITHER THE TFT SHIELD OR THE BREAKOUT BOARD.
// SEE RELEVANT COMMENTS IN Adafruit_TFTLCD.h FOR SETUP.
-> we use shield, so modify the library!!!
-------------------------------
Example1_BasicLightning_I2C.ino
by Elias Santistevan @ SparkFun Electronics May, 2019
https://www.sparkfun.com/products/15441
This example demonstrates how to detect lightning! It has a few basic
settings to help with rejecting noise or "disturbers" (false lightning events).
It uses the onboard interrupt hardware pin, so in addition to attaching to
it data lines you'll need to connnect to the interrupt pin labled "INT".
Hardware connections:
AS3935 -> Arduino
GND -> GND
VCC -> 5V
SDA -> A4 (UNO)
SCL -> A5 (UNO)
IRQ -> 2 (UNO)
-------------------------------
Speaker: - to GND
+ to A10
-------------------------------
Optional RGB LED: - to GND (or A11 on mega sensor shield)
G to A12
R to A13
B to A14
-------------------------------
Tuya VMA354 IoT interface module
Ccnnections:
VMA354 Arduino Mega
VCC 5V
GND GND
RX TX
TX RX
-------------------------------
SD card datalogger on TFT shield on Arduino Mega
Based on the example by Tom Igoe - 9 Apr 2012
This example shows how to log data from three analog sensors (A11 -> A14) to an SD card using the SD library.
The circuit:
** Mega: MOSI - pin 51, MISO - pin 50, CLK - pin 52, CS - pin 4 (CS pin can be changed)
and pin #52 (SS) must be an output
=> because we are using an TFT shield with SD card, some modifications needs to be done in the libary
1. Download the SD Adafruit library from https://github.com/adafruit/SD and replace the file in your library
2. comment out #define USE_SPI_LIB from both Sd2Card.h and Sd2Card.cpp.
3. Modify Sd2Card.h to enable the softSPI for Mega 2560 by modifying this line: #define MEGA_SOFT_SPI 1 //change it to non-zero from 0
-------------------------------
******************************************************************************/