Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Due, ADK and Gen 2 Nexus 7 on: December 10, 2013, 10:31:57 am
Fixed.

UOTGHS_CTRL; UIDE: UOTGID Pin Enable = 0 and UIMOD: UOTGHS Mode = 0.

Force the Due into host mode regardless of hardware ID on USB pin 4.

Not sure why the gen2 N7 requires this but it works now.
2  Products / Arduino Due / Due, ADK and Gen 2 Nexus 7 on: December 03, 2013, 11:05:00 pm
So I've been using the Due with ADK as a host USB device with the Nexus 7 for a while. Works well, does what I want it to. Picked up a new Nexus 7 and it won't connect reliably at all. Maybe 1-2 out of 20 tries. The Mega ADK works fine and doesn't care which Nexus I use. Obviously there are hardware differences between the Mega and Due but I'm having trouble tracking down the root problem. Anyone else had issues with this?

Thanks!
Josh
3  Products / Arduino Due / Re: Dataflash issues with Due on: March 21, 2013, 05:46:02 pm
Thanks for looking at that Mike.

So I'm using the SPI library for other devices on the Due currently and that works. The 1.5.2 IDE takes into account weather you are using an AVR or SAM device and includes the proper library..  Dataflash includes SPI but the compiler does not find it so I #included it.. Seems like there's a linking problem but I don't have any expertise here..

Thanks!
Josh
4  Products / Arduino Due / Re: Dataflash issues with Due on: March 21, 2013, 12:18:39 pm
https://github.com/BlockoS/arduino-dataflash
5  Products / Arduino Due / Dataflash issues with Due on: March 21, 2013, 01:35:37 am
Using 1.5.2 IDE with a Due.

Code won't compile:

Code:
#include <SPI.h>
#include <DataFlash.h>
void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:
 
}


I get these errors:
C:\Arduino\arduino-1.5.2\libraries\dataflash\DataFlash.cpp: In member function 'void DataFlash::setup(int8_t, int8_t, int8_t)':
C:\Arduino\arduino-1.5.2\libraries\dataflash\DataFlash.cpp:151: error: 'SPSR' was not declared in this scope
C:\Arduino\arduino-1.5.2\libraries\dataflash\DataFlash.cpp:151: error: 'SPI_2XCLOCK_MASK' was not declared in this scope
C:\Arduino\arduino-1.5.2\libraries\dataflash\DataFlash.cpp:152: error: 'SPCR' was not declared in this scope
C:\Arduino\arduino-1.5.2\libraries\dataflash\DataFlash.cpp: In member function 'void DataFlash::begin()':
C:\Arduino\arduino-1.5.2\libraries\dataflash\DataFlash.cpp:176: error: 'SPCR' was not declared in this scope
C:\Arduino\arduino-1.5.2\libraries\dataflash\DataFlash.cpp:177: error: 'SPSR' was not declared in this scope

Anyone successfully using this library with Due? Thanks for any help!
6  Using Arduino / Networking, Protocols, and Devices / Re: Sharing compiled code? on: March 05, 2013, 10:46:05 am
There's also ways to upload .hex files in a standalone method

http://www.gammon.com.au/forum/?id=11638

or commercially with

http://www.kanda.com/products/Kanda/HH0110.html
will do the fuses & load program.

Thanks!
7  Using Arduino / Networking, Protocols, and Devices / Re: Sharing compiled code? on: March 05, 2013, 10:40:34 am
Tough crowd!  smiley-evil

I need to provide updates for the micro to the UI developer in a remote location. He's not an embedded developer and has no need to see the source code. He just needs update to functionality as they become available.
8  Using Arduino / Networking, Protocols, and Devices / Re: Testing UP501 GPS on: March 01, 2013, 12:36:43 pm
Yes. I don't really know the limitations. What I observe if I set the GPS to 115200 is jibberish in the serial monitor (as though the baud rate were wrong).
9  Using Arduino / Networking, Protocols, and Devices / Re: Sharing compiled code? on: February 28, 2013, 07:13:47 pm
Yes! But if you compile the source code where is it compiled to?

I think AVRDude is the way to upload files to 'duino...

THanks!
10  Using Arduino / Networking, Protocols, and Devices / Re: Sharing compiled code? on: February 28, 2013, 06:51:55 pm
Really? So you have to compile and download in one shot? I can't imagine why that would be the case. But as I said I'm knew to 'duino...
11  Using Arduino / Networking, Protocols, and Devices / Sharing compiled code? on: February 28, 2013, 06:07:37 pm
I did search but wasn't able to find anything. Mostly because I'm probably not searching with the correct terminology..

What I'd like to do is compile code for my Uno to share with the UI developer that has no need to compile or see the source code.

Seems like a pretty basic requirement but I'm fairly new to embedded code on the Arduino so I'm not sure how to approach this.

Thanks,
Joshua
12  Using Arduino / Networking, Protocols, and Devices / Re: Testing UP501 GPS on: February 28, 2013, 06:01:15 pm
UP501 is 9600 by default.

Code:
#define PMTK_SET_NMEA_38400 "$PMTK251,38400*27"
#define PMTK_SET_NMEA_57600 "$PMTK251,57600*2C"
#define PMTK_SET_NMEA_115200 "$PMTK251,115200*1F"
void setup()
{
Serial.println("Config GPS...");
mySerial.begin(9600);
mySerial.println(PMTK_SET_NMEA_57600);
delay(100);
mySerial.end();
delay(1000);
mySerial.begin(57600);
delay(1000);
do other stuff
}
Now I'd be curious if anyone has gotten the UP501 to run at 115200 for 10hz use?
Pages: [1]