Show Posts
Pages: 1 ... 435 436 [437] 438 439 ... 539
6541  Using Arduino / Installation & Troubleshooting / Re: can I use the USB Serial Light Adapter to upload to atmega328p (optiboot) on: October 07, 2011, 09:16:05 am
From that page:

"Automatic (Software) Reset
The USB Serial connector is designed in a way that allows it to reset an attached board by software running on a connected computer.The external reset line mirrors the DTR line of the virtual serial device on the computer. It's typically connected to the reset line of the connected board (e.g. an Arduino Ethernet board) through a 100 nF capacitor, allowing the board to reset on upload."

Did you implement automatic reset on your breadboard?
6542  Using Arduino / Programming Questions / Re: Detect data value changes on: October 07, 2011, 09:10:16 am
The piece of code you quote looks correct so there may be something wrong elsewhere in the code.
6543  Using Arduino / Project Guidance / Re: circuit diagram for 8*8 LED Matrix on: October 07, 2011, 09:06:25 am
Having row and column drivers will allow you to control one row at a time.  You will need to repeatedly scan through the rows to control each LED separately.


If the number of LED's lit at once draws more than 400 mA you will need to use an external power supply.  If each LED draws 20 mA and you light at most 8 at a time (one row) you can use the Arduino +5 line to supply the 160 mA.

Ground should connect to Arduino ground.  If you use a separate power supply for the LED's it should ALSO connect to power ground.

You should probably NOT use D0 and D1 for your data pins.  Those double as the serial port and would prevent Serial.print() from working.  Use D2, D3 and D4.
6544  Using Arduino / Networking, Protocols, and Devices / Re: GSM Board on UNO Woes on: October 07, 2011, 08:23:16 am
To test this theory you could put a piece of wire into D2 and hold it to the center terminal of Tx 3 terminal solder jumper

OK, I did this. The Uno now spews out hundreds of characters. Acting on the assumption that this may be a baud mismatch, I again tried various different baud rates. The characters remain unintelligible, but there are lot of them now!

Time to get a soldering iron and fix that solder jumper. 

(Apparently they don't even do a good visual inspection before sending those things out.)

Once the jumper is fixed you can try 9600 bps again.
6545  General Category / General Discussion / Re: using Arduino UNO on: October 06, 2011, 02:04:16 pm
Where did you get servo.pde?  I don't think it's part of Arduino 0.22.
6546  Using Arduino / Networking, Protocols, and Devices / Re: GSM Board on UNO Woes on: October 06, 2011, 11:34:52 am
Looks like my assumption expressed back in Reply #4 was incorrect:

I assume the serial solder jumpers still set to pins 2 and 3.
6547  Using Arduino / Networking, Protocols, and Devices / Re: GPS robot on: October 06, 2011, 08:51:09 am
Do you have the ground wire of the servo connected to the ground of the Arduino?
6548  Using Arduino / Networking, Protocols, and Devices / Re: GSM Board on UNO Woes on: October 06, 2011, 08:40:27 am
I think this has revealed something, but I am not sure what. I have been powering the shield while attached to the Uno. However, with Wayne's suggestion I had to disconnect the shield...

Powering the shield alone through 5v and gnd does not work - the shield does not power on. I tried with 4.5 and 6v at 2a.

However, the shield powers on when I use vin and gnd.

That makes sense.  The schematic of the sparkfun shield shows a built-in 3.8v regulator connected to Vin and nothing connected to 5V.  Probably because drawing 2 A from the 5v line would be bad for the Arduino regulator.

The schematic also shows a red LED on the shield that will light when the 3.8v power is good.
6549  Using Arduino / Installation & Troubleshooting / Re: Sketch file/directory name problem with separate source file of the same name on: October 05, 2011, 04:41:40 pm
Try:

Arduino/libraries/ADXL345/ADXL345.cpp
Arduino/libraries/ADXL345/ADXL345.h
Arduino/libraries/ADXL345/Examples/ADXL345/ADXL345.ino

Arduino/libraries/MPU6050/MPU6050.cpp
Arduino/libraries/MPU6050/MPU6050.h
Arduino/libraries/MPU6050/Examples/MPU6050/MPU6050.ino

Arduino/libraries/AK8975/AK8975.cpp
Arduino/libraries/AK8975/AK8975.h
Arduino/libraries/AK8975/Examples/AK8975/AK8975.ino

Sketch directories in the Examples subdirectory of a library director appear in the Files->Examples->libraryname menu
6550  Using Arduino / Programming Questions / Re: Adding to String object too slow? on: October 04, 2011, 06:40:10 pm
Code:
Serial.print(char(mySerial.read()));

Are you checking for mySerial.available() before calling mySerial.read()?  If not you may be filling a lot of memory with 0xFF characters.
6551  Using Arduino / Project Guidance / Re: 0.05" Header Pins? on: October 04, 2011, 05:31:44 pm
I think that these kinds of modules are intended to be surface mounted.
6552  Using Arduino / Networking, Protocols, and Devices / Re: GSM Board on UNO Woes on: October 04, 2011, 05:03:57 pm
The article you linked to has a link to "http://littlebirdelectronics.com/products/Cellular-Shield-with-SM5100B.html" which seems to be the SparkFun cellular shield (http://www.sparkfun.com/products/9607).  Is that the shield you have? 

Both places say that the module is "pre-configured for 9600bps.".  You should probably stick with 9600bps unless you are sure it has been reconfigured.

I assume the serial solder jumpers still set to pins 2 and 3.

What SIM card do you have?  Are you sure it's good?
6553  Using Arduino / General Electronics / Re: USB Joystick on: October 04, 2011, 11:33:44 am
A USB joystick uses the Human Interface Device (HID) protocol over USB.  With a USB Host Shield you should be able to receive these messages and act on them.
6554  Using Arduino / Networking, Protocols, and Devices / Re: GSM Board on UNO Woes on: October 04, 2011, 11:30:34 am
From the page you pointed to: "It will take around fifteen to thirty seconds for the text above to appear in full. What you are being presented with is a log of the GSM module’s actions. "

So, are you waiting a good long time before giving up on the GSM shield?

What makes you think that if it doesn't run at 9600 bps it will run better at other rates?


From the page you pointed to: "Instead, power your project with a high-capacity 5V 2 amp power supply to the 5V and GND pins on your shield."

Have you tried a 2 Amp 5 Volt regulated supply?
6555  Using Arduino / Project Guidance / Re: Help making a controller on: October 03, 2011, 01:04:45 pm
You probably want something like this:

Code:
/*
2011
Control of a Halloween Graveyard through a 8-Relay card.
-----
-----
Arduino Duemilanove for controller
-----
Relay card here:    http://arduino-direct.com/sunshop/index.php?l=product_detail&p=156
-----
SENSOR-1
An IR Barrier Switch is the sensor. When activated it provides 9VDC to a buzzer.
I have removed the buzzer and installed a LM7805CT to bring the 9VDC down
to 5VDC to act as an input the Arduino can handle.
-----
AUDIO-1,2,3,4
Sound card has 4 push buttons for 4 sounds so a CLOSED relay would = on
-----
AIR VLV-1,2
Two 24VAC solonoid valves will activate two pneumatic props, so a CLOSED
relay would allow a power on condition and air to flow.
-----
LIGHTS-1
An electric prop, 9VDC series of lights, needs an on, so a CLOSED relay would = on
*/

// Relay outputs are "active LOW"
const int RELAY_ON = LOW;
const int RELAY_OFF = HIGH;

// Define Arduino pin numbers for the relays
const int AMBIENT_SOUND = 2;  // Audio 1
const int SCREAM = 3; // Audio 2
const int PROP1 = 4;  // Prop 1
const int LOUD_MOAN = 5; // Audio 3
const int MINI_LIGHTS = 6;  // Mini lights
const int PROP2 = 7;  // Air valve for Prop 2

// Define Arduino pin for the trigger input
const int TRIPWIRE = 8;

void setup()
    {
    pinMode(AMBIENT_SOUND, OUTPUT);
    pinMode(SCREAM, OUTPUT);
    pinMode(PROP1, OUTPUT);
    pinMode(LOUD_MOAN, OUTPUT);
    pinMode(MINI_LIGHTS, OUTPUT);
    pinMode(PROP2, OUTPUT);

    // turn everything off but the background noises
    digitalWrite(AMBIENT_SOUND, RELAY_ON);
    digitalWrite(SCREAM, RELAY_OFF);
    digitalWrite(PROP1, RELAY_OFF);
    digitalWrite(LOUD_MOAN, RELAY_OFF);
    digitalWrite(MINI_LIGHTS, RELAY_OFF);
    digitalWrite(PROP2, RELAY_OFF);

    pinMode(TRIPWIRE, INPUT)
   }

void loop()
    {
    // is someone setting off the trap?
    if (digitalRead(TRIPWIRE))
        {
        digitalWrite(AMBIENT, RELAY_OFF);
        digitalWrite(SCREAM, RELAY_ON);
        digitalWrite(PROP1, RELAY_ON);

delay(5000) // keep prop-1 active for 5 seconds

        digitalWrite(SCREAM, RELAY_OFF); // turn it off for next go-round
        digitalWrite(PROP1, RELAY_OFF);  // turn it off for next go-round

delay(2000) // spacer, pause for 2 seconds

        digitalWrite(LOUD_MOAN, RELAY_ON);
        digitalWrite(MINI_LIGHTS, RELAY_ON);

delay(5000) // keep Lights active for 5 seconds

        digitalWrite(LOUD_MOAN, RELAY_OFF);
        digitalWrite(MINI_LIGHTS, RELAY_OFF);

delay(2000) // spacer, pause for 2 seconds

        digitalWrite(LOUD_MOAN, RELAY_ON);
        digitalWrite(PROP2, RELAY_ON);

delay(5000) // keep prop-2 active for 5 seconds

        digitalWrite(LOUD_MOAN, RELAY_OFF);
        digitalWrite(PROP2, RELAY_OFF);
delay(2000) // spacer, pause for 2 seconds

// Pause for effect, don't allow system to activate too fast after last run
delay(30000) // spacer, pause for 30 seconds
        }
    else
        {
         digitalWrite(AMBIENT, RELAY_ON);
        }
    }
Pages: 1 ... 435 436 [437] 438 439 ... 539