Standalone connected with USB

Hello !

I have a project that I want to connect to the computer with an USB cable (I don't want to programm the standalone chip, but I want it to send serial informations via USB).

So, I have a few questions (and sorry for my bad english, I'm French) :
I searched a bit in some others projects but I didn't found clear answers.

The first question is : Is it possible to load an program on an ATmega328 (not ATmega 328P) on the UNO card, and if possible, can we just take this controler and put it on a PCB ?
The second one is : How can we make the ATmega328 communicate with the computer (and being alimented with it) via an USB cable ? And is it possible to have the same "informations" received (I'm using actually an Arduino Mega and Processing).

Thanks for the answers !

The first question is : Is it possible to load an program on an ATmega328 (not ATmega 328P) on the UNO card, and if possible, can we just take this controler and put it on a PCB ?

Absolutely

The second one is : How can we make the ATmega328 communicate with the computer (and being alimented with it) via an USB cable ? And is it possible to have the same "informations" received (I'm using actually an Arduino Mega and Processing).

I don't, understand will you rephrase this?

The first question is

Yes

The second one is :

Once you have a serial to USB converter you can also program the chip through that. As you want your system to talk to the USB port you need one of these. There are chips to do this, silicon labs do one and FTDI is another. These were used on arduinos before the solution on the Arduino Uno was invented, so you should just revert to that sort of system.

(I don't want to programm the standalone chip, but I want it to send serial informations via USB

Once you can do one you can do them both. You have not choice.

LarryD:
I don't, understand will you rephrase this?

Thx for your quick answer !

I want the ATmega to send serial informations via an USB cable, and I want that this USB cable supply the PCB with energy, is it possible ?

And can Processing get the informations as if it were an arduino card ?

@Grumpy_Mike

Thx, have you an precise chip reference ? :s

Isn't there a possibility of making a card with components or a chip to does the TTL - USB connection ? I have some USB cable to use, and when I see the price of such cables (USB to TTL) it's around the same as an arduino UNO card

a chip to does the TTL - USB connection

That's what is in a FTDI cable.

OR

these were used on arduinos before the solution on the Arduino Uno was invented, so you should just revert to that sort of system.

Just wondering what is the solution that the Arduino Uno uses? Is it the same for the mega?

Thanks!

Just wondering what is the solution that the Arduino Uno uses?

The Uno uses a Atmega16U2 (Atmega8U2 up to version R2) programmed as a USB-to-serial converter.
Earlier Arduinos used the FT232RL chip to do the conversion.
You can also use silicon labs CP2102 chip.

Daniel67fr:
Isn't there a possibility of making a card with components or a chip to does the TTL - USB connection ? I have some USB cable to use, and when I see the price of such cables (USB to TTL) it's around the same as an arduino UNO card

The Arduino board, Already has the converter chip "TTL - USB".
For your comments makes me think that you are a new user of Arduino, I hope to be of assistance with this information, the Arduino is a microcontroller board (specifically one Atmega 328) and a converter chip USB to Serial TTL (can be a FT232RL , ATmega8U2, ATMEGA16U2, depends on the model of the board but all 3 do the same), the microcontroller has a bootloader with which you can reprogram the microcontroller without the need for an external programmer (this is done by the chip USB to Serial TTL converter ), said chip, also used to send data (such as analog values??, strings, etc.) to the computer via the USB port, this data will be sent to the Virtual COM port created on the PC. to send data to the PC using the Arduino Serial commands, which you can see here Serial - Arduino Reference, regarding Processing I can not help you because I do not use that software. greetings!

I found something interresting

just do what (I think) Grumpy Mike suggested in the beginning.. get an external 'FTDI' cable..

(this solves your 'USB' connection to PC as well being able to communicate (convert) data to & from the Arduino to pc)

Here are some cheap ones that I and many others here use:

http://forum.arduino.cc/index.php?topic=101523.msg801670#msg801670

http://forum.arduino.cc/index.php?topic=101523.msg816028#msg816028

http://www.ebay.com/itm/130683943875?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649

the thing about these is that on the bottom, a DTR pad is broken out for us to use.. so no need to auto-reset your board on uploading new code/sketches..

same 'connection' will also allow you to communicate over serial and send data to/from your PC or to processing..