Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Help with Arrays on: April 21, 2011, 08:06:39 pm
Where you able to find out how to add another component to the array later?
2  Using Arduino / Programming Questions / How to manipulate a matrix. on: April 21, 2011, 07:57:22 pm
Lets say I have..
int matrix[5][5]={{0,0,0,0,0},{1,1,1,1,1},{2,2,2,2,2},{3,3,3,3,3},{4,4,4,4,4}};
How do I manipulate this matrix to make it look like...
{{0,0,0,0,0},{0,0,0,0,0},{1,1,1,1,1},{2,2,2,2,2},{3,3,3,3,3}}
then
{{0,0,0,0,0},{0,0,0,0,0},{0,0,0,0,0},{1,1,1,1,1},{2,2,2,2,2}}
and so on.....
What I basically want to do is shift every row down by one or up by one.
Any suggestions???
3  Community / Website and Forum / Re: PortManipulation page lacks information about Arduino Mega on: March 11, 2011, 04:27:53 pm
Thank you soooooooooooooooooooooooooo muucchh!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4  Forum 2005-2010 (read only) / Interfacing / how to use Cellular Shield with SM5100B on: May 10, 2010, 12:39:33 am
I have this shield(http://www.sparkfun.com/commerce/product_info.php?products_id=9607).I new to this...all I want to do is send a simple text message...any help?Also if possible, turn the module on when I text it the number "1" or anything.
5  Forum 2005-2010 (read only) / Interfacing / Basic high/low signals using RF modules on: May 09, 2010, 06:41:57 pm
I have receiver (http://www.sparkfun.com/commerce/product_info.php?products_id=8948) and transmitter(http://www.sparkfun.com/commerce/product_info.php?products_id=8945) and I just want to send a high/low signal from the tansmitter to receiver. The receiver is connected to an led and the transmitter to my arduino.I just want the led to turn off and on but it just keeps flickering.any advice?Here is my code.
Code:
int pin3=3;

void setup()
{
Serial.begin(9600);
pinMode(pin3,OUTPUT);
}
void loop()
{
digitalWrite(pin3,HIGH);
delay(1000);
digitalWrite(pin3,LOW);
delay(1000);
}
6  Forum 2005-2010 (read only) / Interfacing / Re: Sparkfun RF Transmitter/Receiver on: May 07, 2010, 04:42:47 pm
Code:
int pin3=3
int x;
void setup()
{
        Serial.begin(9600);
         pinMode(pin3,INPUT);
}
void loop()
{
       x=digitalRead(pin3);
         Serial.print(x)
       if(x==HIGH);
         {
               then do something
            }
}

when I look into the serialprint I just see 1010111010001010001010 it's pretty much random.
any help.The PIR is supposed to show low when idle and high when triggered and only when triggered.
7  Forum 2005-2010 (read only) / Interfacing / Re: Sparkfun RF Transmitter/Receiver on: May 06, 2010, 10:29:01 pm
Sorry for my prior post I pressed tab then enter.I just want to see if its high and then do something if not then do nothing. I keep getting random numbers like bocochoco...any advice?
8  Forum 2005-2010 (read only) / Interfacing / Re: Sparkfun RF Transmitter/Receiver on: May 06, 2010, 10:27:03 pm
Im having a problem also.This is the sensor im using(http://www.parallax.com/dl/docs/prod/audiovis/PIRSensor-V1.2.pdf). The sensor is attached to the transmitter and the receiver is attached to a my arduiono atmegea328.i just want a basic high/low signal to be sent from the transmitter to receiver when my sensor is triggered.
Code:
int pin3=3
void setup()
{
        Serial.begin(9600);
         pinMode(pin3,INPUT);
}
void loop()
{
       x=digitalRead(pin3);
       if(x==HIGH);
         {
9  Forum 2005-2010 (read only) / Interfacing / RF transmitter and Receiver with arduino on: May 04, 2010, 04:09:53 pm
here is my hardware......http://www.sparkfun.com/commerce/product_info.php?products_id=8945 and http://www.sparkfun.com/commerce/product_info.php?products_id=8948 and an Arduino ATmega328.

I attached the output from a Parallax PIR(http://www.parallax.com/dl/docs/prod/audiovis/pirsensor-v1.2.pdf)into the transmitter..and the receiver to my Arduino. I'm basically trying to create a wireless motion sensor. The PIR goes high if triggered then sends the signal through the transmitter…arduino receives it and does something.A basic HIGH OR LOW scenario. I'm having a problems..it seems the signal won't transmit right…any advice.
10  Forum 2005-2010 (read only) / Interfacing / RF transmitter and receiver with NPN transtistor. on: April 09, 2010, 02:49:55 am
Where can I buy a good cellular shield for my arduino?
11  Forum 2005-2010 (read only) / Interfacing / RF transmitter and receiver with NPN transistor on: April 09, 2010, 02:51:06 am
I have an RF transmitter(http://www.sparkfun.com/commerce/product_info.php?products_id=8945 and a receiver http://www.sparkfun.com/commerce/product_info.php?products_id=8948. I am trying to send a HIGH and LOW signal over them...the transmitter is hooked up to pin 11 on the Arduino and the receiver is connected to an npn transistor to let an led turn on(DATA out from receiver is connected to base of transistor.The problem is the LED is always "on" or is "blinking" and flashing out of control....any suggestions???
Pages: [1]