Show Posts
Pages: [1] 2 3 ... 16
1  Using Arduino / Installation & Troubleshooting / Trying to connect a Arduino to a thin client running a RDP session? Yes you can! on: June 25, 2014, 04:05:00 pm
You can indeed connect a Arduino to a thin client, with the IDE running on the server through a RDP session!

Need two usb support files, and the zipped version of the Arduino IDE.

http://arduinotronics.blogspot.com/2014/06/setting-up-arduino-to-work-via-windows.html
2  Community / Website and Forum / Re: Problem with datalogger example in SD library on: June 22, 2014, 08:29:19 am
https://www.pjrc.com/teensy/td_libs_DS1307RTC.html
3  Community / Website and Forum / Re: Problem with datalogger example in SD library on: June 21, 2014, 10:17:23 am
This is an old topic, but since the last post indicated a sdcard / ds1307 sketch would be posted, and I didn't see it posted, I'm posting mine. The only issue I'm having is datalog.txt has to be erased each time it's used, as if it already exists,

Initializing SD card...Card failed, or not present
error opening datalog.txt


Is the result.

Code:
// Real Time Clock

#include <Wire.h>
#include <Time.h>
#include <DS1307RTC.h>

/*
  SD card datalogger
 
 This example shows how to log data from three analog sensors
 to an SD card using the SD library.
   
 The circuit:
 * analog sensors on analog ins 0, 1, and 2
 * SD card attached to SPI bus as follows:
 ** MOSI - pin 11
 ** MISO - pin 12
 ** CLK - pin 13
 ** CS - pin 4
 
 created  24 Nov 2010
 modified 9 Apr 2012
 by Tom Igoe
 
 This example code is in the public domain.
     
 */

#include <SD.h>

// On the Ethernet Shield, CS is pin 4. Note that even if it's not
// used as the CS pin, the hardware CS pin (10 on most Arduino boards,
// 53 on the Mega) must be left as an output or the SD library
// functions will not work.
const int chipSelect = 4;

  //make a string to hold date & time
  String dateTime = "";
 
   // make a string for assembling the data to log:
  String dataString = "";

void setup()
{
 // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }


  Serial.print("Initializing SD card...");
  // make sure that the default chip select pin is set to
  // output, even if you don't use it:
  pinMode(10, OUTPUT);
 
  // see if the card is present and can be initialized:
  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or not present");
    // don't do anything more:
    return;
  }
  Serial.println("card initialized.");
 

}

void loop()
{
 
  //zero date & time string
  dateTime = "";
 
   //zero data string
  dataString = "";
 
 
  // Setup time
  tmElements_t tm;
 
  //read date and time into a string
  if (RTC.read(tm)){
  dateTime += ",";
  dateTime += tm.Hour;
  dateTime += ":";
  dateTime += tm.Minute;
  dateTime += ":";
  dateTime += tm.Second;
  dateTime += ",";
  dateTime += tm.Month;
  dateTime += "/";
  dateTime += tm.Day;
  dateTime += "/";
  dateTime += tmYearToCalendar(tm.Year);
  }
 
 

  // read three sensors and append to the string:
  for (int analogPin = 0; analogPin < 3; analogPin++) {
    int sensor = analogRead(analogPin);
    dataString += String(sensor);
    if (analogPin < 2) {
      dataString += ",";
    }
  }

  // open the file. note that only one file can be open at a time,
  // so you have to close this one before opening another.

  File dataFile = SD.open("datalog.txt", FILE_WRITE);

  // if the file is available, write to it:
  if (dataFile) {
    dataFile.print(dataString);
    dataFile.println(dateTime);
    dataFile.close();
    // print to the serial port too:
    Serial.println(dataString);
    Serial.println(dateTime);
  } 
  // if the file isn't open, pop up an error:
  else {
    Serial.println("error opening datalog.txt");
      }
}
4  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wifi Shield Port Issue on: June 08, 2014, 06:33:43 pm
No SD card.
5  Using Arduino / Programming Questions / Re: WiFiClient port numbers? on: June 08, 2014, 09:14:38 am
I had 1.0.2, but I think I removed it recently. I don't see it on the site anymore. Is there a URL to still get it? Hopefully I'll be able to reload the 1.0.2 firmware.
6  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wifi Shield Port Issue on: June 08, 2014, 08:52:47 am
C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>batchisp.exe -device AT32UC3A1512 -h
ardware usb -operation erase f memory flash blankcheck loadbuffer c:\wifitemp\wi
fiHD.elf program verify start reset 0
Running batchisp 1.2.5 on Sun Jun 08 09:50:56 2014



AT32UC3A1512 - USB - USB/DFU


Device selection....................... PASS
Hardware selection..................... PASS
Opening port........................... PASS
Reading Bootloader version............. PASS    1.0.2
Erasing................................ PASS
Selecting FLASH........................ PASS
Blank checking......................... PASS    0x00000 0x7ffff
Parsing ELF file....................... PASS    c:\wifitemp\wifiHD.elf
WARNING: The user program and the bootloader overlap!
Programming memory..................... PASS    0x00000 0x3fe2b
Verifying memory....................... PASS    0x00000 0x3fe2b
Starting Application................... PASS    RESET   0

Summary:  Total 11   Passed 11   Failed 0

C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>batchisp.exe -device AT32UC3A1512 -h
ardware usb -operation erase f memory flash blankcheck loadbuffer c:\wifitemp\wi
fi_dnld.elf program verify start reset 0
Running batchisp 1.2.5 on Sun Jun 08 09:51:37 2014



AT32UC3A1512 - USB - USB/DFU


Device selection....................... PASS
Hardware selection..................... PASS
Opening port........................... PASS
Reading Bootloader version............. PASS    1.0.2
Erasing................................ PASS
Selecting FLASH........................ PASS
Blank checking......................... PASS    0x00000 0x7ffff
Parsing ELF file....................... PASS    c:\wifitemp\wifi_dnld.elf
WARNING: The user program and the bootloader overlap!
Programming memory..................... PASS    0x00000 0x2902b
Verifying memory....................... PASS    0x00000 0x2902b
Starting Application................... PASS    RESET   0

Summary:  Total 11   Passed 11   Failed 0

C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>
7  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wifi Shield Port Issue on: June 08, 2014, 08:48:51 am
I am using 1.0.5. The shield is sitting solidly in place, all the pins are straight and in correct positions.  jumper is removed (was set during programming). Both files uploaded correctly from c:\wifitemp\


8  Using Arduino / Programming Questions / Re: WiFiClient port numbers? on: June 08, 2014, 08:36:14 am
I can download a previous version of the Arduino IDE I suppose and grab the files from that. The command line says both files uploaded successfully, but they don't work.
9  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wifi Shield Port Issue on: June 08, 2014, 08:33:50 am
There's one in wifishield/wifi_dnld/Release and one in wifishield/binary.

I am using a R3 UNO, and was connecting to the Internet previous to the upgrade.

10  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wifi Shield Port Issue on: June 08, 2014, 08:23:06 am
Yes two clean files from the firmware directory of 1.0.5

there's two of the wifi_dnld.elf files, but have the same size and date. January 2014.
11  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wifi Shield Port Issue on: June 08, 2014, 07:58:39 am
I used c:\wifitemp\

But other than that, did the same. Still have solid blue data light, and "Wifi shield not found" ...
12  Using Arduino / Networking, Protocols, and Devices / Re: Initializing Wifi... MAC: 0:0:0:0:0:0 on arduino wifi shield r3 on: June 08, 2014, 07:57:36 am
I did the same, but have a solid blue data light, and "Wifi shield not found".
13  Using Arduino / Programming Questions / Re: WiFiClient port numbers? on: June 08, 2014, 07:56:06 am
The file does exist, but apparently windows has protection issues with the program files directory, so I copied the two files to C:\wifitemp and those errors went away.

There are no directions as to what to do with fuses, I followed the instruction posted on the arduino site for uploading the two files.

I have a solid blue data light. "Wifi shield not present"

14  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wifi Shield Port Issue on: June 08, 2014, 07:47:59 am
Yes, jumper is removed. I have a solid blue data light, but "No wifi shield found".
15  Using Arduino / Networking, Protocols, and Devices / Re: WIFI Shield firmware update 1.0.5 attempt on: June 08, 2014, 07:35:23 am
I put the two files in a temp directory, they upload ok, I get the blue light on constantly, and "Wifi Shield Not found" ...
Pages: [1] 2 3 ... 16