Show Posts
Pages: [1]
1  Using Arduino / Project Guidance / Arduino Mega 2560, iPhone + RedPark Serial Cable for iOS on: June 28, 2013, 02:56:18 am
Hey guys,

I've used the RedPark seriable cable with iOS before however, I've only been using it to receive data from an Arduino. My ambition is to be able to transmit information from the iPhone to the Arduino also.

At the moment it's set up to receive

 1. Arduino RX  -> Redpark TX
 2. Arduino TX  -> Redpark RX
 3. Arduino 5V  -> Redpark 5V
 4. Arduino GND -> Redpark GND

The example I used was to toggle the LED on an Arduino board...

     
Code:
void setup() {               
      Serial.begin(9600);  // Start the serial port
      pinMode(13, OUTPUT); // Set the built-in LED to output mode
     }

     void loop() {
      if (Serial.available()) {   // If there's anything on the serial port,
         byte cmd = Serial.read(); // read a single byte from it.

         if (cmd == '1') {  // If the command is the character '1',
          digitalWrite(13, HIGH);   // set the LED on
        }
        if (cmd == '0') {  // If the command is the character '0',
          digitalWrite(13, LOW);    // set the LED off
          Serial.print(cmd, BYTE);
        }
      }
    }


I also used the accompanying iPhone app with the Redpark serial cable. I have confirmed I am able tor receive text (using the default app that comes with the RedPark serial cable. So I know that when the iPhone is connected to the Arduino, I am able to receive transmitted data from the Arduino. I can't however transmit any data (the default app allows you to transmit data + the app confirms that the iPhone has sent data. However I am unable to fall into this method on the Arduino, when sending from the iPhone.

   
Code:
if(Serial.available())
    {
     ...
    }

For reference, the iPhone I'm using is the iPhone5 with the 30 pin to lightning adapter.
2  Using Arduino / Project Guidance / Arduino Mega 1280 + CAN Shield on: February 08, 2012, 02:57:31 pm
Hi guys,

I'm doing a project for college relevant to the CAN bus (Control Area Network).... I purchased this http://www.sparkfun.com/products/10039

I want to hook it up to my Arduino Mega 1280, using the datasheet

http://www.sparkfun.com/datasheets/DevTools/Arduino/canbus_shield-v12.pdf

Typically these projects are only set up for the Arduino UNO of which I don't have,

I have a lot of the pins from the shield into the arduino but the shield doesn't seem to be interacting with the arduino, can anyone help me make sense of the schematic ?

Thank you very much in advance!
3  Using Arduino / Motors, Mechanics, and Power / Re: Electroluminescent Wire + Arduino on: September 04, 2011, 05:37:13 pm
Could you just elaborate on that slightly please?... I have a 2N7000 MOSFET at my disposal? would I be able to use that ?

Many thanks !
4  Using Arduino / Motors, Mechanics, and Power / Re: Electroluminescent Wire + Arduino on: September 01, 2011, 09:45:38 am
Yes, I've seen the Triac, however what I want to know is, can i use the 2N7000 MOSEFT, or is it a component i will need to source myself?
5  Using Arduino / Motors, Mechanics, and Power / Electroluminescent Wire + Arduino on: September 01, 2011, 09:03:08 am
Hey guys,

First time posting, sorry if this is in the 'wrong forum' I believe it is.....

I have an Arduino MEGA 1280, I also have about 4-5 meters of Electroluminescent wire I wish to power (ideally I would like to be able to dim and brighten it with the board) however, I would just settle to be able to turn it on and off....

I have a 9 volt inverter for the EL wire, I also have a collection of resistors at my disposal along with some 2N7000 MOSEFT transistors.......

Tutorials or examples for what I wish to do is scarce and I was wondering could anyone here help me... The closest thing I've come accross is this however I don't understand what the transistors are doing. http://www.flickr.com/photos/pdinnen/4830726953/

Any help would be appreciated + many thanks in advance !
Pages: [1]