ios question ....

Previous topic - Next topic

Marmor


erico


mentalthink

HI Marmor I do it something similar but using PC, iPhone and/or Palm pre... in the forum you can found a COM serial librarie... Use my arduino to communicate the Arduino whit the PC, and whit the phone Control a Servo, or simply like in the video open and close a diode Led...

At this form it´s very easy, but I think a good point it´s use a Bluetooth module, Devil bay have a lot for 6$, and I look how works...

Arduino not it´s a toy, but programming it´s like a game... it´s  a very serius chip, and can do very interesting things...

I hope help you in your dubt...

PS. IF you need info whit Arduino tell me, have place thru internet a lot cheaper than anothers.

Marmor

#3
wohooo...
ok glad to see your post !

silly questions : works the serial lib on iphone ?
                         whats your connection cable to connect an ios device to your arduino ?
                         bluetooth isnt bad but ios have have some bluetooth limits (only ios to ios device ill guess)
                         are you  successfully connected a ios device with arduino ? booth directions ?
                         have you some schematas from your project ?
                         where can i find your serial lib?

i will connect an old iphone to my maximite with rs 232 .....

i know arduino  its a fine solution for much projects ...
thx foryour post

mentalthink

HI Marmor sorry for not reply before, I don´t see this post  :noggin:

About use iPhone and serial port whit arduino I don´t try yet, but if you need I try to make it...

I comment what I do...

The only test I do it´s connect arduino whit PC, but I can load vales from a potenciometer , or turn on/off a led... and control a servo RC***

The mode usage I do it´s very simple, I conect Arduino whit USB / This it´s a COM Port, usually in my computer it´s 3, and you can monitorize whit the IDE of Arduino or you can do a Simple Viewport whit GLbasic...

I don´t have the code now for Arduino... but take a look at this:

In Arduino you have to take a look to the serial Library...
http://arduino.cc/hu/Reference/SoftwareSerial

This it´s a code example for Arduino, program Arduino it´s absolutely easy, thanks to GLbasic, I can do things whit this device... the language it´s hyper easy, and the sintaxis it´s like C++, but nothing about C++ in a beggin, all are pre-made libraries

Code (glbasic) Select
#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() 
{
  // Open serial communications and wait for port to open:
  Serial.begin(57600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }


  Serial.println("Goodnight moon!");

  // set the data rate for the SoftwareSerial port
  mySerial.begin(4800);
  mySerial.println("Hello, world?");
}

void loop() // run over and over
{
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
}


For Windows...

In this post you have a library do it by Gernnot, I make runs always, but I don´t remenber how do it, I always confusing whit the bauds and the COMS and all this things. but runs 100%... the problem it´s me.  :whip:
http://www.glbasic.com/forum/index.php?topic=1690.0

Making this 2 thing correctly you have connected the Windows and Arduino...

I do another test, this it´s whit WIFI, and this have to works whit iPhone, I use the Palm Pre, but the code it´s common for all devices supported for GLbasic...

The test was simple, control a servo and control a led, again turn on/off...

The code it´s very easy you have to do a Server in your computer... in the post Network for Cowards, you have all explained pefectly... then..

In your mobile phone makes the client...

Whit the Com Library of Gernnot (Above link thread), you have to connect the data of the Server/Client, to send whit the Com Library to Arduino

In arduino you have to make a Code  to read , what you send from the Com port ... USB, I think the above example it´s enough...

And all it´s this...

The most important point after two months ... don´t try to launch a missile, this it´s only in games  =D =D

Kinds Regards, Marmor, and I can help you in somthing, please tell me.

mentalthink

Hi Marmor about the Arduino Wi-fi perhaps you can find more interesting this:

http://www.youtube.com/watch?v=yXrN59wa_fw

The tablet in the video not it´s an Ipad...!!!