Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Re: atmega8 slow bootloader? on: April 26, 2011, 08:28:43 am
Probably the wrong version of the bootloader - for instance the Arduino Mini 4 has an 8 second wait for reset-button press in its bootloader since it doesn't have auto-reset circuit.

You were right! I took this "slow" bootloader from arduino-021 distribution. It seems to have intentional delay here it is if I am not mistaken:

char getch(void)
  /* m8 */
uint32_t count = 0;
  while(!(inb(UCSRA) & _BV(RXC))) {
/* HACKME:: here is a good place to count times*/
if (count > MAX_TIME_COUNT)
  return (inb(UDR));

I've found another bootloader on the net, here it is if anybody is in need

Thanks for the help!
2  Using Arduino / Microcontrollers / [SOLVED] atmega8 slow bootloader? on: April 25, 2011, 12:30:48 pm
I burned bootloader to atmega8 with ponyprog2000, then uploaded testing sketch with usb-ttl, it works fine but the bootloader seems to be VERY slow, it takes about 10 seconds. On arduino nano (atmega168) and arduino mega (atmega2560) it takes only 2 seconds.
I burned bootloader from hardware\arduino\bootloaders\atmega8\ATmegaBOOT.hex.
Atmega8 in this circuit is working from external ceramic 16mhz resonator (ZTT 16.0MX). Is it normal that boot process takes so long or I'm doing smth wrong? I've googled atmega8 slow boot and have found nothing, pls help.
3  Using Arduino / Microcontrollers / Re: burn bootloader to atmega8a-pu with arduino mega 2560 or arduino nano atmega168 on: April 25, 2011, 12:19:44 pm
I managed to burn bootloader with parallel programmer and ponyprog, the case is closed )
4  Using Arduino / Microcontrollers / burn bootloader to atmega8a-pu with arduino mega 2560 or arduino nano atmega168 on: April 22, 2011, 12:13:25 pm
Sorry if this is a lame question but how can I burn bootloader to atmega8a-pu with an arduino board I have?
I have to boards at my disposal Arduino Nano atmega168 and Arduino Mega2560.
I haven't found wiring at playground so I've decided to post my question here.
Atmega8 will be using external oscilator 16mhz, 30 pf caps (ZTT 16.0MX)
Sorry for if it's a lame question again!
5  Using Arduino / Interfacing w/ Software on the Computer / Re: Processing Controlling Multiple Serials on: March 23, 2011, 11:04:07 pm
I own arduino nano, which has only one serial port so I use NewSoftSerial library to create additional port, you can get the library here
you could create additional port with newsoftserial and then send data to it right after you've send data to "primary" port
6  Using Arduino / Interfacing w/ Software on the Computer / Re: softserial to communicate with computer on: March 23, 2011, 06:05:30 am
Serial output is typically +/-12V. Those voltages will toast your Arduino in nothing flat.

A google search for "NetMos Nm9835CV" turns up all kinds of driver software. This software will not make the serial port output voltages that you can input to the Arduino. You need hardware for that - a MAX232 chip.

The USB ports output the proper voltage already.

Thank you very much, it's all clear now. I've measured output on that pci card and indeed there is 12 v there. I'll buy usb-serial converter so not to mess around with MAX232 as I'm a complete noob in electronics. Thanks!
7  Using Arduino / Interfacing w/ Software on the Computer / Re: softserial to communicate with computer on: March 23, 2011, 05:20:10 am
This will require chopping the end off a USB cable and identifying which of the 4 wires is TX and which is RX and which is ground, and connecting them to the appropriate pins (3, 4, and Gnd).
oh my, I forgot to mention, I was going to use pci serial adapter (based on NetMos Nm9835CV chip if this is important). I've soldered 9-pin wire to rs232 male connector and was going to identify which is RX TX and GND (I've found pinout, just to check it). Can I do the trick with this card or do I strictly need to use USB-Serial adapter? Thanks!
8  Using Arduino / Interfacing w/ Software on the Computer / softserial to communicate with computer on: March 23, 2011, 04:39:11 am
Hello! I'm a newbie in arduino so please excuse me for the silly question if it is

I have arduino nano and need two serial ports to communicate with computer, I have one program "sitting" on one port
and need another program to "sit" on another. The first program is proprietary and I don't have it's source code so I could add code from second program so they could share one port... Long story short - I need another serial port to communicate with computer on nano v4.

I've found NewSoftSerial library and going to do as follows:
1) in arduino code add serial like this: NewSoftSerial mySerial(4,3);
2) connect computer's TX -> D4 on arduino, RX -> D3

then start working with mySerial. Can I go like this? Or do I need to add some RC components? Sorry for the stupid question if it is, thanks!
Pages: [1]