Microcontroller Selection - Page 1
Forum section: electronics / general

author: robertcarell
author_rank: Newbie
timestamp: August 12, 2021, 09:46:32 pm
content: Hello everyone,I am a c# developer and have also worked on Arduino.I have an IoT project, where I need to control pumps through a website, so I have to use some WiFi module in my project.I have searched online and learnt about Raspberry Pi(RPi4 is the latest version) and then there's Arduino YUN, I have also read about ESP8266(which I liked the most so far, as its cheap), I have also checked few STM32 and Beaglebone modules.So, now I am confused and need help from experts, which modules should I select for this project?Thanks.

author: tmadness
author_rank: Regular Contributor
timestamp: August 12, 2021, 10:32:14 pm
content: Arduino YUN! I have not heard that one in a while. stay away from it.if this is a oneoff the rasberry pi has will get you fastest to where you want to go. But if its goint into production stay away, there are serious volume availability issues, even the compute module. maybe what you need is nothing more than the rasberry pi zero/ pi 3Same with the beaglebone it runs linux, it will run whatever webserver platform you want. But the beaglebone has tings that you may not need like extensive GPIO and PRUs. The beagle bone will be better to make a commercial system with as you can build your own board with the TI sitara IC (you cant do this with the rasberry pi).If you want a low cost option go for the ESP 32 not the esp 8266. The esp 32 is more powerful and has 2 processor cores if you need it. But the esp/microcontroller rout will require more development effort.

author: fchk
author_rank: Frequent Contributor
timestamp: August 16, 2021, 08:40:33 am
content: Quote from: robertcarell on August 12, 2021, 09:46:32 pmIs this a commercial project? If yes you have to deal with ETSI regulations, CE etc.Is this a one-off project? Do you need long term supply?Is low-power or battery operation a concern? If yes, then WiFi is the wrong standard, and you need to look for 802.15.4 based modules.fchk

author: rstofer
author_rank: Super Contributor
timestamp: August 16, 2021, 03:18:39 pm
content: Considering the fact that Linux is fully featured in terms of network and Apache is a great web server, this is the way I would go.Even a brief Google search will turn up this:https://www.e-tinkers.com/2018/04/how-to-control-raspberry-pi-gpio-via-http-web-server/Depending on what kind of equipment you want at the edge, the Pi 400 is also a possibility. Add a small display and you have a fully functional desktop system as well as a control system. Then you can play with the web server locally without worrying about WiFi. Or, you can do all of the development work on the 400 and port the final setup to a Pi 4.ETAThe NodeRED approach mentioned in the link above seems interesting but I have never used it.There are many other threads around includinghttps://opensource.com/article/17/3/operate-relays-control-gpio-pins-raspberry-pi

author: Fred27
author_rank: Unknown
timestamp: August 17, 2021, 08:53:30 am
content: I'd suggest the Raspberry Pi. With .NET Core being pretty good cross-platform now you can even run the sort of C# stuff you'd be familiar with - ASP.NET Core for the web server, etc. The BeagleBone would be fine too, but there will be far more community support for the Pi.

author: Lindley
author_rank: Regular Contributor
timestamp: August 18, 2021, 11:05:14 am
content: As you are familiar with the Arduino, as said, the ESP32 would seem a natural choice with it running direct from the Arduino IDE with C++, its earlier brother the ESP8266 is probably the most used IOT chip.There are plenty of good free Wifi code tutorials on this site -https://randomnerdtutorials.com/

author: dferyance
author_rank: Regular Contributor
timestamp: August 18, 2021, 02:12:22 pm
content: I think you need to share more information regarding your project. Control pumps you say? Are you using a PLC, or are you designing your own PLC? Do you have to support modbus or some other protocol? Are you designing a product or just trying to fill a specific need? Must you go wireless, could you have ethernet? Do you need a cell modem?Any time you deal with internet connectivity you need a plan for what if you get hacked or installing security patches. When it comes to security a simpler solution is less likely to have flaws to be exploited.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: September 02, 2021, 11:39:48 pm
content: I don't like the raspi's much because they sacrifice too much openness with the broadloom chips.There are plenty of other companies who make pretty similar boards.The boards from Hardkernel seem to be pretty widely available.I particularly like Olimex, because of their friendliness towards Open Source stuff. You can download the complete KiCad projects for (the later versions and eagle for older) their boards from github. They also sell separate processors and other parts for if you want to roll your own board. But beware, A board like the OlinuXino A54 is a 6 layer board and making such PCB's in low quantities is not going to be competitive with buying the finished and populated and tested PCB's.There are also consumer devices which can be easily flashed with some alternative Linux image. Some of the TP-Link WiFi extenders or repeaters seem popular for that for example.But for the most part I agree with the others here. Start with some Linux compatible PCB. It gets you an OS with a stable Ethernet stack, web server software and lots of supporting software such as NodeRed, MQTT, lots of "home automation" projects (in various state of capabilities and reliability).