Hi all
I’m still an Arduino / ATMega newbie. Forgive me if this question has been asked here already, but I’ve googled it quite extensively and could not find a clear answer (not for me at least). I just have a question about burning the Arduino bootloader onto an ATMega328P.
I want program an ATMega328P with the Arduino IDE, and use it in a 3.3V circuit, since some of the other modules only work with 3.3V. (I prefer not to use 5V and 3.3V with a level-shifter, in case I mess up some wiring and fry something.) So obviously I need to burn the Arduino bootloader for 3.3V / 8 MHz. However I only have a Nano-clone that works with 5V, that I can use as an ISP.
So my question is simply, if I can burn the bootloader as follows:
-
Set up the ATMega328P on a breadboard with an 8 MHz resonator (8 MHz crystal oscillators not available here), and power it with 5V from the Nano.
-
Burn the Arduino bootloader for 3.3V / 8 MHz onto the ATMega328P with the Arduino IDE, using the Nano as an ISP (using 5V for the data signals of course).
This is just to burn the bootloader initially. After that I will use the ATMega328P in a 3.3V circuit with a 3.3V USB-serial converter for uploading and running sketches.
I would assume that this should work, since I assume that the voltages should not matter just for burning the bootloader. However I’m also just a bit confused by the references to the different voltages, and so just want to confirm this as well.