Show Posts
Pages: [1] 2 3 ... 25
1  Forum 2005-2010 (read only) / Troubleshooting / Re: How do I use AVR studio? on: October 06, 2008, 06:23:17 pm
Damn, people those days. No respect for anyone...

Anyway, my guess would be that you use AVRstudio to compile a winhex file, ready to upload, then, you take this file and upload it via avrdude-ser-jtag, and voilà

(I won't put the link to the avrdude-ser-jtag method, just do a bit of searching by yourself)
2  Forum 2005-2010 (read only) / Troubleshooting / Re: Help with Communicating with AppleScript (ASproxy) on: February 28, 2009, 12:44:24 pm
The board is still runing, but you don't see it because there's no program to receive it.
As soon as you open another serial terminal (hyperterm, custom processing sketch, ...) it will send data.
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Help with Communicating with AppleScript (ASproxy) on: February 28, 2009, 04:24:12 am
You can't have 2 softwares that communicates on the same serial port. Why do you need the arduino IDE when ASProxy is running ?
4  Forum 2005-2010 (read only) / Troubleshooting / Re: Missing pulse detector misses pulse! on: June 13, 2008, 09:00:37 am
If it still not works, could he try with a faster crystal ? (the answer to this question is for me too ^^)
5  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: All info on PDF on: July 19, 2008, 10:58:52 pm
Maybe a simpler solution :
http://pmwiki.com/wiki/Cookbook/PmWiki2PDF
6  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: All info on PDF on: July 19, 2008, 10:54:23 pm
It's been ages since the last time I used PHP, but I'm pretty sure you can generate PDF files.
I'd say you'll have to parse the Wiki Database to find the pages, and then add a writePDF function kind of thing to generate one huge PDF, let's say once a month.

http://www.fpdf.org/?lang=en
7  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: mini RTOS [sic] on: August 04, 2008, 01:35:33 pm
Just a thought, but why not use a port of the freeRTOS project (and eventually rewrite some parts of it so that it works with the off-the-shelf-16Mhz-crystal Arduino) ?
http://www.freertos.org
http://www.kieltech.de/uweswiki/FreeRTOS
8  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Spam fighting request on: September 12, 2008, 02:14:49 pm
Quote
Quote
Quote
[You're even more of an addict than me! :-)
--Phil.

I just read something about that.  Supposedly it's the same sort of addiction as a slot player.  Each time you visit it's like pulling the handle, and the jackpot is a good posting to reply to.
does that one count?
and now ?
9  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Spam fighting request on: September 11, 2008, 11:08:13 pm
I'm ok to help follower on the de-spam task. I'm in Europe (France), and I check the forum at least each hour.
Cheers
10  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: features request for IDE on: July 01, 2008, 12:15:21 pm
Nice ideas
I'd like to add :
Ctrl+Q or Command+Q > comment a whole block of text (like in Scite)
Expandable {} blocks
11  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Ip Logged > Why? on: July 07, 2008, 01:19:18 am
I'm pretty sure the arduino team is not the most intrusive out there and our community is not the most tempted to commit terrorists acts, so I don't care if my IP is logged, I can even tell you my real name and adress if you want ^^
12  Forum 2005-2010 (read only) / Syntax & Programs / Re: Can Arduino write to a text file? on: September 08, 2008, 01:43:36 pm
Do you want the file to be on the computer or on the arduino ? If it's on the computer, you could use any programming language that can write files (processing, C++, java, python, ....) to establish a serial connection with the arduino, read the values from serial and write it to the text file.
If you want the file to be on the arduino (GPS datalogging, for exemple), you might consider writing to an SDcard. Not sure if you can output a .txt file directly readable by your computer, though.
13  Forum 2005-2010 (read only) / Syntax & Programs / Re: Random number seed on: February 24, 2009, 05:45:13 pm
With the do while statement, if you're unlucky, you can experience some really long hang times. Might work but not really good.
14  Forum 2005-2010 (read only) / Syntax & Programs / Re: Random number seed on: February 23, 2009, 06:49:09 pm
I've read somewhere something about big capacitors being used for the electrical noise they make.

Correct me if I'm wrong : white noise is a true random noise because each frequency of the spectrum is equally present. so, a white noise generator would be a good source of random number, wouldn't it ?

Here's what I found :
http://www.ciphersbyritter.com/NOISE/NOISRC.HTM
http://www.musicfromouterspace.com/analogsynth/multinoisemodule_exp.html

And an interesting source for randomness :
http://random.org/
15  Forum 2005-2010 (read only) / Syntax & Programs / Re: I2C Synthax - beginner on: July 13, 2008, 08:36:43 am
On the page you linked
Quote
To write to a register, send the chip the register address followed by the desired data.

The full code is :
Code:
#define REGISTER_CONFIG (6)

void gpio_dir(int address, int dir) {
  //  Send config register address
  Wire.beginTransmission(address);
  Wire.send(REGISTER_CONFIG);

  //  Connect to device and send two bytes
  Wire.send(0xff & dir);  //  low byte
  Wire.send(dir >> 8);    //  high byte

  Wire.endTransmission();
}

You're using a PCA9555, 16bit I/O expander, so by looking at the datasheet pf the chip, you see that
Quote
The Configuration registers (registers 6 and 7) configure the directions of the I/O pins. If a bit in this register is
set to 1, the corresponding port pin is enabled as an input with a high-impedance output driver. If a bit in this
register is cleared to 0, the corresponding port pin is enabled as an output.

Register 6 is the configuration for 8 I/O pins, register 7 for the 8 olthers pins.
So, you are sending the number 6 to the chip to tell it that you want to access the register number 6 (REGISTER_CONFIG = 6).

In the code from the page, the variable dir is an integer used to tell which pins will be an input & which ones will be outputs.

Have a look here for the bitwise operators : http://www.arduino.cc/en/Tutorial/BitMask
Pages: [1] 2 3 ... 25