[Solved] How can I send sketches to "Arduino Pro Mini" with Cp2102 on Mac OSX?

Hi. I read a lot of post and a lot of things and none work. I am doing this to see if a good soul can help-me. It will have a lot of information and image.

First let's run this small program in Arduino Uno R3 with program version 1.0.5. I am using Mac OSX Lion with version 10.7.5

void setup() {
  Serial.begin(9600);
  Serial.println("Hello World!");
}

void loop() {
}

I plug the Arduino and configure board to be "Arduino Uno" and choose the correct Serial Port:

If I choose "/dev/tty.usbmodem1a21" or "/dev/cu.usbmodem1a21" than both work and give-me this result:

It was plug and play! Now I want to do the same thing in my Arduino Pro Mini. So I buy this hardware:

Arduino Pro Mini from Deek-Robot. It use the chip ATmega 328p and has other number below "AU 1236"

And a Cp2102 module from Baite

My first Question is: How I know if my Arduino Pro Mini is (5V, 16 MHz) or (3.3V, 8 MHz)? Or it is both: if I plug 3.3V it is 8MHz and if I plug 5V it is 16MHz?

Now I need plug the cables. In both, I have this:
Cp2102 RST3V35VTXDRXDGND
Arduino Pro Mini DTRTX0RXIVCCGNDGND

So I plug:
GND ==> GND
VCC ==> 5V
TXD ==> TX0
RXD ==> RXI

In the kit has one ceramic capacitor with the number 104. I didn't understand the why of this. Is this for reset plug?

Now the problem begin. I plug this hardware in my USB port. Both turn on and I can see the lights. I configure the Board to be "Arduino Pro or Pro Mini (5V, 16MHz) w/ ATmega328".

To choose the serial port, I installed theFTDI Basic Breakout for Mac. Than restart the Mac, plug the Arduino Pro Mini and open the Arduino Program.

Now I can see this option.

But if I try to compile with one of then, I have this message (verbose)

Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P/dev/cu.SLAB_USBtoUART -b57600 -D -Uflash:w:/var/folders/h4/9pw8dj_s25q2ynrrcv2l4r840000gn/T/build7008621206845189938.tmp/hello_world.cpp.hex:i 

avrdude: Version 5.11, compiled on Sep  2 2011 at 18:52:52
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/rodrigozanattasilva/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.SLAB_USBtoUART
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

avrdude done.  Thank you.

So, what is wrong? What I need to do? Any suggestion?

rodrigozanatta:
My first Question is: How I know if my Arduino Pro Mini is (5V, 16 MHz) or (3.3V, 8 MHz)? Or it is both: if I plug 3.3V it is 8MHz and if I plug 5V it is 16MHz?

Look at the crystal. If it says "8" you have an 8 MHz model and can run on 3.3. or 5V. If it says "16" you have a 16 MHz model and should use 5V.

avrdude: ser_recv(): programmer is not responding

Looks like you don't have the Auto Reset signal connected. Hold down the Reset button when you start the upload. When you see the "Binary sketch size:" message, release the Reset button.

johnwasser:
Look at the crystal. If it says "8" you have an 8 MHz model and can run on 3.3. or 5V. If it says "16" you have a 16 MHz model and should use 5V.

Hi Johnwasser. The crystal show a very small "AB" on it. So... This don't help to much. Anyway, I can try by trial and error to find it... But I can't send a small sketch on it..

avrdude: ser_recv(): programmer is not responding

Looks like you don't have the Auto Reset signal connected. Hold down the Reset button when you start the upload. When you see the "Binary sketch size:" message, release the Reset button.

This is a common thing that I read. This auto reset problem. I tried hold down the button but until now none works. What do you suggest to get a better and definitive solution to this?

YESSSSS!!!!!!!!!!

I finally make it works!!!! All the problem was the reset. The connection I did was

Arduino ==> cp2102

GND ==> GND
VCC ==> 5V
TXD ==> TX0
RXD ==> RXI

And...
RST ==> Ceramic Capacitor number 104 ==> DTR

Finally it works...

Congratulations and thanks for posting the solution!

The connection I did was

Arduino ==> cp2102

GND ==> GND
VCC ==> 5V
TXD ==> TX0
RXD ==> RXI

Should it really be connected with tx-tx and rx-rx this way ?

I've tried both ways and get no response.

For me works well with:

Arduino ==> cp210x(in my case cp2104)

GND ==> GND
VCC ==> 5V
TXD ==> RXD
RXD ==> TXD
RST ==> DTR

(between Arduino RST and cp210x i have put a 102 ceramic capacitor)

And of course the driver: CP210x USB to UART Bridge VCP Drivers - Silicon Labs

can you use one of those Pro boards in a plain Uart mode without the cp adapter and how would you connect the Tx and Rx wires then? (to use the board as an adapter itself, between the PC and another TTL device...)