Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: Error while compiling sketch on: July 15, 2014, 08:20:56 am
wait,   scratch that last issue,   I was having a file location issue. 

adding these lines to HardwareSerial_private seems to fix it

https://github.com/matthijskooijman/Arduino/commit/10a89a1d8df761c424c02282d3ed37885df8e478

2  Using Arduino / Programming Questions / Re: Error while compiling sketch on: July 15, 2014, 08:06:51 am
I am having the same problem only for the atmega16. 

I have accommodated the PE/UPE bug as far as I can tell by using

https://github.com/matthijskooijman/Arduino/blob/10a89a1d8df761c424c02282d3ed37885df8e478/hardware/arduino/avr/cores/arduino/HardwareSerial_private.h

however I a still getting errors when compiling for atmega16


In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial.cpp:32:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\/HardwareSerial_private.h: In member function 'void HardwareSerial::_rx_complete_irq()':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\/HardwareSerial_private.h:107: error: 'rx_buffer_index_t' was not declared in this scope
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\/HardwareSerial_private.h:107: error: expected `;' before 'i'
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\/HardwareSerial_private.h:113: error: 'i' was not declared in this scope
3  Using Arduino / Project Guidance / Re: I am having trouble serving more than the index file from SD card on a w5100 on: May 17, 2014, 10:21:43 am
Thank-you very much!   That certainly narrows it down for me!

4  Using Arduino / Project Guidance / Re: I am having trouble serving more than the index file from SD card on a w5100 on: May 16, 2014, 06:37:05 pm
I do apologize but I have looked at the playground code quite a bit and it is well above my head.   I know basic arduino commands and very basic HTML (I used wizards and generators mostly) but this appears beyond me.  Is there anything explicit you can point out for me,   this is my code to serve the index.

Here is the code I am using for serving the index page.

#include <SPI.h>
#include <Ethernet.h>
#include <SD.h>

// MAC address from Ethernet shield sticker under board
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(10, 0, 0, 20); // IP address, may need to change depending on network
EthernetServer server(80);  // create a server at port 80

File webFile;

void setup()
{
    Ethernet.begin(mac, ip);  // initialize Ethernet device
    server.begin();           // start to listen for clients
    Serial.begin(9600);       // for debugging
   
    // initialize SD card
    Serial.println("Initializing SD card...");
    if (!SD.begin(4)) {
        Serial.println("ERROR - SD card initialization failed!");
        return;    // init failed
    }
    Serial.println("SUCCESS - SD card initialized.");
    // check for index.htm file
    if (!SD.exists("index.htm")) {
        Serial.println("ERROR - Can't find index.htm file!");
        return;  // can't find index file
    }
    Serial.println("SUCCESS - Found index.htm file.");
}

void loop()
{
    EthernetClient client = server.available();  // try to get client

    if (client) {  // got client?
        boolean currentLineIsBlank = true;
        while (client.connected()) {
            if (client.available()) {   // client data available to read
                char c = client.read(); // read 1 byte (character) from client
                // last line of client request is blank and ends with \n
                // respond to client only after last line received
                if (c == '\n' && currentLineIsBlank) {
                    // send a standard http response header
                    client.println("HTTP/1.1 200 OK");
                    client.println("Content-Type: text/html");
                    client.println("Connection: close");
                    client.println();
                    // send web page
                    webFile = SD.open("index.htm");        // open web page file
                    if (webFile) {
                        while(webFile.available()) {
                            client.write(webFile.read()); // send web page to client
                        }
                        webFile.close();
                    }
                    break;
                }
                // every line of text received from the client ends with \r\n
                if (c == '\n') {
                    // last character on line of received text
                    // starting new line with next character read
                    currentLineIsBlank = true;
                }
                else if (c != '\r') {
                    // a text character was received from client
                    currentLineIsBlank = false;
                }
            } // end if (client.available())
        } // end while (client.connected())
        delay(1);      // give the web browser time to receive the data
        client.stop(); // close the connection
    } // end if (client)
}
 
5  Using Arduino / Project Guidance / Re: Making a rookie relay module mistake? on: May 16, 2014, 06:24:14 pm
I have the 8 unit module of the same make and you should be able to get it to click regardless.  You don't even have to hook the motor up and you should be able to make it click.   It is possible this is a damaged module?  Try bridging IN1 on the relay board to 5v with power and ground connected,   it should click.
6  Using Arduino / Project Guidance / I am having trouble serving more than the index file from SD card on a w5100 on: May 16, 2014, 05:54:39 pm
Problem Description:  I am trying to serve an index file (possessing the outline of a menu) and the accompanying .css and .js file.   However when I use a webserver example that serves the index.htm off the SD card it behaves as though its a bare index file all by itself.   I have shortened the names to 8.3 just in case that was the issue but it did not.

Does anybody know what I might be missing?
here is my html for the menu


<!DOCTYPE HTML>
<html>
<head>
<title>Test Menu</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="mbc.css" type="text/css" />
</head>
<body>


<ul id="mbmcpebul_table" class="mbmcpebul_menulist css_menu" style="width: 91px; height: 35px;">
  <li class="topitem"><a><div class="buttonimg buttonimg_35" style="width: 91px; background-image: url('mb_set_time.gif')">Set Time</div></a>
  <ul>
  <li><a title="">12/24 Hour Manual Set</a></li>
  <li><a title="">NTP Time Server</a></li>
  <li><a title="">Epoch Time Set</a></li>
  </ul></li>
</ul>
<!-- Menus will work without this javascript file. It is used only for extra
     effects, improved usability and compatibility with very old web browsers. -->
<script type="text/javascript" src="mbj.js"></script>
</body>
</html>
7  Forum 2005-2010 (read only) / Syntax & Programs / Codebumping and the arduino bootloader on: November 07, 2006, 04:31:30 pm
I have two questions really

1st I am unfamiliar with the bootloader that arduino uses, is there a way to bump down the code one a .hex file to make room for the arduino bootloader?  How big is the bootloader?

2nd  Is there a way to load a hex file compiled with gccavr (1-wire support) from a standalone app like hyperterm or from the arduino sketchbook?




8  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: October 27, 2006, 09:56:24 pm
Not alot of help on that one,   the hardware connects are correct but there is not much in software.  I have found WinAVR had built in 1-wire support,   but I dont yet know if its possible to load a WinAVR hex file using the arduino bootloader.   Im gonna have to do a little more research.
9  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: October 24, 2006, 04:13:42 pm
I have found a site with 1-wire support for the atmega16,   with source

http://gandalf.arubi.uni-kl.de/avr_projects/tempsensor/index.html


Does anyone know how I might integrate this with the arduino IDE

or am I barking up the wrong tree,  

I am pretty good with the hardware but I am fairly poor with the software stuff
10  Forum 2005-2010 (read only) / Interfacing / Arduino and 1-wire on: October 22, 2006, 05:46:33 pm
Has anyone tried connecting to a dallas 1-wire temperature sensor yet?


looking for tips on it

DS18B20 is the sensor
11  Forum 2005-2010 (read only) / Interfacing / Re: AC Light Dimming on: January 19, 2011, 03:54:43 pm
Still working on this,   out of curiosity what would be required to run on 220V AC?
12  Forum 2005-2010 (read only) / Interfacing / Re: AC Light Dimming on: November 29, 2010, 12:07:19 pm
Very cool,  thank-you very much.  

I will reply back with the results if I don't turn myself into a cinder.

  
13  Forum 2005-2010 (read only) / Interfacing / Re: AC Light Dimming on: November 29, 2010, 11:43:43 am
Can a BTA20 be dropped in place of the BTA10 to provide more amperage.

I need to control several 2kw heating elements
14  Forum 2005-2010 (read only) / Interfacing / Re: 1-wire on: October 23, 2006, 06:16:15 pm
Thanks   smiley


I have a thread running in the software interface section now.

15  Forum 2005-2010 (read only) / Interfacing / Re: 1-wire on: October 23, 2006, 01:22:22 pm
The rreason they are so very very useful is that several dozen or even hundreds can exist on a single digital pin, and they can be placed any distance away from the processor (within reason) and not suffer any ill effects from the buildup in wire resistance.    

So instead of 4 or 5 analog thermistors connected near to the board you can have 100 and never use more than 1 digital pin to do it.


each sensor is individually addressable using its 64bit address


Pages: [1] 2