Show Posts
Pages: [1] 2 3 ... 7
1  International / Software / Re: Problema con delayMicroseconds() en Arduino0022 on: February 04, 2011, 03:05:41 pm
Voy a probar esa libreria, gracias.
Tienes una pagina donde den ejemplos de como implemantar esa libreria?

Entonces ya esta resuelto el problema de delayMicroseconds() ?

2  Using Arduino / General Electronics / Re: Bizarre phenomenon happening! Trying to use camera flash w/ Optocouplers & SCR on: February 03, 2011, 10:05:36 pm
westf,
I wasn't suggesting to connect a +600v Cap directly to the Arduino.
I just pointed out where is the trigger related to his configuration.

Also, there is no bizarre phenomenon. Your body has an active capacitance and some times is enough to do things like that... acting as the cheaper trigger in the world.

That's the reason why he is triggering the flash with his own capacitance, and that's exactly the clue for his circuit, with a small cap triggering the flash through a Triac, just like westf's link suggested. But I wouldn't over complicate the circuit. All you need is to add that cap to the equation.
3  Using Arduino / General Electronics / Re: Bizarre phenomenon happening! Trying to use camera flash w/ Optocouplers & SCR on: February 03, 2011, 05:38:44 pm
The reason why flashes can discharge large amount of energy is because they have large capacitors.

The triggering of the flash is through his capacitor, not the power source.

If you induce grounding on the circuit, you are completing the circuit and you'll trigger the flash.



Note the correct way to trigger a flash on the graphic.

That's where the trigger goes. Not the battery.




4  Using Arduino / Programming Questions / Re: Arduino is freaking out with +19,000 bytes sketches on: February 03, 2011, 12:16:57 pm
Now, here are some open questions.

How reliable is the Flash.h library? (http://arduiniana.org/libraries/flash/)

Methods to detect/fix memory leaks on Arduino?




5  Using Arduino / Programming Questions / Re: Arduino is freaking out with +19,000 bytes sketches on: February 03, 2011, 10:49:10 am
Looks like working with "float" and "long" doesn't make it easy either.

Thank you guys. Now I know where I have to focus now.
6  Community / Website and Forum / Re: Old Forum - Urgent Change Required!!! on: February 03, 2011, 09:03:01 am
They are talking about this...




... it's really annoying.


Talking about annoying... YouTube's adds on my stupid video and I am getting nothing out of that.

Oh, the irony... again.


7  Using Arduino / Programming Questions / Re: Arduino is freaking out with +19,000 bytes sketches on: February 03, 2011, 01:21:58 am
That would make sense.

There is any practical way to optimize the SRAM?

Any way to check how much SRAM I am using?

Actually... how the heck Arduino developers check for leaks and all that stuff?
8  Using Arduino / Programming Questions / Arduino is freaking out with +19,000 bytes sketches on: February 03, 2011, 01:12:07 am
I am using Arduino Duemilanove (328P).

I came to the conclusion that there is a magic number (19200 bytes), and after that everything is erratic.

At the beginning I thought that I was doing something wrong.

Today I spent almost all day trying to debug this problem and I figure it out that was a problem after 19,200 bytes of the sketch.

I've tried with different 328P's (I have many of those), and always with the same result.

Then, I switch to my Arduino Mega 2560, and all the problems are gone.

There is any known problem with Atmega328P with sketchs bigger than 19,000 bytes?

I am the only one here with this problem?


9  Community / Website and Forum / Re: Old Forum - Urgent Change Required!!! on: February 03, 2011, 12:30:38 am
They are talking about this...




... it's really annoying.
10  Using Arduino / Displays / Re: Running Text on a 16x2 LCD on: February 02, 2011, 05:11:45 pm
No code was found...

I don't understand, there is a lot examples inside the LiquidCrystal440.h example.


Here is some...

Code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // replace with your PIN configuration

int nRows = 2; // n of LCD's rows
int nColumns = 16; // n of LCD's columns

void setup() {

        lcd.clear();
        lcd.begin(nColumns, nRows); // 16 ROWS / 2 LINES
        
}



void loop() {


//======setCursor===
// loop from ASCII 'a' to ASCII 'z':
lcd.home();        
int thisLetter = 'a';
    // loop over the rows:
    for (int thisRow = 0; thisRow < nRows; thisRow++) {
// loop over the columns:
for (int thisCol = 0; thisCol < nColumns; thisCol++) {
// set the cursor position:
lcd.setCursor(thisCol,thisRow);
// print the letter:
lcd.print(thisLetter, BYTE);
thisLetter++;
if (thisLetter > 'z') thisLetter = 'a';
delay(100);
}
    }
  
  
  
  
  

//========Autoscroll:  -- my arch nemesis !
lcd.clear();
// set the cursor to (0,0):
lcd.setCursor(0, 0);
// print from 0 to 9:
lcd.print("Autoscroll");
for (char thisChar = '1'; thisChar < '9'; thisChar++) {
lcd.print(thisChar);
delay(100);
}

// set the cursor to (nColumns,1):
lcd.setCursor(0,1);
        lcd.print("Autoscroll");
// set the display to automatically scroll:
lcd.autoscroll();


// print from 0 to 9:
for (int thisChar = 0; thisChar < 10; thisChar++) {
lcd.print(thisChar);
delay(100);
}
// turn off automatic scrolling
lcd.noAutoscroll();
if (nRows>2) {
//========Autoscroll:  -- my arch nemesis !

// set the cursor to (0,0):
lcd.setCursor(0, nRows-2);
// print from 0 to 9:
lcd.print("Autoscroll");
for (char thisChar = '1'; thisChar < '9'; thisChar++) {
lcd.print(thisChar);
delay(100);
}

// set the cursor to (nColumns,1):
lcd.setCursor(0,nRows-1);
        lcd.print("Autoscroll");
// set the display to automatically scroll:
lcd.autoscroll();


// print from 0 to 9:
for (int thisChar = 0; thisChar < 10; thisChar++) {
lcd.print(thisChar);
delay(200);
}
// turn off automatic scrolling
lcd.noAutoscroll();
}


  
}
11  Using Arduino / Displays / Re: Sparkfun huge lcd 160x128 on: February 02, 2011, 03:07:45 pm
I was answering in another thread about the T6963 library that is buggy.

Instead, I've found this library, that is working (or at least doesn't have any bugs).
Did you try that one?

Edit: Actually, you also need to download this file, and replace it for the one with the same name on the library.

And this the complete list of downloads for that library

12  Using Arduino / Displays / Re: Problem with Sample sketch on: February 02, 2011, 02:35:57 pm
That library is so buggy that is not even funny.

Also, there is some random codding being commented where it shouldn't...

Like this:

I've fixed that, but nothing seems to change on the "clearPixel" error.

I get to the point to comment out and delete part of the code related to "clearPixel", and the error stays there randomly on different parts of the code with the same "clearPixel" error, where there is no more "clearPixel" in the code!

That library is buggy pal. Try to find another one. vvvvvvvvvvvvvvvvvvvvvvvv


Edit: I've found the one working. Delete the previous library first! Download this library.

After installing T6963_Lib to Arduino's "libraries" folder, download this file and replace it for the same file on T6963_Lib's library.

Both examples should work after that with the new library.




13  Using Arduino / Displays / Re: Problem with Sample sketch on: February 02, 2011, 01:28:49 pm
Looks like you need to use brackets instead parenthesis, but a short junk of code is difficult to debug.

Since you didn't had any error until that line, I was duplicating the code used on ""// Set a single pixel at x,y (in pixels) to 1 (on)".

I think you have to dump all the code in one post to understand it.


Edit: I've found the library. Is a mess, and is not debugged.
Let me check if I get somewhere.

14  Using Arduino / General Electronics / Re: What I learned today: Flux is awesome! on: February 02, 2011, 12:23:48 pm
Another amazing product for desoldering is CHIPQUIK, in case you have to work on large surfaces.
That product basically slows down the soldering process. Great product.

15  International / Software / Re: Reset desde el programa on: February 02, 2011, 09:12:57 am
De hecho la idea de transistor no es mala idea, (si respetas las leyes de Ohm). Yo utilizaria un capacitor para resolver el problema de tiempo.

Utilizar un 555 no es mala idea para nada tampoco, y tienes que tener las mismas precauciones como el ejemplo anterior.
Pages: [1] 2 3 ... 7