Recent Posts

Pages: [1] 2 3 ... 10
1
Programming Questions / Re: How to reset the Arduino ...
Last post by Juraj - Today at 01:39 pm

#include <avr/wdt.h>

and

 wdt_enable(WDTO_15MS); // self reset after 15 milliseonds
2
Storage / Re: Why doesn't my SD card inc...
Last post by mbferguson - Today at 01:39 pm
reading your previous posts, I think you have bitmaps for display. bitmaps should not be part of the sketch and you can put them on SD card and transfer to display memory without using much memory. what arduino do you have?

I didn't realize those bitmaps took up legit 50% of the entire memory space. I gave up on those damn things, but atleast I know how to use them now. :)

I have the Uno R3.
3
What does * in step 2 on DB0 and DB1 mean?
4
Programming Questions / Re: MODBUS RTU (RS485)
Last post by adwsystems - Today at 01:39 pm
I figured out an way of making the correct data visible. Through an lcd screen.
You do realize that if you have not separated the RS-485 from the USB interface pins (ie., pins 0 and 1) then every time you program the UNO a whole bunch of stuff will then be sent out on the RS-485 and upsetting the connected slaves? (been there, done that, won't do it again)
5
Français / Re: Niveau batterie - Comment ...
Last post by weado - Today at 01:39 pm
LOL, cela tombe bien j'étais justement sur ta page ;-) Mais de ce que je peux comprendre sur ton blog, c'est qu'il fourni une intensité max de 30mA, hors j'en ai besoin de 100 mA max (80 mA mesuré).
Par contre, le HT7533-1 serait suffisant pour le coup ?
6
Audio / Re: Input and output of voice ...
Last post by MarkT - Today at 01:38 pm
Hello everyone,

i have an arduino nano and a mega board.

I want to make a project where i have input of voice/audio through a jack then maybe edit it(or maybe not if its impossible,not a big problem) and then output it at the same time to a speaker (jack again). Editing as i said is not a big problem for me if its impossible, because i do not want big delay in between input and output.
You will be wondering why input no edit and output! Because sometimes my software will decide if it will output the sound or if it will not output the sound.depends on some buttons that i will have.

About the buttons thing im happy to do it but how to input voice and output it through jacks?

Thanks in advance
Edit?  What do you mean by edit?
7
Generale / Re: Arduino e pulsante
Last post by docdoc - Today at 01:37 pm
Accodandomi ai precedenti validi consigli, mi chiedevo che senso abbia la seconda if() ossia se per caso non debba essere "if(valb2)" e non "if(valb1)", perché mi sfugge la logica:

Code: [Select]
void bt12Callback() {
  valb1=digitalRead(button1PIN);
  if(valb1)
  {
    piumenol=2;
    }
  //delay(5);
  valb2=digitalRead(button2PIN);
  // ----------------
  // QUESTO!!
  if(valb1)
  {
    piumenol=-2;
    }
  // ----------------
  if((valb1) && (valb2))
  {
    piumenol=0;
    motorminl=0;
    }
}

Ossia se è premuto il pulsante 1 imposti piumenol a 2, poi vedi se è premuto il pulsante 2 ma se è premuto il primo imposti piumenol a -2 (!), ed infine se sono premuti entrambi lo metti a zero...
Insomma, io avrei fatto una cosa del genere:

Code: [Select]
void bt12Callback() {
  valb1=digitalRead(button1PIN);
  valb2=digitalRead(button2PIN);
  if( (valb1) && !(valb2) ) // Pulsante 1 premuto e 2 non premuto, incremento
    piumenol=2;
  else if(!(valb1) && (valb2) ) // Pulsante 1 non premuto e 2 premuto, decremento
    piumenol=-2;
  else if((valb1) && (valb2))  // Entrambi premuti, fermo
  {
    piumenol=0;
    motorminl=0;
    }
}

Infine una nota, scusami, tutta sta sparata di istruzioni tutte attaccate senza uno straccio di commento:

Code: [Select]
  valtrimlr = analogRead(trimlrPIN);
  strim.setValue(map(valtrimlr,rangmintrim,rangmaxtrim,100,0));
  valtrimlr = map(valtrimlr, rangmintrim,rangmaxtrim,minValueMotor,maxValueMotor);
  valStickThrottle = analogRead(throttlePIN);
  pbarthrottle.setValue(map(valStickThrottle,rangminjoythr,rangmaxjoythr,0,100));
  itoa(map(valStickThrottle,rangminjoythr,rangmaxjoythr,0,100), sbuffer, 10);
  tthrottle.setText(sbuffer); //map(valStickThrottle,rangminjoythr,rangmaxjoythr,0,100));
  valStickThrottle = map(valStickThrottle, rangminjoythr,rangmaxjoythr,minValueMotor,maxValueMotor);
  valStickYaw = analogRead(yawPIN);
...eccetera eccetera...

non è il massimo, non solo per te (se tra un anno o due devi riprendere in mano il codice, sicuro di ricordare come funziona e perché?) ma anche per chi (come noi) magari vorrebbe cercare di aiutarti... ;)
8
Hello Snertus,

I have managed to connect an Arduino  to LabView using LINX.  I can't remember all the details, but I didn't pay for anything. 
I'm at work now, I can give you more information from home, in about 5 hours or so.

9
Hardware / Re: Problema Arduino mega
Last post by fonsypool - Today at 01:36 pm
de la RAMPS tengo la 1.4, si ha funcionado a la perfección hasta que he actualizado el Marlin a la ultima versión y habilitado el LCD, las pruebas las hacia directamente conectando el Cura por USB.

Lo único extraño antes del fallo, fue que si el LCD esta encendido no deja conectarse por USB, entendía que era normal, pero al día siguiente al hacer pruebas para calibrar los ejes es cuando vi que fallo que no me movía los motores pensé en algún fallo de programación y al volcar el sketch del Marlin 2.0 vi que era mi Mega el que no funcionaba.

Como sigo probando lo del bootloader, aun no he comprobado si con la nueva Mega me funciona todo el código bien, y no tenga algo mas dañado. Los drivers si es verdad que hace un mes se me averió el driver del extrusor al calibrarlo pero los motores seguían funcionando y el driver que tenia de reserva funcionaba perfectamente.
10
Storage / Re: Why doesn't my SD card inc...
Last post by Juraj - Today at 01:35 pm
reading your previous posts, I think you have bitmaps for display. bitmaps should not be part of the sketch and you can put them on SD card and transfer to display memory without using much memory. what arduino do you have?
Pages: [1] 2 3 ... 10