Universal boards for smart home based on the ATmega128 microcontroller (ATmega2561)

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.





ATtiny2313:





Price ATtiny2313
The cost of ATtiny2313

ATmega8:





ATmega8 cost
ATmega8 cost

ATmega128:





ATmega128 price
ATmega128

ATmega2561:





ATmega2561 price
ATmega2561

, ATmega128 8 , , . 5 , ATmega128. 128 , . - , , .





ATmega128 ATmega2561.





Comparison between ATmega128 and ATmega2561
ATmega128 ATmega2561

, SPI , , , , , , ATmega128, ATmega2561, 2 "". , ATmega2561, ATmega128. , ATmega2561. , , smd . , - ( ). 10 . ATmega128, ATmega2561 . , , smd , , .





.

:





Board layout

:





Front side of boards
Back side of boards

:





The front side of the boards after soldering the components
The back side of the boards after soldering the components

ADM488 :





Board with ADM488 module
ADM488
Board with ADM488 module
ADM488

nRF24L01+:





Board with nRF24L01 + module
nRF24L01+
Board with nRF24L01 + module
nRF24L01+

, 2 , ADM488 nRF24L01+, .





. - - .








All Articles