R
R
Ruslan2011-11-06 09:02:50
Arduino
Ruslan, 2011-11-06 09:02:50

Using ATMEGA328 Without Arduino Board

Hello!
Please tell me, is it possible to tear out the microcontroller from the arduino board and connect power and diodes directly to its legs, so that it also works? if possible, how to do it right?

I tried to do what I intended, but it didn't work. I used the PDIP circuit on page 2 of the controller manual (http://atmel.com/dyn/resources/prod_documents/8161S.pdf) connected the negative power supply (4.2V) to pins 8 and 22 (GND); plus power to pin 7 (VCC); minus power to minus the LED; plus LED to pin 28 (PC5/PCINT13). When I turn on the power, the LED does not light up. when I install the controller in arduino, the LED on the arduino itself blinks normally.

tell me please, where to dig? the task is to use a microcontroller without an arduino (if it's not very difficult).
Thank you!

Answer the question

In order to leave comments, you need to log in

8 answer(s)
D
Disasm, 2011-11-06
@Disasm

Firstly, this way the LED can be burned. Secondly - did you connect a quartz resonator?

S
SysCat, 2011-11-06
@SysCat

I advise you to read the site on AVR structure. There is a textbook on AVR not without a well-known electronics engineer and habrauser DI Halt`a . He also published articles in Hacker.

F
FFNull Dev, 2011-11-06
@djmorgan

It will flash only when you connect the quartz and a prerequisite is to short the avcc leg to the power plus! Then everything will work

D
Dmitry Guketlev, 2011-11-06
@Yavanosta

It is possible and necessary. Not difficult.
Pins probably not configured. Each pin on the micro has many functions, you need to choose which ones you want to use by setting the configuration bits (usually ide provides a convenient interface for this). Avr studio for example. Well, or in the datasheet, look at what bits you need to set to enable the pin you want on gpio.
In addition, there are usually leg operation modes (1=+power or 1=ground) that must also be set.
And it is better to connect diodes through a current-limiting resistor. And then you can burn your leg.

Y
yarreg, 2011-11-06
@yarreg

see one chip arduino

R
Ruslan, 2011-11-06
@Razbezhkin

Thank you for your tips! I did not connect a quartz resonator, it's good that you told me, I'll try it in the near future.

R
Ruslan, 2011-11-09
@Razbezhkin

Friends! Once again, thank you for your tips. Today I bought a quartz resonator and connected it to pins 9 and 10 (polarity, apparently, does not matter) and everything worked. Thank you!

I
irtos, 2013-12-12
@irtos

mega can work from an internal generator, although it is not stable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question