Giter Site home page Giter Site logo

amwa's People

Contributors

ejgertz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amwa's Issues

Code doesn't match tutorial

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

Digital pin numbers for controlling sensors?

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.

error message in Tropo skectch

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.

Writing data to EEPROM in the tropo sketch?

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?

error message stray #

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.