Loading...
  Show Posts
Pages: 1 2 [3] 4 5 ... 11
31  Using Arduino / Displays / Re: Problem with LiquidCrystal_I2C library on: September 14, 2012, 08:35:41 pm
Thanks for responding "fm"! I changed the name of the liquid Crystal_I2C library and loaded the one you suggested. Ran an example, got this error:

C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp: In member function 'int I2CIO::begin(uint8_t)':
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:68: error: 'class TwoWire' has no member named 'read'
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp: In member function 'uint8_t I2CIO::read()':
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:121: error: 'class TwoWire' has no member named 'read'
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp: In member function 'int I2CIO::write(uint8_t)':
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:144: error: 'class TwoWire' has no member named 'write'

Still lost

Jim
32  Using Arduino / Displays / Problem with LiquidCrystal_I2C library on: September 13, 2012, 08:16:33 pm
I building a project which is well along using Arduino 1.0.1. I want to add a 20x4 LCD. The one I bought used an I2C connection.
A test sketch from the vendor would not compile error free, and I determined it's library is for Arduino 022. I have
searched the web for a library that works with 1.0.1. I found one from Yourduino at
http://arduino-info.wikispaces.com/LCD-Blue-I2C.
Using library labeled "LiquidCrystal_I2C Library for 20 character 4 line displays" which says on the page it is for 1.0.1.
And the sketch Example "Software Sketch for 4 line 20 character Displays", at bottom of page.

Arduino 1.0.1 gives this error

C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp:
In member function 'void LiquidCrystal_I2C::expanderWrite(uint8_t)':
C:\Users\Jim\Documents\Arduino\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp:261:
error: 'class TwoWire' has no member named 'write'

Does anyone how to fix this?

Jim               
33  Community / Bar Sport / Re: Sainsmart on: September 11, 2012, 09:34:47 pm
I have purchased several items from Sainsmart, including a 2650. All arrived working. All still do!

Jim
34  Using Arduino / Networking, Protocols, and Devices / client responses back to server on: September 09, 2012, 11:46:24 am
I am trying to create a simple home control over Ethernet system. I am trying to expand on Arduserver2 (arduserver.com/a5as2code.htm). I am doing fine with the outgoing part, I am displaying on the client just what I wanted for my test. My problem is getting and responding to what comes back from the client. I left two buttons and code from my sample however nothing works as advertised. If I click either button, the client appears to refresh, but times out. The address line on the client line says http://mon7nc.dyndns.org:81/\. The site is 207.225.26.203, if you want to see what it is doing. I left the server up. I simplified the code to the minimum. The code is:
#include <SPI.h>
#include <Ethernet.h>
#include <dht11.h>
/*-----( Declare objects )-----*/
dht11 DHT11;
/*-----( Declare Constants, Pin Numbers )-----*/
#define DHT11PIN 7
byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
byte ip[] = {
  192,168,0,15};//240 7NC... shared with old, nuElec, 254 SX
const byte bPort = 80;
const byte bLEDpin=6;//Was on 8 in version c
const byte bSensor1 = 0;
const byte MaxArrayElement=252;
char c,cMstRecentCmnd='/';
char cLineBuffer[MaxArrayElement];
byte bPlaceInBuffer;
Server server(bPort);
void setup()
{
  // start the Ethernet connection and the server:
  Ethernet.begin(mac, ip);
  server.begin();
  pinMode(bLEDpin,OUTPUT);
  LEDOff();
}
void loop()
{
  int iAn0;
  Client client = server.available();
  if (client){
    boolean currentLineIsBlank = true;
    bPlaceInBuffer=0;
    char cCmnd='H';
    cMstRecentCmnd='H';
    while (client.connected()) {
      if (client.available()) {
        c = client.read();
        if ((c!='\n') && (c!='\r')){
          cLineBuffer[bPlaceInBuffer]=c;
          if (bPlaceInBuffer<MaxArrayElement) {
            bPlaceInBuffer++;
          };
        }
        if (c == '\n' && currentLineIsBlank) {
          delay(250);
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
          client.println("<html>");
          client.println("<head>");
          client.print("<title>Test Server</title>");
          client.println("</head>");
          client.println("</head>");
          client.println();
          client.println("<body>");
          iAn0=analogRead(bSensor1);
          if (iAn0>320)
          {
            client.println("<p>Room: <b>well lit</b>.</p>");
          }
          else
          {
            if (iAn0>30)
            {
              client.println("<p>Room: <b>dim</b>.</p>");
            }
            else
            {
              client.println("<p><b>Room is dark.</b></p>");
            };
          };
          client.println("<form METHOD=get action=\"http://mon7nc.dyndns.org:81/\">");
          client.println("<input type=hidden name=\"cmd\" value=\"1\">");
          client.println("<input type=submit value=\"LED On\">");
          client.println("</form>");
          client.println();
          client.println("<form METHOD=get action=\"http://mon7nc.dyndns.org:81/\">");
          client.println("<input type=hidden name=\"cmd\" value=\"0\">");
          client.println("<input type=submit value=\"LED Off\">");
          client.println("</form>");
          client.println("</body>");
          client.println("</html>");
          break;
        }
        if (c == '\n') {
          currentLineIsBlank = true;
            if ((cLineBuffer[0]=='G')&&(cLineBuffer[1]=='E')&&(cLineBuffer[2]=='T'))
            {
              cCmnd=cLineBuffer[10];
              if (cCmnd!='/') {
                DoCmnd(cCmnd);
              };
            }
          }
          bPlaceInBuffer=0;
          }
        else if (c != '\r') {
          currentLineIsBlank = false;
        }
      }
    }
    delay(1);
    client.stop();
  }
void DoCmnd(char cLCmnd)
{
  if (cLCmnd=='0'){
    cMstRecentCmnd=cLCmnd;
    LEDOff();
  };
  if (cLCmnd=='1'){
    cMstRecentCmnd=cLCmnd;
    LEDOn();
  };
}
void LEDOn(){
  digitalWrite(bLEDpin,HIGH);
}
void LEDOff(){
  digitalWrite(bLEDpin,LOW);
}


Setup is a Duemilanove, an Ethernet 5100 shield and a Sensor brick with a led brick(D6) and a light brick(A0). The light brick is just measuring ambient.

Jim
35  Community / Bar Sport / Re: What is the most expensive board you ever smoked? on: September 02, 2012, 08:29:40 pm
I didn't destroy anything but data, but once we had an emergency in final test that required a "main power down". I shut off the breaker in that area. It turned out the IBM370 upstairs was on the same circuit and they were doing payroll.

Jim
36  Development / Other Software Development / Re: leOS - a simple taskmanager/scheduler on: August 26, 2012, 01:39:38 pm
This is really helpful! however the ONETIME keyword does not work. I'm starting task1 to happen every two seconds. Task2 is onetime and I restart is each time task1 happens. However, task2 happens continually.

Jim
37  Development / Suggestions for the Arduino Project / Redo eethershield with sd socket in front on: August 24, 2012, 07:20:38 pm
I was using one of the Chinese enc28j60 shields and having difficulties with the programming. I had just cut one big hole in the box to access the SD slot and USB port. I bought the "official" shield which is much easier! However with the other shield I could just change SD memory by grasping it with needlenose pliers and pulling it out. Now, every time I need to change data on the SD, I have to disassemble the box. Not exactly user friendly. Next redesign you should move the SD.

Jim
38  Using Arduino / Installation & Troubleshooting / Re: Strange 1.0.1 IDE problem on: August 16, 2012, 07:46:55 pm
Sounds like a video driver or abstraction layer issue. The app is having trouble "repainting" for some reason. There are a few properties one can tweak on the VM to control how it uses DirectDraw and other 2D and 3D drawing APIs. First, you should make sure your video driver is sound, and DirectDraw is current.
This started when I upgraded to Win7. It was not seen before! Firefox, Openoffice, Notepad++ and Arduino 0.22 all work correctly with Win7.

Jim
39  Using Arduino / Installation & Troubleshooting / Strange 1.0.1 IDE problem on: August 15, 2012, 07:58:01 pm
I just upgraded my computer from XP to Win7. In the IDE when I bring up a menu ie. File->Sketchbook, chose an option the IDE doesn't completely clean off the menu. I end up with orphan partial windows on the screen. Does 1.0.1 have an issue with Win7? Also how do you remove extra tabs you have inserted from your project?

40  Using Arduino / Installation & Troubleshooting / Re: Arduinos not being connected on: August 02, 2012, 07:25:50 pm
Hi,

This happened to me too, some weeks ago, when i tryed to install the drivers for the Arduino board.
As I understood, the problem is that the drivers may not be properly installed, so they cause a critical error of the system.
I didn't solved it, because I quitted the problem installing it again on another computer, but I think is possible to find
and remove manually all drivers an files from arduino from the PC, and then install the drivers again.
Try it out! Good luck.

Tried it! No luck. I'm thinking of reformatting the drive and re-loading Windows.

Jim
41  Using Arduino / Installation & Troubleshooting / Arduinos not being connected on: August 01, 2012, 10:12:11 am
I was having problems with the IDE causing the BSOD. To solve this I copied the Arduino directory in My Computer to a pen drive and then deleted it in My Computer. I then deleted the Arduino 1.0.1 directory and re-downloaded from arduino.cc and installed 1.0.1 anew. Now I don't get the BSOD but when I plug my Arduinos into the USB port,  I get a " USB device not recognised" message from Windows. Strangely, the message keeps flashing up, then goes away. It never stops doing this until you remove the Arduino from the USB. BSOD is the nickname for the famous Windows error message if you don't know(stands for blue screen of death).

Jim
42  Development / Suggestions for the Arduino Project / Re: SIMPLE SERVER NOT SIMPLE on: July 27, 2012, 02:16:58 pm
Well... the 0022 version of Arduino advertises itself as "Alpha" on the splash screen (also see the About menu item).

This page: http://arduino.cc/en/Main/Software says "These packages are not supported any longer by the development team" and then lists every release from 1.0 downwards.

The problem is that various changes were made in version 1.0 onwards which required some rewriting. At least the Tutorial pages work with the latest release. Changing them to have lots of conditional stuff about "if release 0022 do this, else do that" would make the tutorials cluttered.

Personally I wish the release version was more compatible with the earlier versions, but I have no control over this stuff.


I agree with everything you said, however:
I am using several libraries NOT in the distro and did not to break them
I got to the simple server page with an Internet search not through the libraries page
Just putting a warning in the code about .02X vs 1.0 is pretty simple
Maybe they did not want to follow the Microsoft example ie. downward compatibility forever

Jim
43  Development / Suggestions for the Arduino Project / SIMPLE SERVER NOT SIMPLE on: July 26, 2012, 06:25:25 pm
I just purchased the Ethernet shield V2. As I have a large project I have been working on in version .022, I have stuck with it until I am done. I decided to load the "simple server" as that is closer to what I am wanting it for.The only thing I changed was the IP address. I spent 3 days trying to get it to compile with no luck. As a last try I loaded 1.01 of the ide. It compiled and ran  perfectly! i reloaded it in .022 does not compile! I went back to http://arduino.cc/en/Tutorial/WebServer. Nowhere on that page does it say that you needed the latest ide! Are not those sample sketches to help newbies? Is this helpful?

Jim
44  Development / Other Hardware Development / Re: Introduction to wireless communication (Bluetooth vs. XBee vs. Nordic vs. WiFi) on: July 21, 2012, 02:53:34 pm
APC220 2/$35 ON Ebay. Range up to 1200 meters.

Jim
45  Community / Bar Sport / Re: Cupid's Death on: July 13, 2012, 08:37:13 pm
I recently "retired" the S100 system I built in the mid 1990's. I used it to control a model train setup. The DSDD 8 1/2 inch drive finally died. I gave it to a friend who likes to tinker with obsolete electronics. It never had a name!

Jim
Pages: 1 2 [3] 4 5 ... 11