ejgertz / amwa Goto Github PK
View Code? Open in Web Editor NEWAtmospheric Monitoring with Arduino
Atmospheric Monitoring with Arduino
Hey There,
You might want to check this code again. It compiles but doesn't correct output to the serial monitor what is happening nor does it power up the LCD that comes in the Make kit. I haven't been able to get this to work as a result even though I have confirmed 3 times the wiring is correct.
Steve
Probably a minor thing, but the text describing the tropo monitor doesn't say which digital pins to connect the transistor outputs too, but the code specifies pins 7 & 9. The Fritzings-generated pictures show 9 & 12. Probably not a big deal and it's probably easier to update the code in the repo than the text, but it would probably be helpful to note that the important thing is to be sure that the code matches however you wire the gadget.
Arduino: 1.6.11 (Windows 7), Board: "Arduino/Genuino Uno"
tropo_jun11a:4: error: stray '#' in program
+#include <SoftwareSerial.h>
^
tropo_jun11a:5: error: stray '#' in program
+#include <SD.h>
^
tropo_jun11a:6: error: stray '#' in program
+#include <EEPROM.h>
^
tropo_jun11a:7: error: stray '#' in program
+#include<stdlib.h>
^
C:\Users\Claire\Documents\Arduino\AMWA\tropo_jun11a\tropo_jun11a.ino: In function 'void setup()':
tropo_jun11a:4: error: 'include' was not declared in this scope
+#include <SoftwareSerial.h>
^
tropo_jun11a:4: error: 'SoftwareSerial' was not declared in this scope
+#include <SoftwareSerial.h>
^
tropo_jun11a:5: error: 'SD' was not declared in this scope
+#include <SD.h>
^
tropo_jun11a:6: error: 'EEPROM' was not declared in this scope
+#include <EEPROM.h>
^
tropo_jun11a:7: error: 'stdlib' was not declared in this scope
+#include<stdlib.h>
^
tropo_jun11a:13: error: 'LCDIn' was not declared in this scope
+LCDIn 2 A3
^
tropo_jun11a:19: error: expected primary-expression before 'char'
+char databuff1[16];
^
tropo_jun11a:20: error: expected primary-expression before 'char'
+char databuff2[16];
^
tropo_jun11a:21: error: expected primary-expression before 'char'
+char dispbuff[16];
^
tropo_jun11a:25: error: expected primary-expression before 'const'
+const int gasPin1 = A3;
^
tropo_jun11a:28: error: expected primary-expression before 'const'
+const int gasPin2 = A2;
^
tropo_jun11a:31: error: expected primary-expression before 'const'
+const int heaterPin1 = 7;
^
tropo_jun11a:34: error: expected primary-expression before 'const'
+const int heaterPin2 = 9;
^
tropo_jun11a:37: error: expected primary-expression before 'const'
+const int ledPin = 13;
^
tropo_jun11a:40: error: expected primary-expression before 'int'
+int gasVal1 = 0;
^
tropo_jun11a:43: error: expected primary-expression before 'int'
+int gasVal2 = 0;
^
tropo_jun11a:45: error: expected primary-expression before 'long'
+long warmup = 180000; // enter time for heaters to warmup, in milliseconds.
^
tropo_jun11a:48: error: expected primary-expression before 'long'
+long downtime = 360000; // enter delay between readings, in milliseconds.
^
tropo_jun11a:58: error: expected primary-expression before 'int'
+int addr = 0;
^
tropo_jun11a:61: error: expected primary-expression before 'int'
+int record = 0;
^
tropo_jun11a:64: error: expected primary-expression before 'int'
+int reclen = 5;
^
tropo_jun11a:67: error: expected primary-expression before 'int'
+int SDPresent = 1;
^
tropo_jun11a:69: error: expected primary-expression before 'void'
+void setup()
^
tropo_jun11a:102: error: expected primary-expression before '}' token
}
^
C:\Users\Claire\Documents\Arduino\AMWA\tropo_jun11a\tropo_jun11a.ino: In function 'void loop()':
And this error message for the tropo sketch:
tropo_jun11a:106: error: expected primary-expression before '{' token
{
^
tropo_jun11a:195: error: expected primary-expression before 'void'
+void writeDataToSD(String dataString1, String dataString2)
^
tropo_jun11a:227: error: expected primary-expression before '}' token
}
^
exit status 1
stray '#' in program
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The book describes using the EEPROM to store sensor readings if you don't have an SD card, but the tropo sketch never calls EEPROM.write() to store the data, so how is the data stored for later reading by the sketch in the "Reading Data Off EEPROM" section of the text?
I am receiving this error message trying to load the eeprom sketch:
Arduino: 1.6.11 (Windows 7), Board: "Arduino/Genuino Uno"
eeprom_jun11b:1: error: stray '#' in program
+#include <EEPROM.h>
^
eeprom_jun11b:1: error: expected unqualified-id before '+' token
+#include <EEPROM.h>
^
eeprom_jun11b:6: error: expected unqualified-id before '+' token
+int record = 0;
^
eeprom_jun11b:7: error: expected unqualified-id before '+' token
+unsigned int Sensor1 = 0;
^
eeprom_jun11b:8: error: expected unqualified-id before '+' token
+unsigned int Sensor2 = 0;
^
eeprom_jun11b:9: error: expected unqualified-id before '+' token
^
eeprom_jun11b:11: error: expected unqualified-id before '+' token
+int m;
^
eeprom_jun11b:12: error: expected unqualified-id before '+' token
^
eeprom_jun11b:13: error: expected unqualified-id before '+' token
+void setup()
^
exit status 1
stray '#' in program
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
In the code you stated the needed for a 3.3v power supply for the LCD provided when in fact you need to supply it 5v. Please revise your documentation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.