Show Posts
Pages: 1 2 [3] 4 5 ... 9
31  Using Arduino / Programming Questions / Programming AVR Arduino with Arduino Due on: May 22, 2014, 09:19:32 am

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.


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

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.

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

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

34  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 :


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

void setup() {
  // initialize serial:


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

Which works for me. Thank you all!
35  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
36  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

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?
37  Using Arduino / Programming Questions / 8 Bits to byte -> how? on: December 23, 2013, 03:27:50 pm

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

38  Products / Arduino Due / Using the TLC5947 with the Arduino Due on: October 24, 2013, 02:59:43 pm

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:
#define data   11
#define clock   13
#define latch   9
#define oe  10


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

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

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)

40  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

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
41  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.
42  Using Arduino / Microcontrollers / Re: Selfmade Due running way to slow on: May 09, 2013, 02:46:19 pm
But the Due also uses an 12mhz fast and 32.768 Slow Crystal  smiley-sad
43  Using Arduino / Microcontrollers / Re: Selfmade Due running way to slow on: May 09, 2013, 01:22:12 pm

thanks for the fast response. Im using an 12mhz and 32.xxkhz Crystal. The Sam3x8e doesnt use Optiboot.
Also, I cant find the Fuse settings, the only bits I can set are the GPNVM and Lockbits.
Where do I have to look? Do I need any other external tools?
44  Using Arduino / Microcontrollers / Selfmade Due running way to slow on: May 09, 2013, 11:03:51 am

I build my own Due Board (kind of). I programmed it using an J-Link (SWD). My first try was uploading the Blink sketch. When trying to Blink with Output Digital 50, it way to slow! When I set the Sketch to have an Intervall of 1 sec, the Due actually takes 6 sec to do it!

I uploaded the sketch (as I said) using my Segger J-Link and AtmelStudio with the Arduino DUE Project file selected. What could that be? are there any fuses I need to set?
45  Using Arduino / Project Guidance / Re: Arduino based PCB - layout, crystal and planes on: March 30, 2013, 06:46:35 pm

As already mentioned try to use supply or ground planes, they make routing more easy and also shield the lanes.

I manufactured my pcbs at eurocircuit. They're fast and even offer Support in german Language.
Also, they do have some interisting Manuals about layouting. Give it a try!

Grüße aus Bremen

Pages: 1 2 [3] 4 5 ... 9