Show Posts
Pages: [1] 2
1  Using Arduino / Displays / Re: 128x64 GLCD ... scrolling data available? on: May 12, 2011, 10:21:25 am
I was afraid of that...  Doing "virtual buffering" in my sketch would be WAY more work than I wanted. 

Are the text-only LCD's the same? I definitely don't mind scooping a different LCD if that would work.
Pretty much. The scrolling will lose all contents after everything is scrolled out the memory or display area.

I'm working on some code to enable scroll arbitrary direction. Tune in if you're interested.

http://arduino.cc/forum/index.php/topic,60830.0.html

Subscribed.  Thanks!
2  Community / Exhibition / Gallery / Re: Phi_prompt new release teaser - scrolling list items on: May 12, 2011, 10:20:32 am
Cool stuff!  #subscribed

Learning this stuff has made me REALLY respect the guys who develop stuff like smartphones.  I used to brag on how much I knew electronics... I dont do that anymore.  Nothing like being a noob with 20 years experience.  smiley-cool
3  Using Arduino / Displays / Re: How to control 2 graphic LCDs with one Arduino on: May 10, 2011, 10:31:25 am
If you don't mind using an extra chip per display, you could have a lot of them. I did an article about driving graphical LCD displays using I2C or SPI here:

http://www.gammon.com.au/forum/?id=10940

With I2C you could potentially have 8 displays (since you share the same 2 pins: SDA/SCL) and you can configure the chip to have up to 8 addresses. With SPI you can have as many displays as you can spare SS pins for (3 wires for MOSI/MISO/SCK plus one extra one for SS per display).

With a Mega you might not need to bother because you have some spare pins, but it is an idea.

Awesome! I will be switching over to I2C GLCD control asap!  This will save me the expense of buying a mega just to get more I/O points. smiley
4  Using Arduino / Displays / Re: 128x64 GLCD ... scrolling data available? on: May 10, 2011, 10:20:23 am
I was afraid of that...  Doing "virtual buffering" in my sketch would be WAY more work than I wanted. 

Are the text-only LCD's the same? I definitely don't mind scooping a different LCD if that would work.
5  Using Arduino / Displays / 128x64 GLCD ... scrolling data available? on: May 05, 2011, 08:10:44 am
I'm running a ks0108 (Satistronics) 128x64 GLCD.  With the system font used in the GLCD library, I can fit 7 rows of data on the screen.  If I need to display 8 lines or more, how can I set it up to scroll up and down to see all the data?

I assume I will have to install some buttons (scroll up, scroll down).  Im not sure if I'm even asking this correctly.  forgive my noobness.
6  Using Arduino / Displays / Re: ***Fixed*** Ks0108 128*64 -> no gfx showing + pictures Atmega 2560 on: May 05, 2011, 08:05:36 am
I also have the Satistronics 128x64 GLCD screen.  Everything worked for me except I have to use a 1M ohm pot for contrast.  20K was not sufficient.  The impedance of the pot after correctly adjusting it is 680k ohms.  My pot is connected from pin 18 (VEE), wiper to pin 3 (contrast), and the 3rd leg is connected to GND (0v).  Not sure why 20K doesn't work for me but it's no biggie.  I only post this in case someone else has a similar problem.
7  Using Arduino / Project Guidance / Re: RFID Radar on: April 18, 2011, 09:13:45 am
You could teach them to use the force?  smiley-cool
8  Using Arduino / Networking, Protocols, and Devices / Re: Basic Xbee Terminology / Versions?? on: April 18, 2011, 08:42:44 am
Lots of good advice in this thread.  Thank you.
9  Using Arduino / Networking, Protocols, and Devices / Re: Serial comm between 2 Arduinos (Now with XBee) on: April 18, 2011, 08:39:52 am
Oh, and thank you Mr. Nomad.  I'd actually like to come visit in Australia and stay a few... years   smiley-cool
10  Using Arduino / Networking, Protocols, and Devices / Re: Serial comm between 2 Arduinos on: April 18, 2011, 08:32:32 am
...
PS: If anyone wants me to post my XBee configurations let me know.
Us the Newbies would like to see them, Ayyuuppp!  (VermontSpeak)
Ask and ye shall receive...




I guess I should clarify that I am using the XBee Series 2 radios
11  Using Arduino / Networking, Protocols, and Devices / Re: Serial comm between 2 Arduinos (Now with XBee) on: April 15, 2011, 09:06:33 am
By all means, if you have suggestions on how to make the code better, please share. smiley
12  Using Arduino / Networking, Protocols, and Devices / Re: Serial comm between 2 Arduinos on: April 13, 2011, 02:48:01 pm
And the final update:  I have replaced the twisted pair for my serial bus between Arduinos with my XBee radios and it works like a champ! Now I can get down to writing a program that is actually useful. smiley

PS: If anyone wants me to post my XBee configurations let me know.
13  Using Arduino / Networking, Protocols, and Devices / Re: Serial comm between 2 Arduinos on: April 13, 2011, 12:47:48 pm
Just to be thorough, here is the "finished" sketch that works.  I added a second button and some logic that turns on different LED's based on which button(s) are pressed.  I also switched to newSoftSerial for my serial connection between the arduinos.

Thanks to everyone for their help.  I was getting pretty frustrated.  smiley-red I did find out that the 9V wall wart's I bought are unregulated therefore put out closer to 14V which is no bueno.  For some reason, the serial interface would not work when using the wart.

Quote
// Arduino 1 **Transmitter**

#include "NewSoftSerial.h"
#define txPin 6 //Xmit pin
#define rxPin 7 //Rcv Pin

int greenButton = 9; //green pushbutton input
int redButton = 10; //red pushbutton input
int greenLed = 11; //green LED output
int blueLed = 13; //blue LED output
int redLed = 12; //red LED output
int greenVal = 0; //Value of green button
int redVal = 0; //vaklue of red button
NewSoftSerial mySerial(rxPin, txPin);

void setup()  
{
  pinMode(greenButton, INPUT);
  pinMode(redButton, INPUT);
  pinMode(greenLed, OUTPUT);
  pinMode(redLed, OUTPUT);
  pinMode(blueLed, OUTPUT);
  
  mySerial.begin(38400);
}

void loop()
  {
  greenVal = digitalRead(greenButton);
  redVal = digitalRead(redButton);
//******************************************************  
  if ((greenVal == 1) && (redVal ==0))// is the green button pressed (and not the red)?
    {
    digitalWrite(greenLed, HIGH); // Only the green LED should come on
    digitalWrite(redLed, LOW);
    digitalWrite(blueLed, LOW);
    mySerial.print(1); // This should print the ascii value for '1' - 49
    }
//******************************************************  
  else if ((greenVal == 0) && (redVal == 1))// is the red button pressed (and not the green)?
    {
    digitalWrite(redLed, HIGH); //only the red LED should come on
    digitalWrite(greenLed, LOW);
    digitalWrite(blueLed, LOW);
    mySerial.print(2); // This should print the ascii value for '2' - 50
    }
//******************************************************    
  else if ((greenVal == 1) && (redVal == 1))
    {
    digitalWrite(blueLed, HIGH); //only the blue LED should come on
    digitalWrite(greenLed, LOW);
    digitalWrite(redLed, LOW);
    mySerial.print(3); // This should print the ascii value for '3' - 51
    }
//******************************************************    
  else if ((greenVal == 0) && (redVal == 0))
    {
    digitalWrite(greenLed, LOW); //All LEDs off
    digitalWrite(redLed, LOW);
    digitalWrite(blueLed, LOW);
    mySerial.print(0); // This should print the ascii value for '0' - 48
    }
  }


Quote
//Arduino 2 **Receiver**

#include "NewSoftSerial.h"
#define txPin 6
#define rxPin 7

int greenLed = 11; //green led is on pin 11
int redLed = 12; //red led is on pin 12
int blueLed = 13; //blue led is on pin 13
//int val = 0; //variable to store the mySerial read data
NewSoftSerial mySerial(rxPin, txPin);

void setup()  {
  
  pinMode(greenLed, OUTPUT); //green led pin is an output
  pinMode(redLed, OUTPUT); //red led pin is an output
  pinMode(blueLed, OUTPUT); //blue led pin is an output
  Serial.begin(38400); //open the serial port
  mySerial.begin(38400); //open the newSoftSerial port
}


void loop()
  {
  if(mySerial.available() > 0)
    {
    char val = mySerial.read();
    Serial.print("recieved:");
    Serial.println(val); //Print what Arduino 1 is sending
//************************************************************      
    if(val == '1')  // if received 49 (ASCII for '1')
      {
      digitalWrite(greenLed, HIGH);// Only the green LED should come on
      digitalWrite(redLed, LOW);
      digitalWrite(blueLed, LOW);
      }
//************************************************************  
    else if(val == '2') // if received 50 (ASCII for '2')
      {
      digitalWrite(redLed, HIGH);//only the red LED should come on
      digitalWrite(greenLed, LOW);
      digitalWrite(blueLed, LOW);
      }
//************************************************************  
      else if(val == '3') // if received 51 (ASCII for '3')
      {
      digitalWrite(blueLed, HIGH);//only the blue LED should come on
      digitalWrite(greenLed, LOW);
      digitalWrite(redLed, LOW);
      }
//************************************************************        
     else if(val == '0') // if received 48 (ASCII for '0')
      {
      digitalWrite(greenLed, LOW);//All LEDs off
      digitalWrite(redLed, LOW);
      digitalWrite(blueLed, LOW);
    }
//************************************************************  
  }
  }
14  Using Arduino / Networking, Protocols, and Devices / Re: Serial comm between 2 Arduinos on: April 12, 2011, 09:26:20 am
Ok... I feel like an idiot now.  In my transmitter program, I have variable "val" declared as an integer, but in my argument, I put "HIGH" and "LOW" as opposed to "1" and "0".  As soon as I changed this it started "working" again.  At least I'm back to where I started so I can now move forward.
15  Using Arduino / Sensors / Re: Parallax RFID Read/Write Module 28440 on: March 29, 2011, 10:26:36 am
May I ask a stupid question?

In UberDude's code above (1st post), he shows the serial number of 2 of the tags he was using (they're commented out) 0800E28C60 and 0800D9E43E.  Both of these serial numbers have 10 digits (5 Bytes) but he is only reading 4 bytes with the code, and the .PDF on the tag states that the tag's serial number is 32 bit (4 bytes).  I'm lost...
Pages: [1] 2