3
\$\begingroup\$

I have been working on a little project where my Arduino Uno sends the IMU sensor's data to the PC via serial (Printing the data on serial monitor. I ma planning the transfer the programmed Arduino chip (Atmega) from the prototype platform to a PCB. I have read that I just need a crystal and a couple of capacitor to run the already programmed Arduino chip on a PCB. And I could use the prototype platform to program the chip and transfer back o the PCB.

My question here, can the Arduino on the PCB still perform the serial communication with the PC? Does the PCB need extra components such as a USB-to-Serial converter in order to perform the serial communication? Please explain.

\$\endgroup\$
4
\$\begingroup\$

Transferring to PCB

See How do I create a permanent application from something prototyped with Arduino? for general guidance. Doesn't cover serial comms specifically.

Serial comms

For serial comms you can connect a suitable USB-to-serial cable such as an FTDI cable. You'd connect it to header pins on your PCB that you linked to the appropriate pins on the ATmega.

Or you can add the USB interface to your PCB design using the same FTDI FT232RL chip and support components used on the older Arduinos. See page 27 of the data sheet. I believe you can omit the level convertor (as you are connecting the ATmega IC not a +/- 12V serial device). See also SparkFun's breakout as an example.

See also "ATmega328 hardcore"

\$\endgroup\$
  • \$\begingroup\$ Dear RedGrittyBrick, thank you very much for the a detailed explanation. \$\endgroup\$ – Robert Jun 29 '13 at 5:01
4
\$\begingroup\$

If you're using the Arduino Uno, or any of the older versions, that still used the Atmega328 chip in a DIP package, you can do this.

You will need 1 of 2 things for serial communications with your computer.

If your computer has a hardware serial port built in, you will need to use a TTL-to-RS232 level converter chip.

If your computer does not have a hardware serial port, you will need a USB-to-serial chip.

\$\endgroup\$
  • \$\begingroup\$ Dear Jwygralak67, I ma using a laptop with no hardware serial port, only USB ports. Should I use the following device(cytron.com.my/…) to connect to the computer? \$\endgroup\$ – Robert Jun 28 '13 at 14:04
  • \$\begingroup\$ That looks like it should work. \$\endgroup\$ – jwygralak67 Jun 28 '13 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.