La livraison gratuite de plus de 1000DH pour les particuliers
ATMEGA328P-PU
50.00 د.م.
L’ATMEGA328-PU est un microcontrôleur 8 bits CMOS basse puissance basé sur l’architecture RISC optimisée AVR.
52 en stock
TUTORIAL: PROGRAMMING ATMEGA328P-PU MICROCONTROLLER WITH ARDUINO IDE
Atmega328p-pu Microcontroller
The Atmega328p-pu microcontroller, like any other microcontroller, can be quite tasking to use for a beginner. They usually require a certain set of tools, including a programmer (hardware), and a development platform (e.g Atmel Studio) for writing code. These development platforms, unlike the Arduino IDE usually require high knowledge of C or other programming languages, without the shortcuts and simplified functions which the Arduino provides.
To remove this difficulty, the microcontroller is flashed with the Arduino bootloader, which makes it ready for programming using the simpler and easy to use Arduino IDE.
To program the microcontroller using the Arduino IDE, the microcontroller must be connected via some sort of hardware to the computer. Using an Arduino Uno board
USING AN ARDUINO BOARD
This approach involves the use of an Arduino board in either of two similar ways;
- By replacing the microcontroller on the Arduino Uno with the one to be programmed
- By using any of the Arduino boards as an In-system programmer.
The first mode is the easiest way to upload code to the microcontroller, as it involves just replacing the microcontroller on the Uno, with the one to be programmed. However, this may not be the best when prototyping as the move of the chip from the Arduino to the project, back and forth, could lead to the pins of the microcontroller being damaged. Another downside to this is that it only works with the Arduino Uno as all other Arduino boards, use SMD type of microcontrollers which makes replacement impractical and development, expensive.
So no schematic for this, just swap the microcontroller and hit upload.
The second method involves the use of the Arduino Uno as an In-system programmer.
Required Components
To use this approach, you will need the following components;
- Arduino Uno
- Breadboard
- 16MHz crystal oscillator
- 22pf capacitors x2
- Jumper Wires
- 10k resistor
- 100 ohms resistor
- LED
Schematics
Connect the components as shown in the schematics below. Plus d’informations visite notre page Facebook.
While using this approach, it is important to remove the microcontroller of the Arduino board to prevent interference.
Upload Code
Code upload process is the same as already described. Type the code to be uploaded or select an example -> select the board type (Duemilanove or Nano W/atmeg328), select the correct port and click upload. The code will be uploaded to the microcontroller. Plus d’informations visite: MEGMa
Avis
Il n’y a pas encore d’avis.