Would it be possible to debug a standalone Arduino via the RX, TX and RST pins connected to a PC via and Arduino UNO board.
Point is i need to see "serial.print ()" data on the pc monitor while connected a Stand alone Arduino.
Thanks in advance.
Would it be possible to debug a standalone Arduino via the RX, TX and RST pins connected to a PC via and Arduino UNO board.
Point is i need to see "serial.print ()" data on the pc monitor while connected a Stand alone Arduino.
Thanks in advance.
(deleted)
and forward the data.
Sorry did not get you there. Forward as in....... ? I've enabled the "Serial.begin" in the sketch, is there anything else i have to do to get the data on the PC while connected to Standalone ?
I'm not sure what you mean by "standalone" - a controller without an USB port?
For a serial connection an "USB to serial TTL" adapter can be used. Eventually the programmer can be used for that purpose (dunno).
I would recommend a USB-TTL cable (aka an FTDI cable) as it makes serial communication with an Atmel chip that has no USB output very easy.
As a stop-gap an Arduino Uno with the Atmega328 removed (very carefully) can be used as a USB-ttl device. Just connect the standalone device's Rx to Rx on the Uno board and Tx to Tx and GND to GND. Note that it is Rx to Rx BECAUSE there is no Atmega 328 on the Uno board.
...R
As a stop-gap an Arduino Uno with the Atmega328 removed (very carefully) can be used as a USB-ttl device. Just connect the standalone device's Rx to Rx on the Uno board and Tx to Tx and GND to GND. Note that it is Rx to Rx BECAUSE there is no Atmega 328 on the Uno board.
That is how i have it now on my schematic. Just need to know when connected to Arduino (without the on board ATmega328 obviously) would the serial data be displayed on the Serial monitor of the Arduino ?
anishkgt:
Just need to know when connected to Arduino (without the on board ATmega328 obviously) would the serial data be displayed on the Serial monitor of the Arduino ?
It should be. The Serial Monitor will not know which Atmega chip it is talking to.
This sounds to me like something that would have answered itself much more quickly if had you just tried it. The Arduino system is great for learning-by-doing.
...R
Yea Your right ! learing-by-doing is a one way and the other asking before messing up....lol Had a doubt so thought i'd clear it away before etching a board.
Thanks, Problem solved, i guess. Can only confirm once i test it.
As a stop-gap an Arduino Uno with the Atmega328 removed (very carefully) can be used as a USB-ttl device.
Don't even need to remove it - just connect Reset to Gnd. Need to press Reset on the standalone device to kick off it's bootloader (assuming it has one).
CrossRoads:
Don't even need to remove it - just connect Reset to Gnd. Need to press Reset on the standalone device to kick off it's bootloader (assuming it has one).
hmmm.....Interesting. Shall test that too
Thanks guys