Raspberry Pi Tutorial 36 - ATMEGA328P AVR (Arduino) Programming via GPIO (SPI)

preview_player
Показать описание
How to program an Atmel AVR ATMEGA328P chip with Arduino bootloader preloaded via the Raspberry Pi's GPIO header! In this tutorial we walk through programming the ATMEGA328P to blink a LED through the SPI bus a the Raspberry Pi.

Рекомендации по теме
Комментарии
Автор

your are one of the few people that make actually understandable, compact and correct video's. I salute you

joppekoers
Автор

Thank you for taking the time to do this video. It helped me tremendously. Just a heads up, things have changed in 5 years and one of my stumbling blocks was 'gpio' is no longer an option when setting the Programmer field. The settings (of importance) for me in 2021 are: Programmer: linuxspi Port: /dev/spi0.0 Device: atmega328p. Hopefully, this might help someone that may be struggling. Thanks again!!

rayfelch
Автор

Just found your channel exactly i was looking for, keep on doing the quality content and thanks.

zltn_brkl
Автор

Worked for me, too. BTW, you don't need to connect AVCC (Pin 20) and GND (Pin 22). The normal VCC (Pin 7) and GND (Pin 8) is sufficient for programming.

holgerschurig
Автор

Awesome video Alexander - this was just what I was looking for.

kevinmcaleer
Автор

great video. Thanks for your help understanding something so core to Raspberry-Arduino integration.

mandelbro
Автор

Hey, somehow my system tells me that he can't find the chip. I put the cables like you did in the video but it isn't working still... Can you please help me?

Bop
Автор

Great tutorial, thank you, sir! I'm happy that this can be done so easily from a Pi!

Spectrogram
Автор

What is the best Arduino to start learning on?

InventionTherapy
Автор

may i know why didn't u use 22pf capacitors on the 16mhz crystal?
whats the difference if i use them? ty

saifulkoh
Автор

Great tutorial !! I too would like to know why you didn't use 22pf caps ??

georgekot
Автор

Great job but i' d like to ask u something, why do u need an external crystal, i think that Atmega has internal crystal that it can support the chip.

valasidisnikolaos
Автор

I am probably late, but just found the video. Checked my connections, but get the following error after the last command: gpio/direction: No such file or directory. Could you please help, what could be the reason? Thanks!!!

chem-AI
Автор

Great video! This question has been asked but I don’t see any responses. Maybe we’re all missing something :-)
You mentioned in a reply below to Ulf Holt that you do not need the boot loader. I read that by loading the boot loader it also sets several fuses that are required. Can you say more about this?

legosteveb
Автор

That is awesome! Could you please give a link to learn more about all parameters you typed? Is there some user manual which can guide through all functionality to have deal with AVRs?

Геннадій-цэ
Автор

I am actually trying to program a Arduino pro mini 3.3V 8Mhz having the Atmega328p, using the same method as u expalined.
When I run the command 'avrdude -p m328p -c gpio', it shows me this error :
'avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.'
I have checked the connections, still the error persists. Can you please help me.

KunalGupta-cqcq
Автор

As to my previous question. I have an ATMEGA328p-au blank chip.
will this method burn the arduino bootloader onto the chip or is that a separate process? I don't know if your chip has the bootloader on already. please advise?

crazydiamonduk
Автор

Thanks. I ordered an arduino nano, but they sent it without bootloader, but with this video I could burn the bootloader

balintmecsei
Автор

Thank you very much! I could unbrick my arduino leonardo with this method. Thanks again!

brunoribeiro
Автор

I did the exact same thing, except I don't have Oscillator. It doesn't work. Can someone help me? All the commands run without error, and the program is uploaded to the ATmega chip successfully, but the LED doesn't light up.

DarrenChang