Now, it’s time to choose a basis for our development. So, we need:
1) a decent number of inputs and outputs. With support for i2c (for a number of sensors), ADC (for analog sensors), PWM (just in case for motors). I.e., as simple as possible to support typical home scenarios;
2) ethernet and/or wifi to communicate to the outside world
3) low cost. we want to overcome the system)
4) reliability, worthy of home appliance
4) some ready-made developments from the community or the manufacturer, so as not to lose time on the invention of the wheel (stop, and what am I doing here at all! Oh, shii ...)
5) and in general so that the development is not as complex as construction of the Large Hadron Collider.
Our candidates are: stm32, atmega2560, esp8266, esp32, cc3200, teensy, rtl8710, raspberry pi. That seems to be all. Who wants details on them, google - the Internet is inundated with info.
I will briefly describe them:
stm32 - known, reliable, relatively expensive, there are no network interfaces in the basic harness
atmega8260 is a well-known, seemingly reliable, mother of arduino handicrafts, but constant torment in search of extra kilobytes for the stack can drive a developer into boredom (maybe I’m just awkward). there are no network interfaces in the basic harness
esp8266 - already known handicraft, has a reputation for being unstable (about the reasons later), super-cheap, friendly to developers, there is wifi out of the box
esp32 - according to the characteristics compared with the previous one, as T1000 versus T800. But at the same time, it still does not seek to kill someone. Slightly more expensive, more reliable (again about this later), friendly, wifi out of the box
cc3200 - in contrast to the previous two - from a solid manufacturer, therefore, proven and reliable. full of demos from the manufacturer, but not very popular among mommy’s home-makers, like me. Not cheap, but my local pusher says he knows where to get cheaper if I’m interested. Wifi out of the box.
teensy - dick knows what that is. I just found it in Google, I have not heard anything before and I don’t see any big advantages.
rtl8710 - some realtek response to esp's growing popularity. Cheap, more reliable reputation, out of the box wifi, but they forgot about the developers. Not that much Info, the community is scanty, I haven’t met any practical solutions, but there are a couple of chips lying around at home. If I had not found a chestnut, I would have planted them.
raspberry pi - what the hell is Donald Trump doing here? - the imaginary reader could ask. Well, that happens, yes. There are examples when people just take raspberries and connect sensors and relays directly to it. And I do not even condemn them - we are all sinners, and sometimes it is convenient and practical. But for me, it’s rather an overkill in terms of capacity and there’s no official support for any real-time OS, like freertos on it, but we are serious people and are engaged in home automation, so without realtime anytime soon.
A shrewd reader could already guess who is the winner in this unequal fight, but the street sun whispers to me to take a break