Post #3374522
2026-06-22 02:26 UTC
After a long hiatus I've decided to get back into doing shit with electronics. I've decided on learning to program on an atmega328. After much fucking around with a cheap-ass chinese usbasp I figured out that the chip I had was preloaded with the Arduino bootloader and needed an external crystal to run. I found out that a 14Mhz crystal works ok if you don't have a 16Mhz.
On top of that, the cheap chinese usbasp had old, shitty firmware that kept giving me annoying warnings. So I ended up having to flash the firmware to fix that. Good thing I bought two of those things. After all that I finally got the fucking thing to blink the LED on its internal clock after figuring out how to reset the internal "fuses" to factory defaults. Yay me.
Anyways, I'd like to try something simple for writing the code, anyone have any recommendations? @deprecated_ii@poa.st ?
Replies (1)
-
@deprecated_ii@poa.st 2026-06-22 15:57
@john_rando@poa.st like the IDE and stuff? my general approach is to use the vendor IDE (MPLAB X in this case) to set up the project so the basic configuration is done, then use sublime text to write the program code and flash with whatever command line tool is available honestly I recommend switching to ESP32 (or STM32) instead of spending time on AVR though