Hi everyone! I'm new to Arduino, and I've been having lots of trouble getting my code to upload properly.
Can anyone help me? Here is the error message I got on my most recent upload.
"Arduino: 1.6.5 (Mac OS X), Board: "Arduino Uno"
Sketch uses 7,062 bytes (21%) of program storage space. Maximum is 32,256 bytes.
Global variables use 355 bytes (17%) of dynamic memory, leaving 1,693 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
WARNING: Category 'Sensor' in library DallasTemperature is not valid. Setting to 'Uncategorized'
WARNING: Category 'Sensor' in library DallasTemperature is not valid. Setting to 'Uncategorized'"
For such a tiny amount of code PLEASE post code, not attach.
#include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS 2
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
void setup(void)
{
// start serial port
Serial.begin(9600);
Serial.println("Dallas Temperature IC Control Library Demo");
// Start up the library
sensors.begin();
}
void loop(void)
{
// call sensors.requestTemperatures() to issue a global temperature
// request to all devices on the bus
Serial.print("Requesting temperatures...");
sensors.requestTemperatures(); // Send the command to get temperatures
Serial.println("DONE");
Serial.print("Temperature for the device 1 (index 0) is: ");
Serial.println(sensors.getTempCByIndex(0));
}
PaulS, actually, on the arduino website, under "Programming Questions", "error messages" is listed. so, since I do have an error message, I am allowed to post here.
also, I am very new to Arduino and had posted in this forum hoping for constructive help. I understand now that I need to include more information, but at the time I posted, I obviously did not. I am learning, as did everyone at one point.
I don't know about your upload problem but the last warnings:
viviankim:
WARNING: Category 'Sensor' in library DallasTemperature is not valid. Setting to 'Uncategorized'
WARNING: Category 'Sensor' in library DallasTemperature is not valid. Setting to 'Uncategorized'"
is due to a bug in the DallasTemperature library. I see it has been corrected on github (error introduced 15 July and corrected 17 July) but at least what I got downloaded mid August 2015 (in version 3.7.2) contains the bug.
You can get rid of the warnings by editing the library.properties found in ..../libraries/DallasTemperature/