Show Posts
Pages: 1 [2] 3 4 ... 28
16  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: avrdude and stdout on: December 31, 2007, 05:56:42 am
Ok, thanks! Using stderror solved my problem!
17  Forum 2005-2010 (read only) / Bugs & Suggestions / avrdude and stdout on: December 29, 2007, 11:17:47 am
I am trying to catch output from avrdude in a visual studio progam. It seems that avrdude is not using stdout for writing to the console window.

Also, a test in the command prompt (windows xp; cmd.exe) as 'avrdude -h >test.txt' should output the switches supported by avrdude and other text in the file test.txt. Should, but it doesn't.

The Arduino IDE seems to show some text coming from avrdude, for example when upload.verbose is set to true. Can anyone explain how this is done?

Thanks in advance!
18  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Ideas for Arduino 0011 on: November 07, 2007, 09:22:54 am
That would be awesome Mellis. I have some strange issues/problems with burning .hex file that maybe can be solved this way (at least, I hope).
19  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Ideas for Arduino 0011 on: November 06, 2007, 08:15:28 am
I would be nice to have a similar option as the 'bootloader' burning from within the IDE, but instead of burning bootloader I would like to burn the .hex of my sketch.
20  Forum 2005-2010 (read only) / Syntax & Programs / Re: How to sprintf a float? on: December 01, 2006, 04:45:17 am
I have not found a real solution to this, but what I do is multiply the float by 100 or 1000 and convert it to an int. After that you can do do  with it what you want...
21  Forum 2005-2010 (read only) / Syntax & Programs / Re: Please explain this (nunchuck) code to me on: December 18, 2009, 12:27:10 pm
Now I understand the code, but I run into something that might be a problem.

I am working on a rather time sensitive program. I am generating ppm stream for r/c transmitter. All is running fine as long as I don't use the code mentioned in the first post of this thread. All frames are almost as long as I want them, there are only a few microseconds differences between frames.

As soon as I use the mentioned code, the differences between time frames are so much that the generated stream is not recognized anymore by my transmitter. This is WITH the Nunchuck itself connected. When I remove the Nunchuck adapter it seems that all is back working normally.

I am NOT yet using any code to read from the Nunchuck, I am just powering it.

Is it better to power my Nunchuck from +5V on the Arduino or should I share ground of Nunchuck on pin 16 with GND on Arduino?

Any ideas are appreciated!
22  Forum 2005-2010 (read only) / Syntax & Programs / Re: Please explain this (nunchuck) code to me on: December 10, 2009, 11:45:04 am
Thank you mem, that I understand.

Should I read up about the DDRC and PORTC as they are used in the code I posted or is the code you posted just as good?
23  Forum 2005-2010 (read only) / Syntax & Programs / Please explain this (nunchuck) code to me on: December 10, 2009, 11:28:31 am
I am having a hard time to understand the code below. It is part of the code that can be used with the Wii Nunchuck and the thingm adapter for the Nunchuck. I understand the code is to define power and gnd for the Nunchuk, but I don't see what it does exactly.

Code:
// Uses port C (analog in) pins as power & ground for Nunchuck
static void nunchuck_setpowerpins()
{
#define pwrpin PORTC3
#define gndpin PORTC2
    DDRC |= _BV(pwrpin) | _BV(gndpin);
    PORTC &=~ _BV(gndpin);
    PORTC |=  _BV(pwrpin);
    delay(100);  // wait for things to stabilize        
}

From the comment in the first line I understand this code is used to power the nunchuck. I also would like to know what (similar) code can be used to shut off power (if that is even possible).

Thank you in advance!
24  Forum 2005-2010 (read only) / Syntax & Programs / Re: Please explain this code to me on: March 19, 2009, 08:23:48 am
ok  smiley-wink

 thank you very much for explaining
25  Forum 2005-2010 (read only) / Syntax & Programs / Re: Please explain this code to me on: March 19, 2009, 08:16:36 am
That is easier to read and understand for me.

What is the advantage to use Arduino code or port manipulation?
26  Forum 2005-2010 (read only) / Syntax & Programs / Please explain this code to me on: March 19, 2009, 08:04:45 am
I found this piece of code that is used to provide power to a Wiichuck (converterboard for use with Wii Nunchuck)
Code:
static void nunchuck_setpowerpins()
{
#define pwrpin PC3
#define gndpin PC2
    DDRC |= _BV(pwrpin) | _BV(gndpin);
    PORTC &=~ _BV(gndpin);
    PORTC |=  _BV(pwrpin);
    delay(100);  // wait for things to stabilize        
}

Can someone explain what it exactly does?
27  Forum 2005-2010 (read only) / Syntax & Programs / PWM / Sound / Wireless (walkie-talkie) on: May 23, 2008, 09:00:11 am
I have an idea about sending sound (through PWM) with this schema from 1 Arduino to another Arduino:

Arduino -> walkie talkie tx --------- air ------- Walkie talkie rx -> Arduino.

After reading http://www.arduino.cc/en/Tutorial/PlayMelody, I think it is possible. What I actually want is sending data, not sound, from 1 room to another room. I know for most walkie-talkies (frs/gmrs) this is not allowed, but since the Walkie-talkies I will be using are really toys, I don't see much of a problem.

The first Arduino is offering sound (data through PWM) to the first Walkie talkie microphone. The 2nd Walkie-talkie receives sound and offers the sound to a 2nd Arduino, 2nd Arduino reads it through Analogread() and converts it back to data.

Any ideas if this is doable?

Thanks,

JD
28  Forum 2005-2010 (read only) / Syntax & Programs / Re: Help:saving text stream in Arduino Serial Moni on: January 19, 2008, 08:42:54 am
I don't think you can save it directly, but you can copy it to your clipboard and then paste it in notepad or something alike
29  Forum 2005-2010 (read only) / Syntax & Programs / Re: array help on: February 07, 2007, 09:41:38 am
Did you check this, it should get you started:
http://www.arduino.cc/en/Reference/Array
30  Forum 2005-2010 (read only) / Syntax & Programs / Re: Error with mathematical calculation on: November 13, 2006, 02:49:12 am
Quote
i know that the atmega168 has twice as much programming space as atmega8. the pin configuration is different. this web page has a datasheet on atmega168 -- http://www.arduino.cc/playground/Learning/ArduinoMini

I think it should be possible to use the Atmega168 in the 'standard' Arduino board, I read about it here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1159499314/

See posting #9 from user 'mellis' and the messages after that posting.


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