Show Posts
Pages: 1 [2] 3 4 ... 79
16  Forum 2005-2010 (read only) / Troubleshooting / Re: Error: could not finde java 2 runtime environm on: March 01, 2007, 10:27:07 am
>PS. I'm here in a Arduino Workshop. All Mac are working thin. All 5 PCs don't work.
>Some have the same problem than I have ...  

Because they are PCs....

>Why does tha Arduino-Editor don't work standalone without Java? Wink

Because writing a cross platform IDE is a complex and expensive exercise... we are an open source project
and not a big company, we create great mashups of existing open source technologies..

why do you think you pay only 25 EUR for arduino?

17  Forum 2005-2010 (read only) / Troubleshooting / Re: ATMEGA168 on: February 01, 2007, 03:42:44 am

my test show me that avrdude produces a nummber of errors while writing fuses to an atmega168
the same exact setup programs well on windows with avr-studio

the latest build of parallels is really good for testing this smiley

18  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino 006 hangs-up - Mac on: November 23, 2006, 05:16:06 am
type ctrl-c in the terminal window

this means press th ctrl key and C at the same time...

this kills the process that's running in the foreground i/e the serial proxy

19  Forum 2005-2010 (read only) / Troubleshooting / Re: reading piezo sensor on: November 12, 2006, 05:07:57 am
Just adding to daniel's excellent response.

All those print statements use a looooot of time...
remove all that HEX, BIn etc... print only one value and up
the serial speed at 115200

also you might want to print data only if it goes above a certain value...

all that printing is makin you miss all the good values smiley

20  Forum 2005-2010 (read only) / Troubleshooting / Re: In circuit emulator & gcc do they work on avrd on: July 12, 2006, 02:52:08 am

arduino doesn't support avr ice because the processor, atmega8, doesn't have jtag support

the next version of arduino will have an atmega168 that supports the debugwire protocol.

This protocol is proprietary and without documentation therefore supported only by avr-studio on windows.

21  Forum 2005-2010 (read only) / Troubleshooting / Re: newbie: pull up resistor on: June 19, 2006, 11:09:44 am
the current arduino language doesn't have a specific instruction to do that but I think
that using  digitalWrite(thePin,HIGH) while thePin has been defined as an INPUT should
turn on the internal 100k pull-up resistors.

give it a try...

22  Forum 2005-2010 (read only) / Troubleshooting / Re: Timer, SSI-Interface on: April 30, 2006, 11:19:36 am
I guess what you're trying to build is an SPI interface.

have you looked at the example for the Qt401?
there is an SPI routine written in the arduino language that has been working quite well.

otherwise you need to look into "Hardware SPI"

here is some c code from Peter Fleury that uses the SPI master built-in the atmega8

#define SPI_CHIP_SELECT PB2             // SS pin is used here, but any pin can be used
#define SPI_MOSI        PB3             // SPI MOSI pin
#define SPI_SCK         PB5             // SPI SCK pin
#define SPI_DDR         DDRB            // port used by SPI

int main(void)
    uint8_t led = 2;

    /* SPI port initialization (/SS, MOSI, SCK output, MISO input) */

    /* SPI interrupt disabled, SPI port enabled, master mode, MSB first, SPI mode 3, SPI Clock = XTAL/4 */
    SPCR = _BV(SPE) +_BV(MSTR) + _BV(CPOL) + _BV(CPHA);

        PORTB &= ~_BV(SPI_CHIP_SELECT);     // enable SPI device
        SPDR = led;                         // send data to SPI device (turn LED on/off)
        while (!(SPSR & _BV(SPIF)));        // wait until write complets
        PORTB |= _BV(SPI_CHIP_SELECT);      // disable SPI device

        led ^= 2;                           // toggle LED

        delay(65535);                       // delay 0.1 seconds


consider that the clock used by this code will be in the region of 4 MHZ (the code mentions clock/4...)

let me know if this works for you

23  Forum 2005-2010 (read only) / Troubleshooting / Re: strange behavior on my prog ! on: March 18, 2006, 02:37:45 am

just to clarify a bit. There are three types of memory in the atmega8:
* Flash memory: it's a rewritable non-volatile memory. this means that its content will still be there if you turn off the power. it's a bit like the hard disk on the arduino board. your program is stored here.

* RAM: it's like the ram in your computer.its content disappears when you turn of the power but it can be read and writter really fast.

* EEPROM: it's an older technology to implement rewritable non-volatile memory. it's normally used to store settings and other parametres.

remember that only a few years ago flash memory was expensive and very few microcontroller had one. it was common to use OTP memory, which is a type of memory that can ony be written once and can't be reporgrammed anymore. in this situation if you want to store settings or parametres you need an EEPROM.

Lastly when you desing  a product, let's say an egg timer, that you manufacture in large quantity it is normal to buy the processors pre programmed (masked) by the factory. in this case not even a nuclear explosion will change the content of the program and the eeprom comes handy.

The link that mellis sent you allows you to use the program memory to store arrays which is very useful. We're using this technique to store strings for a UI prototype we're building for an appliance manufacturer.

hope this cleared the air a bit smiley
24  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino004 and C string functions on: April 30, 2006, 11:26:10 am
what do you mean with "but pb compilation on serial..." ?

25  Forum 2005-2010 (read only) / Troubleshooting / Re: real string functions? on: April 23, 2006, 07:33:56 am

you didn't upset me at all smiley)

I was just giving a piece of advice after having done tons of projects of this type.

I'm stuck in bed for 3 days with a nasty flu... my writing style is not particularly good at the moment smiley-sad

26  Forum 2005-2010 (read only) / Troubleshooting / Re: real string functions? on: April 22, 2006, 09:26:40 pm

i have a quick comment on the solution.
We're on a microcontroller with 1k of ram, doing string manipulation in a way it's kinda risky. if you keep allocating new buffers (as the string grows) who's going to guarantee that in the long run the code it's not going to run out of memory.
and all of this to have human readable commands....
just use a lighter protocol. say that each command is a single uppercase letter and make sure you send the parametres using some predictable fixed length message.
your code will be lighter and more predictable.

remember this is not actionscript and you don't have 1gb of ram so it doesn't matter how you use your strings.

just my 2cent

27  Forum 2005-2010 (read only) / Troubleshooting / Re: Memsic Accellerometer problems on: April 17, 2006, 10:36:47 am
the quickest answer I can think of is that the serial speed in the Arduino IDE is wrong...
if the speed is different from the one specified in the code the data will look like garbage.

are you sure you haven't modified anything at all in the code?

28  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on RPM-based linux distro on: March 16, 2006, 03:18:59 am
That's the main  problem on linux now... that every distribuition has a different set of pre-compiled components available.

I had it running on mandriva 2006 a while ago but that machine has long been reinstalled so the files are gone..smiley-sad

a bad news and a good news smiley
Unfortunatly you need to recompile the avr-gcc but the good news is that guido socher has written an article about using avr chips with linux that has a step by step guide on how to compile avr-gcc, libc and uisp.

then you just need to put the files in the tools directory inside the arduino directory (where you have your arduino executable)
the rest of the instructions are similar.

let us know about your progress

29  Forum 2005-2010 (read only) / Troubleshooting / Re: I can't upload to io board(in Linux)... on: March 16, 2006, 04:48:16 am

all those java not found messages means that either java is not installed or your script can't find it!
make sure java is installed and JAVA_HOME is defined

30  Forum 2005-2010 (read only) / Troubleshooting / Re: IDE bug? on: February 01, 2006, 11:45:58 pm

i'll ask david to have a look at it... I'm the macos x guy smiley

thank you for informing us!

Pages: 1 [2] 3 4 ... 79