I recently wrote the first post on how I started converting conventional LED lights to dimmable ones. Many people did not like that I make my dimmer based on the ATmega128 microcontroller . Therefore, I want to explain why this particular microcontroller is used, and why nowadays, when developing something FOR YOURSELF, you should not strive to do everything on the weakest microcontroller that can only extend the functionality of the device you are developing.
In order not to develop a board from scratch for each smart home device, I decided to make a universal board based on the ATmega128 microcontroller , to which more specialized boards for specific devices will already be connected.
Why was this particular microcontroller chosen? It's simple, because the ATmega128 is only 20 cents more expensive than the ATtiny2313 . And the ATtiny2313 costs the same as the ATmega8 . That is already about ATtiny2313 can be forgotten like a bad dream.
Here are a couple of pictures with prices on AliExpress (which is where I buy parts) and move on.
, ATmega128 8 , , . 5 , ATmega128. 128 , . - , , .
, SPI , , , , , , ATmega128, ATmega2561, 2 "". , ATmega2561, ATmega128. , ATmega2561. , , smd . , - ( ). 10 . ATmega128, ATmega2561 . , , smd , , .
, 2 , ADM488 nRF24L01+, .
. - - .