Show Posts
Pages: 1 2 [3] 4 5
31  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: October 22, 2012, 10:07:41 am
Well, this will cause some laughs...

The UNO shares the ICSP pins with Pin13, 12, 11, so if one wants to program via ICSP, please: disconnect any I/O cables/sensor/etc. from pins 13, 12 and 11.

It that simple!
I was changing the boards, but connecting the exactly same cables to the same pins, so no way.
Hope it can help to anybody.
32  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: October 22, 2012, 09:47:18 am
Ok, I have now more info:
The signature corresponds to the MEGA16U2, so I am connected to the wrong chip.

Any ideas?
33  International / Hardware / Re: Proyecto Arduino Mega 2560 como controladora industrial on: October 22, 2012, 08:59:54 am
Bueno, parece ser que parte del problema está solucionado.
Al parecer mi estupidez es solo superada por mi ignorancia: Estaba usando el conector ICSP equivocado. Se ve que tanto el UNO como el MEGA2560 tienen DOS conectores ICSP, uno para programar situado justo al lado del AREF, y otro no se para que pero mucho más accesible.

Pues ahora el error que me sale es:
- Microcontrolador encontrado incorrecto. Expected signature for ATMEGA328P is 1E 95 0F.
Eso probado con dos Arduino Uno oficiales y correctamente seleccionados en el IDE.


Por otra parte, tengo otra pregunta: existe algun IC como el CD74HC4067E pero con una señal de interrupción?
Es que estamos probando la expansión de I/O, tanto con multiplexación como con buses, y veo que en las entradas es imprescindible la salida a interrupción, pues de no disponer de ella si el programa del micro esta liado haciendo lo que sea en el loop puede no detectar la pulsación de por ejemplo un botón.
Por lo tanto: Es imprescindible la ejecución de interrupciones como mínimo en las entradas.
¿Algun IC recomendado?
34  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: October 22, 2012, 08:37:58 am
Well the thing is moving forward!
It results that my stupidity it's only surpassed by my ignorance: I connected the MKii to the wrong ICSP... It results that both the Uno and the Mega2560 have TWO ICSP, one for program and the other for...

But it can be that easy!
Now I get the following error:
- Trying to program an Arduino Uno board (tested with two boards): Wrong microcontroller found. Expected signature for the ATMEGA328P is 1E 95 0F
- Trying to program an Arduino Mega2560: Wrong microcontroller found. Expected signature for the ATMEGA2560 is 1E 98 01


WTF! And this are original Arduino boards! I will appreciate so much any help.
Thanks!
35  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: October 20, 2012, 02:16:15 am
I'm using Arduino 1.01, thanks for the appointment.
I'm sure it must be a dummy think, but what?

I will test it in another computer.
36  Using Arduino / Microcontrollers / Re: Program microcontrolers without bootloader on: October 19, 2012, 04:22:03 pm
As soon as we have the first designs, I will contact you.
37  Using Arduino / Microcontrollers / Re: No computer to program your microprocessor? on: October 19, 2012, 04:16:32 pm
Time ago, the company I work with used the old motorola 68000 series with 16Mhz clock, with separated eeprom, ram, etc. And to program the micro they used a pcmcia card, they put the pcmcia in when the board was unpowered, powered the board and the program loaded by itself.
Then power off the board again, take out the board and voila!

I wonder if it can be possible to do this also on arduino, as the pcmcia I think acts like a external eeprom or so.
38  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: October 19, 2012, 04:11:54 pm
Dear Crossroads,

I forgot to mention that i'm using a Mac, with Snow leopard.
I was looking into the arduino path, and I found that I have under Arduino/Contents/Resources/Java/hardware/tools/avr/lib two files:
libusb.a
libusb.la

and also:
libusbpp.a
libusbpp.la

I noticed also on Google, that some people says I must install a big sort of things, and others nothing ¿? I'm really lost!
PD: I also tried on Ubuntu Linux with the same results.
39  International / Hardware / Re: Proyecto Arduino Mega 2560 como controladora industrial on: October 19, 2012, 08:01:41 am
Bueno, seguimos avanzando.
Como el proyecto no tendrá puerto USB, lo programaremos por ICSP. Pero: Es tan difícil!

Publico un problema que he publicado en otros foros, pero pongo aquí para dar continuidad y tenerlo todo centralizado:

Problema con AVRISP mkii con Snow Leopard.

Tengo un mac con el Arduino IDE 1.01, y quiero subir los sketchs y bootloaders a través de un AVRISP mkii que me acabo de comprar en RS. La placa en cuestión es un UNO R3 y un Mega2560 R3.
El tema es que selecciono la placa en el IDE, el programador, conecto el AVRISP al ICSP del arduino con el cable rojo mirando al puntito del puerto, conecto la alimentación al arduino, el AVR se pone con luz verde, le doy a "subir usando programador" se pone otra luz verde en el AVR, y acto seguido:

avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: SCK fail
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

Y se pone a parpadear en rojo una luz del AVR.


fff estoy atascadísimo! Es que acaso es taaaan complicado?
40  International / Español / Re: vinciDuino - un Arduino Leonardo hecho por gente del foro on: October 19, 2012, 07:58:57 am
No se si tengo mucho morro, pero el caso es que tengo el mismo problema con el AVRISP mkII en mac Snow Leopard, y como he visto que comentabais el tema, quizá alguien haya tenido esta experiencia y sepa resolverlo.

Tengo un mac con el Arduino IDE 1.01, y quiero subir los sketchs y bootloaders a través de un AVRISP mkii que me acabo de comprar en RS. La placa en cuestión es un UNO R3 y un Mega2560 R3.
El tema es que selecciono la placa en el IDE, el programador, conecto el AVRISP al ICSP del arduino con el cable rojo mirando al puntito del puerto, conecto la alimentación al arduino, el AVR se pone con luz verde, le doy a "subir usando programador" se pone otra luz verde en el AVR, y acto seguido:

avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: SCK fail
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

Y se pone a parpadear en rojo una luz del AVR.


fff estoy atascadísimo! Es que acaso es taaaan complicado?
41  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: October 19, 2012, 04:18:53 am
What about running the 1284p at 20Mhz?

0.39% error in millis...
http://arduino.cc/forum/index.php?topic=70475.0

I believe micros is way off.


Interesting, so I can run the processor at 24 Mhz without problems on the software side (I don't have it clear enought what will happen on the hardware). With an improvement in speed of 33%.
I must point that I'm doing that for learning, so don't try to found a "reason".
42  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: October 19, 2012, 03:00:21 am
I've received today my AVRISP MkII, so I can finally program the microcontrollers in a professional way. Unfortunately I have no luck.
When I try to upload a sketch using 1.01 IDE with the option "Upload using programmer", with the correct board an programmer selected, I get the errror:

avrdude: stk500v2_command(): Command failedavrdude: stk500v2_programm_enable(): bad AVRISPmkII connection status: SCK fail
avrdude: initialization failed, rc=1
              Double check connection and try again, or use -F to override this check

So I thought I've made something wrong on the connections. Then I tested this in an official Arduino Uno and Mega2560 boards, with exactly the same result.

I do the following:
Connect the AVR to my computer. Red light lights.
Connect the Arduino to the USB, it powers up. And the red light of the AVR turns green.
Upload using programmer: another green light of the AVR lights on, then goes off and red light of the AVR starts to blink.


Jesus! Is that difficult to program the Atmel micro's???
43  International / Hardware / Re: Añadir I/O a arduino on: October 19, 2012, 02:14:30 am
Gracias manumoli.

He estado mirando las pilas de litio de 5Vdc para la FA en RS, y las que he encontrado son muy caras. Sabes donde puedo encontrar alguna para PCB?
OJO: Tiene que tener potencia suficiente para alimentar a todos los IC de 5Vdc, calculo unos 10 o 15, que supongo no es problema pues no consumen mucho y los transistores van conectados ya a 24Vdc.
44  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: October 19, 2012, 02:05:04 am
What about running the 1284p at 20Mhz? As far as I know if you change the value in the boards.txt the millis should work fine.
Can I have any other problems?
45  Using Arduino / Microcontrollers / Re: ATmega1284P: End to End using 1.0 IDE on: October 18, 2012, 11:51:54 am
Well well, problem solved. I used the connection diagram of wiring.co.org and I was able to burn the bootloader perfectly. Using an Arduino Uno as ICSP.
However I can not upload any skecht, obviously because the 1284p doesn't have USB!

If I buy the AVR ISP MkII I think this will be solved. But: Do I have to change something in the boards.txt in order to program from the IDE directly with the MKII, right?

Not with the current version of the IDE, you just have to have the proper board selected and proper programmer selected from the Tools menu, and then use the IDE's File menu option of 'upload using programmer'.

Lefty

GREAT!!!!
Pages: 1 2 [3] 4 5