Loading...
  Show Posts
Pages: 1 ... 32 33 [34] 35 36
496  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: LiquidCrystal problem on: September 12, 2009, 11:23:11 am
Ok  -I found wiring.c and commented out the cli statements, but that didn't help.  Any other suggestions?
497  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: LiquidCrystal problem on: September 10, 2009, 05:45:15 pm
Great  -I'll try that to fix it.
Silly question though. I am using IDE 17 and don't have those folders anymore. Where exactly do I find wiring.c?

Thanks.
498  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: LiquidCrystal problem on: September 09, 2009, 06:12:42 am
Code:
/*
 * A simple sketch that uses WiServer to send a tweet with the current system time every 5 minutes
 */
#include <LiquidCrystal.h>
#include <WiServer.h>

#define WIRELESS_MODE_INFRA      1
#define WIRELESS_MODE_ADHOC      2

// Wireless configuration parameters ----------------------------------------
unsigned char local_ip[] = {192,168,1,2};      // IP address of WiShield
unsigned char gateway_ip[] = {192,168,1,1};      // router or gateway IP address
unsigned char subnet_mask[] = {255,255,255,0};      // subnet mask for the local network
const prog_char ssid[] PROGMEM = {"xxxxxx"};            // max 32 bytes
unsigned char security_type = 0;      // 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2

// WPA/WPA2 passphrase
const prog_char security_passphrase[] PROGMEM = {"12345678"};      // max 64 characters

// WEP 128-bit keys
// sample HEX keys
prog_uchar wep_keys[] PROGMEM = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,      // Key 0
                          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,      // Key 1
                          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,      // Key 2
                          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00      // Key 3
                        };

// setup the wireless mode
// infrastructure - connect to AP
// adhoc - connect to another WiFi device
unsigned char wireless_mode = WIRELESS_MODE_INFRA;
unsigned char ssid_len;
unsigned char security_passphrase_len;
// End of wireless configuration parameters ----------------------------------------


// Auth string for the Twitter account
char* auth = "[xxxxxxxxxxx]"; // Base64 encoded USERNAME:PASSWORD
//LiquidCrystal lcd(4, 3, 8, 7, 6, 5);

char temp_val[3];
char temps[3] ="";
char* weather = " ";
int inPin = 5;   // select the input pin for analog temp outside value
int inPin2 = 4;   // select the input pin for analog temp inside value
int inVal;  
int inVal2;// integer value for input read from sensor
int i;
int samples[8];
int t=0;
int ti=0;
int pt=0;
char n[6] = " ";
int x=0;
char* place=" ";
int photocellPin = 3;     // the cell and 10K pulldown are connected to a0 also try 1k for brighter areas
int photocellReading;     // the analog reading from the analog resistor divider
int inVal3=0;
int samples2[8];

// This function generates a message with the current system time
void currentTime() {
   WiServer.print("Arduino has been running for ");
   Serial.println("Arduino has been running for ");
   Serial.print(millis());
   WiServer.printTime(millis());
}

// A request that sends a Tweet using the currentTime function
TWEETrequest sentMyTweet(auth, currentTime);


void setup() {
    // Initialize WiServer (we'll pass NULL for the page serving function since we don't need to serve web pages)
  WiServer.init(NULL);
  
  // Enable Serial output and ask WiServer to generate log messages (optional)
  Serial.begin(57600);
  WiServer.enableVerboseMode(true);
}


// Time (in millis) when the next tweet should be sent
long tweetTime = 0;

void loop(){

  // Check if it's time to sent a tweet
  if (millis() >= tweetTime) {
      Serial.println("Sending tweet");
    sentMyTweet.submit();    
      Serial.println("Tweeted");
    // Send next tweet 5 minutes from now
    tweetTime += 1000 * 60 * 5;
  }
  
  // Run WiServer
  WiServer.server_task();
 
  delay(10);
}
499  Forum 2005-2010 (read only) / Frequently-Asked Questions / LiquidCrystal problem on: September 08, 2009, 08:38:22 pm
Hi,
I am trying to use a WiShield from http://asynclabs.com/home and a LCD with a Duemilanove and IDE 17.  Separately they both work fine.  Together the shield does not tweet successfully. I have  changed the pins, so I believe there is no conflict there.  
The problem seems to be when I add line LiquidCrystal lcd(4, 3, 8, 7, 6, 5);  As you can see the shorter response from Twitter does not result in a finished Tweet.  I have tested this several times and I get the following:

With line LiquidCrystal lcd(4, 3, 8, 7, 6, 5);

Sending tweet
Tweeted
Connected to twitter.com
Arduino has been running for
19678TX 251 bytes
RX 0 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 88 bytes from twitter.com
Ended connection with twitter.com

Without  line LiquidCrystal lcd(4, 3, 8, 7, 6, 5);

Sending tweet
Tweeted
Connected to twitter.com
Arduino has been running for
18490TX 251 bytes
RX 0 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 164 bytes from twitter.com
RX 88 bytes from twitter.com
Ended connection with twitter.com

I believe the LiquidCrystal library is causing the problem.
Does anyone have any suggestions?

500  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Externally Power an LCD on: September 09, 2009, 01:54:25 pm
Thanks guys.  I found one at Adafruit as well.

http://www.adafruit.com/index.php?main_page=product_info&cPath=38&products_id=186

 smiley
501  Forum 2005-2010 (read only) / Frequently-Asked Questions / Externally Power an LCD on: September 07, 2009, 01:22:55 pm
Hi,
I'm using an Duemilanove to power some sensors and a 16 x 2 LCD, but  the LCD screen is using to much power and I want to power it with a 9 volt battery.  I have been using the 5 volts from the Arduino.
What is the best way to externally (not from the Arduino) power a HD44780 16x2 LCD without frying it?

Thanks smiley
502  Forum 2005-2010 (read only) / Frequently-Asked Questions / Debugging log on: August 28, 2009, 05:39:11 pm
Hi,
Anyone know an easy way to write to a log file?
I'm using a Deumilanove with a WiShield and trying to figure out why I stop sending tweets.  I'm currently connected via USB to a MAC.
How do I write to a log file, not just print to the serial monitor?

Thanks.
503  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: AFWave Library Problems on: July 06, 2009, 10:27:23 am
Awesome, I'll ignore this message.  

thanks.
504  Forum 2005-2010 (read only) / Frequently-Asked Questions / AFWave Library Problems on: July 05, 2009, 05:15:42 pm
Hi,
Has anyone used the Audio Shield from Adafruit?
I'm using version 15 of the Arduino software.
I can't get the AFWave library to load.  I get the following error.

fat16.cpp: In function 'fat16_file_struct* fat16_open_file(fat16_fs_struct*, const fat16_dir_entry_struct*)':
fat16.cpp:603: warning: only initialized variables can be placed into program memory area
Any help is appreciated.
Thanks.
505  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: OSX Port Issue - now a Windows XP issue on: March 19, 2009, 06:49:20 pm
Hi,
I had to switch computers to a Dell running XP.
I downloaded the drivers and it now reads the Arduino fine.
However when it starts receiving actual data, I get the following error.

Quote
Error 0x5 at /home/bob/foo/rxtx-devel/build/../src/termios.c(482): Accejava.io.IOException: No error in nativeavailable
      at gnu.io.RXTXPort.nativeavailable(Native Method)
      at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532)
      at processing.serial.Serial.serialEvent(Serial.java:221)
      at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
      at gnu.io.RXTXPort.eventLoop(Native Method)
      at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)
java.io.IOException: No error in nativeavailable
      at gnu.io.RXTXPort.nativeavailable(Native Method)
      at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532)
      at processing.serial.Serial.serialEvent(Serial.java:221)
      at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
      at gnu.io.RXTXPort.eventLoop(Native Method)
      at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)
ss is denied.

Anyone know how to fix this error?
What does ss is denied mean?
Any help is appreciated.  Thanks.
506  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: OSX Port Issue on: March 09, 2009, 06:51:24 pm
Thanks.
No, never had to do this before with my OSX 10.5 computer.
Which driver do I need for OSX 10.4?

# VCP Drivers
# D2XX Drivers
507  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: OSX Port Issue on: March 09, 2009, 06:02:57 am
The OSX 10.4 machine is the G4 tower.  
How do I install and or check the drivers?

As far as I know the machine is up to date in terms of the latest OSX 10.4 software updates.
508  Forum 2005-2010 (read only) / Frequently-Asked Questions / OSX Port Issue on: March 08, 2009, 05:53:43 pm
Hi,
I'm running Processing connected to Arduino with a USB cable.  Basically the Processing sketch listens for input from a sensor connected to the Arduino and then calls a PHP page to send an email. With OSX 10.5 using port 2 it works fine. Moved it to a G4 Tower running OSX 10.4 and had to change the port to either 0 or 1.  Not getting any sensor readout from either port on the OSX 10.4 machine.  How can I get the sketch to work in OSX 10.4 without upgrading to 10.5?

Cheers.
509  Forum 2005-2010 (read only) / Frequently-Asked Questions / Best computer to run programs on: March 09, 2009, 12:48:55 pm
Hi,
I am thinking of buying a Mac Mini that I can leave running for various projects around my house.  One project may be triggering an Arduino based sensor that then takes a photo when I'm not home via a webcam.
I'm looking for a small cheap computer that I can hook various projects to and then leave alone.  

Is the Mac Mini a bad idea?  Any other suggestions?

Thanks
510  Forum 2005-2010 (read only) / Frequently-Asked Questions / On & Off Switch on: September 01, 2008, 12:28:10 pm
Hi,
I'm almost done with my LM35 temperature sensor project and need to make an on & off switch.  What is the best way to do this?
Do I put the switch on the positive side or the negative side?
Also is there a way to turn the entire Arduino on & off if using a wall plug that will always be plugged in but not easily accessible?
Cheers
Pages: 1 ... 32 33 [34] 35 36