Show Posts
Pages: 1 [2] 3 4 ... 40
16  Using Arduino / Programming Questions / Re: RFID Tag Compare on: September 04, 2012, 12:28:53 am
it's hard to diagnose the problem without the entire code
17  Using Arduino / Project Guidance / Re: I2C between 8MHZ & 16 MHz arduinos on: August 31, 2012, 10:29:20 pm
there shouldn't be any issues

level conversion will not be needed, just disable internal pull-up resistors and use external pull-up resistors that "pull" to 3.3V
18  Using Arduino / Project Guidance / Re: Leonardo Question on: August 31, 2012, 10:27:57 pm
Modify the bootloader, or use an ISP programmer for all future programming.
19  Using Arduino / Programming Questions / Re: RFID Tag Compare on: August 30, 2012, 11:26:15 pm
where you write

Code:
if(memcmp(master, target_tag[i], TAG_LEN) == 0 )

is PROBABLY wrong

try

Code:
if(memcmp(master, target_tag, TAG_LEN) == 0 )
20  Using Arduino / Project Guidance / Re: Is ASM possible with Arduino? on: August 30, 2012, 10:13:44 pm
http://www.nongnu.org/avr-libc/user-manual/inline_asm.html

or you can just start writing everything in .S files and use the assembler through command-line
21  Using Arduino / Networking, Protocols, and Devices / Official Arduino Wifi Shield, how to experiment with firmware? on: August 30, 2012, 06:27:57 pm
Regarding http://arduino.cc/en/Main/ArduinoWiFiShield

I'm mainly looking for the original firmware source code

I believe the firmware is found here

http://www.hd-wireless.se/index.php?option=com_content&view=article&id=46&Itemid=53

I'm not even sure if it is the same firmware as the one that is used in the Arduino Wifi Shield, but it must be pretty similar, similar enough for me to get some work done. Once I have that, it should be straight forward to compile it and flash the AVR32 using the ICSP.

But here's the problem, that website won't let you download anything without logging in. To create an account, their company has to manually approve each account. It's been about a week and I haven't received any replies. There are no accounts made available on bugmenot.com either.

I would appreciate it if anybody can provide the firmware source code.

Also I can't seem to find the instructions for using the DFU mode, but I think I'll be able to use ICSP just fine. I think somebody should add a page on this website explaining the procedure to help people out.
22  Using Arduino / Project Guidance / Re: Mini loses UART in PCB on: August 29, 2012, 01:20:30 am
we're gonna need a circuit diagram, a text description might not be enough.

I might be misinterpreting what you are saying, but I have a theory anyways: power could be going through the TX line, just enough to power up the ATmega alone, but once it's in your circuit board, there's too many other components also drawing the same power and the ATmega does not have enough anymore to actually run code.
23  Using Arduino / Programming Questions / Re: Interfacing DJ Hero Controller via I2C, always one byte missing on: August 28, 2012, 03:07:49 pm
Code:
 Wire.beginTransmission(ADDRESS);
  Wire.write((uint8_t)0x00);
  Wire.write((uint8_t)0x00);
  Wire.endTransmission();

is wrong, what that does is "set pointer to 0x00, write 0x00 into where you are pointing"

each write auto-increments the pointer, that's why you are missing the first byte, because the write operation skipped it

Code:
 Wire.beginTransmission(ADDRESS);
  Wire.write((uint8_t)0x00);
  Wire.endTransmission();

is correct, what that does is "set pointer to 0x00, wait for a read operation from where you are pointing"
24  Using Arduino / Installation & Troubleshooting / Re: Arduino starts extremely slow, 20 seconds on: August 24, 2012, 10:13:39 pm
thanks everybody, I'm guessing it's the Bluetooth then

eried, that's quite an excellent mod

wow what happened to verbose? I didn't realize it disappeared until I saw your mod
25  Using Arduino / Installation & Troubleshooting / Arduino starts extremely slow, 20 seconds on: August 24, 2012, 04:44:47 pm
It takes 20 seconds on average to get Arduino 1.0.1 to start. This is almost unacceptable. Does anybody else has this issue?

Before you blame my computer, it's a new laptop is running Win 7 Ultimate 64-bit, Sandy Bridge i7, 8 GB of DDR3 RAM, and a OCZ Agility 3 SSD that's on a SATA III port. SolidWorks starts faster than Arduino.
26  Community / Bar Sport / Re: Your latest purchase on: August 23, 2012, 02:08:19 am
My latest purchase is a 20-foot shipping container.

What has this to do with Arduino/electronics?

Well I plan to fit half of it out as a workshop so when we aren't travelling I have somewhere decent to make stuff. At least I'll have a workbench now.

______
Rob

Mobile hackerspace? I'd support something like that.
27  Using Arduino / Audio / Re: MP3 decoding code, NOT realtime on: August 08, 2012, 10:50:21 pm
@frank26080115 A separate DAC gives me the ability to create and send waveforms directly from the MCU as well. If I decide to implement something like a low frequency arb. wave generator then it will be easier to send the data directly to the DAC rather than packing it up into a format that the decoder will understand just for it to be decoded again.

VLSI Solution brand MP3 decoders can also play WAV files, and WAV files are just a series of amplitudes. It'll work kind of like a normal DAC when you tell it to play a WAV file.

edit: but it won't work quite like an arbitrary function generator though, so your point is still valid
28  Using Arduino / Audio / Re: MP3 decoding code, NOT realtime on: August 08, 2012, 12:49:57 pm
I wanted to keep costs down and board layout simple. Seeing as it doesn't have to be realtime, software seemed like a fine solution

How are you planning to output audio?
http://www.analog.com/static/imported-files/data_sheets/AD5663.pdf
I have another topic in the audio section talking about it, as I'm not sure which SPI mode to use to talk to it.

You know, the MP3 decoder chips output audio directly, so you don't need the AD5663 anymore. The board layout is still very simple.
29  Using Arduino / Audio / Re: MP3 decoding code, NOT realtime on: August 07, 2012, 11:17:09 pm
maybe libmad could be your starting point, i've seen it being used on a mbed, so it's not impossible to use

http://mbed.org/users/Gruenfrosch/code/madplayer/summary
30  Using Arduino / Programming Questions / Re: How to use variables that are declared in a library on: August 07, 2012, 07:31:16 am
it's declared in a class only if the library uses a class. if it is declared in a class, it must be public for you to access it. For example

If this is in the library's header file
Code:
class HardwareSerial
{
  public:
    int theVariableYouWantToAccess;
  private:
    int someOtherStuffYouCannotAccess;
};

extern HardwareSerial Serial;

then you can do something like
Code:
Serial.theVariableYouWantToAccess = 1;
inside your own sketch

if it's not inside a class, then you should be able to access it by using "extern" inside your sketch. For example

if your library has a .c or .cpp file that looks like
Code:
int theVariableYouWantToAccess;

void foo()
{
  theVariableYouWantToAccess++;
}

then your sketch can look like
Code:
extern int theVariableYouWantToAccess;

void setup()
{
}

void loop()
{
  theVariableYouWantToAccess = 0;
}

or you can have a header file that contains

Code:
#ifndef headerFile_h
#define headerFile_h

extern int theVariableYouWantToAccess;

#endif

and your sketch looks like
Code:
#include <headerFile.h>

void setup()
{
}

void loop()
{
  theVariableYouWantToAccess = 0;
}
Pages: 1 [2] 3 4 ... 40