Go Down

Topic: How can I communicate Serially with an Atmega328 (Read 722 times) previous topic - next topic

JoshD


What If I removed the Atmega328 from the UNO board then connected the TX , RX pins from the Atmega328 to the UNO board , will that work ?


This is what I've been doing and it works great.  The only down side is you'll be removing and replacing the '328 a lot on the uno as you switch between programming and debugging.  If you're going to be doing this frequently, it may be worth looking into getting a standalone programmer.

retrolefty



What If I removed the Atmega328 from the UNO board then connected the TX , RX pins from the Atmega328 to the UNO board , will that work ?


This is what I've been doing and it works great.  The only down side is you'll be removing and replacing the '328 a lot on the uno as you switch between programming and debugging.  If you're going to be doing this frequently, it may be worth looking into getting a standalone programmer.


That will work but there is an easier way. On the UNO board just jumper the shield reset pin to a shield ground pin, that will force all the UNO's 328P I/O pins input to high impedance input mode so will have no effect on anything wired to pins 0 and 1 to utilize the USB serial function.

Lefty

strykeroz


That will work but there is an easier way. On the UNO board just jumper the shield reset pin to a shield ground pin, that will force all the UNO's 328P I/O pins input to high impedance input mode so will have no effect on anything wired to pins 0 and 1 to utilize the USB serial function.
Lefty that is tremendously clever.  Thanks so much for that tip.  I'll have to remember it the next time I'm reaching for a chip puller :)

Geoff
"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

Erni

#8
Apr 07, 2013, 02:02 pm Last Edit: Apr 07, 2013, 02:06 pm by Erni Reason: 1
Even easyer than Lefty's suggestion:

Use TinyISP instead of ArduinoISP.
With that you don't need any swapping around wires, just leave everything as it is when programming, and open the serial monitor as you are used to.

TinyISP:

https://github.com/Coding-Badly/TinyISP/zipball/master

TinyKnockBang library
https://github.com/Coding-Badly/TinyDebugKnockBang/zipball/master

Go Up