Show Posts
Pages: 1 2 [3] 4 5 ... 10
31  Using Arduino / Networking, Protocols, and Devices / Re: Getting the Wifly to work on the DUE on: June 02, 2014, 06:10:26 am
Okay! I got it working using the WiflyWebTimeServer sketch. I reseted the arduino, opened the Serial Monitor and plugged in the Wifly just in the right moment and it worked. I tried it 12345 times and finally it worked smiley-grin

Next step is to establish an UDP connection to another device. I think I'll use my Macbook and Processing for this...
32  Using Arduino / Networking, Protocols, and Devices / Getting the Wifly to work on the DUE on: June 02, 2014, 05:43:26 am
Hi,
Im using the Rover Wifly Board with my DUE. Im using the WiflySerial1 library. I compiled and ran the WiflyWebTimeServer sample. Okay, since I didnt configure the Wifly it wouldnt work.. So I compiled the wiflySerial1Test project and tried to get into the CMD Mode, but somehow it wont let me configure the Wifly smiley-sad thats what I have in the console:


Code:
-- Tester for WiFly communication through Serial1 --

Establish communication with WiFly at 9600 bps...
 wifly-EZX Ver 4.00.1, Apr 19 2013 11:47:16 on RN-171
MAC Addr=00:06:66:55:5c:92
*READY*
Auto-Assoc Abcdefgh chan=0 mode=NONE FAILED
Auto-Assoc Abcdefgh chan=0 mode=NONE FAILED
Auto-Assoc Abcdefgh chan=0 mode=NONE FAILED
Auto-Assoc Abcdefgh chan=0 mode=NONE FAILED
Auto-Assoc Abcdefgh chan=0 mode=NONE FAILED
......

and here is the code:
Code:
/*******************************************************************************
**                                                                            **
**  A simple sketch for testing communication between WiFly Rn-131C           **
**  and Arduino Mega 2560 or Arduino Due on port Serial1 at 9600 bauds        **
**                                                                            **
**      Arduino          WiFly                                                **
**        GND  ---------  GND                                                 **
**        3V3  -------- 3.3V-RIN                                              **
**      RX1 (19) -------  TX                                                  **
**      TX1 (18) -------  RX                                                  **
**                                                                            **
**  LPGL 2.0                                                                  **
**  Jean-Michel Gallego                                                       **
**                                                                            **
*******************************************************************************/

#include <Arduino.h>

void setup()
{
  // initialise serial interface 0 connected to console
  Serial.begin( 9600 );
  Serial.println( " -- Tester for WiFly communication through Serial1 --" );
  Serial.println();
  Serial.println( "Establish communication with WiFly at 9600 bps..." );

  Serial1.begin( 9600 );
  delay( 1000 );
  Serial1.print( "$$$" );
  delay( 300 );
 // Serial1.print( "\rver\r" );
}

/*******************************************************************************
**                                                                            **
**                                 LOOP ROUTINE                               **
**                                                                            **
*******************************************************************************/

char ch;

void loop()
{
  while( Serial1.available() )
    Serial.write( Serial1.read() );

  if( Serial.available() )
  {
    ch = Serial.read();
    Serial1.write( ch );
  }
}
33  Using Arduino / Networking, Protocols, and Devices / Wifly Iphone and Protocol (OSC ?) on: May 29, 2014, 04:46:55 pm
Hi,

I just received my WiFly module and was looking for the best way to start.

My project is to send data ( approx. 10x4byte) to two iOS devices at minimum 500ms intervals.

I already programed my iOS and the Arduino App to collect the data from the sensors, the "only" thing I need is to connect those devices smiley-grin

Data should be primary read from the Arduino, sometimes the Arduino should receive data as well (settings or something)...

I was thinking about the OSC protocol which I was using for Mac -> iOS devices before.

Is there a library for that?  smiley-grin Or are there better/easier ways? Im pretty new to those wifi network Communication stuff.

 Im using the "RN-XV WiFly Module - Wire Antenna" and the Arduino Due


-tsaG
34  Using Arduino / Programming Questions / Re: Programming AVR Arduino with Arduino Due on: May 24, 2014, 08:03:46 am
Hm, not possible? Well at least there isn't anyone who did it before?
35  Using Arduino / Programming Questions / Programming AVR Arduino with Arduino Due on: May 22, 2014, 09:19:32 am
Hi

I have a bigger project with two different Arduinos. One is doing the math and collecting data (the due) and the other one is taking care of the User Interfacing (Knobs, buttons and Display).

So since I only have one board (custom designed) and only want to use one USB as output, my question is: Is it possible to program the Arduino AVR (I think I'll use a mega) with the DUE? Right now they're connected via I2c but serial connection could also be connected.

Its not a problem to erase the Due during Flashing or Flash a "Upgrading Firmware" Sketch on it since all the Settings are saved in an external Eeprom. After flashing the AVR, the Due Firmware hast to be installed again.

Since this is only done a few times (well, when I found a bug and want to upgrade the Firmware) this is no time critical process.

-tsaG

EDIT: Im using the Native USB Port of the Samxxx Processor
36  Using Arduino / Networking, Protocols, and Devices / Re: Sending data to Iphone via Lightning on: May 22, 2014, 04:56:37 am
Hi,

Right now Im sending Telemetry data through Wifi Using the USR Wifi232 Chip to the Phone. My data transfer rate is about 5hz with 10 x 2 (or maybe later 4) byte. So far so good. I just wanted to get rid of the Wifi connection and just use a simple cable.

37  Using Arduino / Networking, Protocols, and Devices / Sending data to Iphone via Lightning on: May 21, 2014, 01:11:01 pm
Hi,

Since the Arduino DUE has a USB Port, is it possible to send data to the Iphone using the Lightning cable?

-tsaG
38  Using Arduino / Programming Questions / Re: 8 Bits to byte -> how? on: December 23, 2013, 04:13:39 pm
Thank you

I tried and ended with this :

Code:

int array[]={1,0,1,1,0,1,0,1};

void setup() {
  // initialize serial:
  Serial.begin(9600);
 

}

void loop() {
  byte value = 0;
for (int i = 0; i < 8; i++) {
  // trigger the clock pin and wait.
  if (array[i])
    value |= (1 << i);
}
  Serial.println(value);
  delay(1000);
}

Which works for me. Thank you all!
39  Using Arduino / Programming Questions / Re: 8 Bits to byte -> how? on: December 23, 2013, 03:55:03 pm

byte b = R1 << 7 + r2 << 6+ r3 << 5 + r4 << 4 + r5 << 3 + r6 << 2 + r7 << 1 + r 8;


This doesn't work for me, its always 0 smiley-sad
40  Using Arduino / Programming Questions / Re: 8 Bits to byte -> how? on: December 23, 2013, 03:39:38 pm
I can also do it with bits, I think thats easier.

I have those 8 values

Code:
int R1=1;
int R2=0;
int R3=1;
int R4=1;
int R5=1;
int R6=0;
int R7=1;
int R8=0;

How do I convert those values to one byte?
41  Using Arduino / Programming Questions / 8 Bits to byte -> how? on: December 23, 2013, 03:27:50 pm
Hi!

I do have 8 Boolean values which should be converted to 1 byte. how can I do that?

like 10111010 -> 186

Background, I have to send those 8 bytes via Serial to a relays Card


tsaG
42  Products / Arduino Due / Using the TLC5947 with the Arduino Due on: October 24, 2013, 02:59:43 pm
Hi!

I want to use the TLC5947 with my Arduino due. I already found the Octobrite library but it turned out to work with AVR Chips only. Does anyone know how to interact with this chip? I just want to set something like turn on LED 1 2 5 7 .... pretty simple. Does anyone know how to do this?

These are my connected pins:
Code:
#define data   11
#define clock   13
#define latch   9
#define oe  10


-Patrick

EDIT: I already tried to use the Adafruit library ( https://github.com/adafruit/Adafruit_TLC5947 ) but it stops immediately after sending the command.
43  Products / Arduino Due / Due + touchscreen + camera on: July 19, 2013, 09:08:49 am
Hi,

Im about to program an touchscreen Interface using the GUI lib by cowasaki. Works Fine so far. Now i want to Display the camera Stream in the GUI.

Im using this Screen

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=111008432389

As far as I know there are Chips which can overlay (something like a hud) over a picture Stream, but Most of them use the Pal or NTSC Signal... Is there something similar "digital"?

My first thought was to use a Chip as Switch between the arduino and camera, but then I couldnt Display the GUI..

I have no Idea which camera to use, just that the resolution should be somewhere around the Displays Resolution (800x480)


-tsaG
44  Using Arduino / LEDs and Multiplexing / Re: ShiftPWM support topic. Latest update: Schematics, high power LED's, LED strips on: May 10, 2013, 05:14:18 pm
Hi,

I get errors while using this with the DUE, so I guess its not ready yet. Any date when its done? Or are there any simple steps to make it work?
My Goal is to have Duo LEDs Shiftpwmed on the DUE smiley
45  Using Arduino / Microcontrollers / Re: Selfmade Due running way to slow on: May 09, 2013, 02:54:11 pm
Sorry for doupleposting, but could anyone look on their Due to tell me which Crystal is installed? I read several Threads where it says there is an 16mhz Crystal, which would explain the whole thing here.
Pages: 1 2 [3] 4 5 ... 10