Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Quote
What sort of technologies can achieve this?
Why save the data to a database? Saving to a file makes more sense to me.

A web app assumes more than one person is going to use it. I can't imagine putting the app on the internet, and letting anyone that wants to diddle with the wall of lights.

I would a C# forms app that saved data to a flat file, and/or sent it to the Arduino(s).
22
Software / Re: Lograr endender y apagar L...
Last post by gepd - Today at 02:46 am
tu estás haciendo esto en tu código:

Code: [Select]
Dato2 = EEPROM.read(Direccion); // Lee la dirección y lo almacena en la variable Dato2.
   
    // Lee los datos almacenados en al EEPROM al iniciar el programa.
    switch (Dato2)
    {
    case B0:
    digitalWrite(pinLed1, HIGH); // Enciende el Led 1.
    break;
   
    case B1:
    digitalWrite(pinLed1, LOW); // Apaga el Led 1.
    break;
    }


imagino que si en algún momento el interruptor deja de funcionar, entonces si reseteas el arduino, volverá al estado que dejaste grabado la última vez.

Entonces conectaste el led en otra entrada y ahora estaría todo funcionando bien?
23
All of this information is available online using search engines BTW - I thought people these days had heard of such things!
"It is the brain, the little gray cells on which one must rely. One must seek the truth within--not without."

Sometimes a thought experiment gets us to a whole new answer.

And, with a price tag of one chocolate chip cookie, they are rather cheap to perform.

25
General Electronics / Re: Powering a 5v relay with 1...
Last post by KenF - Today at 02:44 am
Yeah, but this relay board might be powered by either 12v or 5v, depending on which device is turning it on. I already need a diode to isolate the sources. I was hoping to find a way to do this without adding a voltage regulator to the 12v trigger.
How many relays on the board?  If it's only a small number you could use the 5v from your arduino.
26
Programming Questions / Re: Arduino Library Time
Last post by PaulS - Today at 02:43 am
Quote
It is just not accepting the new code.
What isn't accepting what new code? Code seems to be conspicuously absent from your post.
27
Displays / Re: SainSmart LCD Module For A...
Last post by TobyTobyo - Today at 02:41 am
Quote
Currently the malpartidia LiquidCrystal_IC2 library is the library of choice.  You can get it here: FM New LiquidCrystal

Use the sketch found here i2cLCDguesser to determine the parameters to use with that library.

Use the tutorials found here LCD Displays (Blue and YELLOW) with I2C/TWI Interface  to get started using the library.
Thanks! Unfortunately I already saw these, and they weren't much help. I tried adjusting the contrast, but that didn't work. I looked at a I2C ID Checker and determined that the 20x4 display has a ID of 0x27. I've updated the LiquidCrystal_I2C to 1.2.1, but that didn't help either. The IDE does not seem to be liking
Code: [Select]
lcd.//any command. Would you possibly happen to know why?
28
Sensors / Re: MXP2200DP pressure reading
Last post by Peter_n - Today at 02:37 am
That is noisy. It could be worth the effort to try to make it better, but you need an opamp to amplify the signal.
The Arduino Mega has 10-bits ADC, so 0...5V input is 0...1024. That is 5mV resolution. And the total span of the sensor could be 20mV at 5V.

Remove some noise by adding a capacitor of 1nF or 10nF from A0 to GND, and another one from A1 to GND.

You don't have to make an RC-filter, because the 'R' of the RC-filter is the output impedance of the sensor. So just a capacitor is okay, and it won't harm this sensor.

Next thing is using the average, trying to get a maximum resolution. I use 20 samples because that will still fit in an integer. You could try 1000 samples with a long integer.
It is important to divide by 20 with float numbers, so nothing is truncated.
Do this for both analog inputs, and with the capacitor at the inputs, the result could be 10 times more stable.

Code: [Select]

// Old line : float vPlus = (float) analogRead ( pinVplus ) / 1023.0 * 5.0;

#define NUM_SAMPLES 20
int sumPlus = 0;
for( int i=0; i<NUM_SAMPLES; i++)
  sumPlus += analogRead ( pinVplus );
float vPlus = ((float) sumPlus / (float) NUM_SAMPLES ) / 1023.0 * 5.0;
29
Deutsch / Re: Arduino ohne Bootlader fla...
Last post by sschultewolter - Today at 02:35 am
Sicher das der Atmega dann noch arbeitet? Las eine Led einfach im Sekundentakt aufblinken. Zeichen verschlucken liegt vermutlich an falschen Einstellungen bzw. Genauigkeiten.

Der Pro Mini hat nur einen Resonator. Diese sind nicht so genau wie Quarze. 1-5% Sollte für UART meist unproblematisch sein. Jedoch kommen da noch je nach Einstellung 2.1 - 3.5% an Fehlern hinzu!

http://www.gjlay.de/helferlein/avr-uart-rechner.html

Teste mal 76800
30
Yeah, but this relay board might be powered by either 12v or 5v, depending on which device is turning it on. I already need a diode to isolate the sources. I was hoping to find a way to do this without adding a voltage regulator to the 12v trigger.
Pages: 1 2 [3] 4 5 ... 10