Arduino or Raspberry Pi? Pros and cons in IoT use.

Some people consider the Arduino platform to be the best for beginners, however, the novice will handle both Arduino and Raspberry Pi board. The choice between platforms should mainly depend on the characteristics of the project.

The origin of both platfoms

The founder of Arduino is Massimo Banzi, a lecturer at the now-defunct Italian Interaction Design Institute Ivrea, who developed a microcontroller in cooperation with students from this university. The Arduino programming language, based on the Wiring environment and basically on the C/C++ language, was designed by Hernando Barragán, a student of Banzi. The site prepared by Hernando Barragán presents exactly all the work on the project, which clearly shows that this success has more than one father.

In the case of Rasberry Pi, the project also had its source at the university. More specifically, at the University of Cambridge. Three lecturers: Jack Lang, Alan Mycroft and Robert Mullins came up with the idea of ​​developing a simple and above all cheap computer for learning programming. The first prototypes were created between 2006 and 2008. In the next step, seeing the potential of their solution, the men established cooperation with Pete Lamas, an integrated circuit designer at BroadCom, and David Braben, one of the developers of the Elite game, and together they founded the Raspberry Pi Foundation.

As a result, both platforms, which were originally intended to be used for learning by students, due to their low price and simplicity of use, became extremely popular among amateur users of consumer electronics and control, and appeared in mass sales.

So what should you choose – Arduino or Raspberry Pi?

The answer is basically simple – Arduino is ideal for simpler projects. Raspberry Pi will be useful for solutions that require more computing power. Arduino has only 2 kilobytes of RAM. Raspberry Pi has a RAM size of 1 GB. So Arduino is a simple microcontroller, meanwhile Raspberry is actually a small computer. Not without significance is the fact that the Arduino IDE is easier to use than Linux. So if you need a simple control of watering your garden, Arduino will work perfectly. Several sensors and a few lines of code will do the trick. For Raspberry Pi, to achieve the same effect, you will first need to install the system and the necessary libraries. There will be a lot more work and the effect will be the same – watering the garden at a specific time.

So choose Arduino when you need to use a simple solution for frequently repeated activities, e.g. controlling the watering of the garden, switching on and off the external lighting at a specific time, opening the gate, etc. However, because Raspberry can run many tasks at the same time, it is a computer, work simultaneously as a home printer server and operate the monitoring system. Home weather stations are popular and Raspberry will be perfect for this application because of the need to collect information from several sensors (temperature, wind strength, humidity). Raspberry Pi will therefore be a good choice for anyone interested in IoT, i.e. the Internet of Things at home. Examples of ready projects can be found here: https://modberry.techbase.eu/

Why not both?

Nothing prevents you from starting with Arduino and continuing with Raspberry Pi. By using Arduino or ESP32-based solutions you will learn the basics and you will get the effect quickly and relatively easily. But only Rasbperry Pi will allow you to make much more difficult projects. And both platforms can be combined with each other. Arduino/ESP32 can be used to read information from sensors and control e.g. motors (for example a garage door). Raspberry Pi will control all devices and send the collected data, e.g. to a mobile phone. You can do more together.

Power Management HAT with RTC for Raspberry Pi

If you’re looking for a useful tool for long-lasting Raspberry Pi, such as longer battery life or automatic power on / off, this HAT power management is the perfect choice.

This HAT can significantly increase battery life by automatically starting the device for a certain time and automatically switching it off at another time. It can be configured to monitor the Raspberry Pi voltage / current status in real time and turn off the Pi according to the operating status. In addition, the kit includes a convenient power switch for easy on / off (soft shutdown of Pi by software), preventing data loss due to power disconnection.

Raspberry Pi Power Management HAT specification

  • MCU – Microchip ATmega328P-AU MCU
  • Storage – CAT24C32 EEPROM
  • USB – 1x micro USB port for serial communication via CP2102 UART to TTL chip
  • RPi Interface – 40-pin Raspberry Pi GPIO header
  • Misc
    • NXP PCF8523 RTC & calendar chip + CR1220 battery holder
    • DEBUG switch (9) to either:
      1. Power directly Raspberry Pi board
      2. Let the “Arduino” MCU manage the power supply
    • UART selection (15)
      • A – Access Arduino via USB to UART
      • B – Control the Raspberry Pi by Arduino
      • C – Access Raspberry Pi via USB to UART
    • Power/User and Reset buttons
    • Status and Power LEDs
  • Power Supply
    • PH2.0 connector for 7~28V regulated power supply or lithium battery
    • Monolithic Power MP1584 switching regulator
    • Protection circuits such as reverse-polarity, overcurrent, etc…
    • Voltage/current monitoring circuits
  • Dimensions – 65 x 56.5 mm (Raspberry Pi HAT)

Source: https://www.cnx-software.com/2019/12/18/raspberry-pi-power-management-hat-adds-rtc-battery-management-software-on-off/

Industrial use of Raspberry Pi Compute Module 3+

With Compute Module 3+ options from Raspberry Pi, TECHBASE upgraded their ModBerry 500/9500 industrial computers. From now on the ModBerry 500/9500 can be supported with extended eMMC, up to 32GB. Higher memory volume brings new features available for ModBerry series. One of the options is SuperCap power support.

 ModBerry 500 with Compute Module 3+
ModBerry 500 with Compute Module 3+

Higher performance of ModBerry 500/9500 with extended eMMC flash memory, up to 32GB , powered by quad-core Cortex A53 processor allows the device to smoothly run Windows 10 IoT Core system, opening up many possibilities for data management, remote control and visualisation.

LoRa vs NarrowBand-IoT. What is better for Industrial IoT?

Low-power wide-area (LPWA) technology meets the needs of multiple IoT markets for low-cost devices that maintain long battery life and low-cost, large-area networks that support large numbers of connections. However, LoRa (LoRaWAN) and NarrowBand-IoT have the most momentum and will gain the largest share in the LPWA market in the next few years.

Many technology articles compare LoRa and NB-IoT technologies as if they were battling it out for dominance in the IoT market. In reality, these technologies are two branches within an emerging technology ecosystem. Similar to WiFi and Bluetooth, they will most likely to diverge into different niches, rather than directly compete with each other. This article will dive deeper into the capabilities, costs, longevity, maturity, and other differentiators of NB-IoT and LoRa-based technology.

Source: https://www.linkedin.com/pulse/nb-iot-vs-lora-its-ecosystem-race-art-reed

Sigfox/LoRa and NB-IoT in direct comparison

As a result of the research, performed by Tauron, it was found that SigFox and LoRaWAN technologies have limited applications due to the use of the unlicensed ISM band (868 MHz). In addition, each of the three technologies tested has a limit on the transmission channel speed. LoRaWAN, unlike others, allows the construction of an autonomous, separate network dedicated to the needs of the owner.

LTE NarrowBand-IoT technology, as a 3GPP standard, is being increasingly implemented by subsequent mobile operators in the world and in European countries like Poland. For example, polish main frequencies of NB-IoT implementation are 800 MHz and 900 MHz, which allows achieving high coverage of the country.

Research carried out by Tauron has shown that, considering the security of the solution, the availability of telecommunications infrastructure, or the speed of data transmission (important for meter reading), LTE NB IoT technology is closest to use in the energy sector.

Source: https://www.telko.in/tauron-lepiej-ocenia-nb-iot-niz-lora-i-sigfox

Both LoRa and NB-IoT standards were developed to improve security, power efficiency, and interoperability for IoT devices. Each features bidirectional communication (meaning the network can send data to the IoT device, and the IoT device can send data back), and both are designed to scale well, from a few devices to millions of devices.

Source: https://www.linkedin.com/pulse/nb-iot-vs-lora-its-ecosystem-race-art-reed

Use of LoRa/NB-IoT in industrial automation

Use of wireless connection makes life and work easier for us every day – from radio stations and GSM to Wi-Fi wireless networks, Zigbee, short-range Bluetooth connectivity and LoRa / NarrowBand-IoT wireless solutions. With the spread of internet access, the possibility of using wireless connectivity for a new type of service and application has opened.

ModBerry 500 / ModBerry 9500

Device equipped with LoRa module is delivered with a LoRaWAN protocol stack, so it can be easily connected to the existing, fast-growing LoRa Alliance infrastructure – both in privately managed local area networks (LAN) and public telecommunications networks to create wide area low power WAN (LPWAN) on a national scale. LoRaWAN stack integration also allows connection to any microcontroller, such as ModBerry industrial device from TECHBASE. Such solutions offer also NarrowBand-IoT and full 4G/LTE support.

Every fan of new technologies has heard of small single-board computers (SBC) in the form of Raspberry Pi 4. Raspberry debuted on the market in many different versions, and the current model is Model 4B. A lot of people got infected with it for DIY, programming or Linux. But new board comes with variety of pros and cons, as compared to previous RPi3 versions.

Industrial use of market Raspberry Pi 4 SBCs

A year ago, TECHBASE released an updated version of the ModBerry M500 industrial IoT computer, replacing the aging Raspberry Pi 3 with a 3B+, giving it better performance. With the recent launch of the Raspberry Pi 4, TECHBASE has yet again, announced another upgrade to the M500, which now packs the latest single-board computer.

ModBerry M500 with Raspberry Pi’s 4

ModBerry M500 also utilizes many more SBC platforms, such as Orange Pi, NanoPi and Intel-based UpBoard. Find more information here: https://iiot-shop.com/product/modberry-m-series/

Nowadays, mobile Internet offers are becoming more and more popular. They are often cost-effective for those who do not download too much from the web. Usually you don’t even need to sign a contract – some operators offer fairly favorable pre-paid internet offers. Anyway, even if we want an Internet contract, sometimes the monthly fee is lower if we do not take the device.

In that case, how will we receive this Internet? The solution is simple – unfortunately we have to invest some money in the LTE modem. As a router separating the signal we will use Raspberry Pi. For a ready and complete solution we can choose ModBerry Industrial IoT devices already equipped with modem of our choosing

ModBerry M500 modem configurability

ModBerry M500 added wide range of I/Os to the board, including RS232/485 serial ports, digital and analog I/Os, 10/100Mbps Ethernet port, USB, 1-Wire and optional CAN. ModBerry series also offers additional wired interfaces and wireless communication modules with their proprietary modules called ExCard. The range of wireless modules include 3G/LTE, NarrowBand-IoT (NB-IoT), Wireless M-Bus, ZigBee, LoRa, Sigfox, Wi-Fi, Bluetooth and many more.

New Raspberry Pi-sized SBC powered with Ryzen R1305G

Single board computers, or SBCs for English in short, are very popular among enthusiasts and DIY enthusiasts. Although they have been available on the market for a long time, the British Raspberry Pi with its low price and great support contributed to the interest of this market by other manufacturers. Today we will focus on the legendary DFI company, which decided to present its vision of this type of device. It is unique because on the laminate the size of a credit card we find the AMD Ryzen Embedded 1000 chip, DDR4 memory chips, built-in eMMC memory and Mini PCI connector. And all this capable of working under classic Windows or Linux.

DFI GHF51 board (top)

DFI GHF51 is a single-board computer with dimensions of 84 x 55 millimeters. The green laminate features a 2-core and 4-thread AMD Ryzen Embedded R1305G chip working with a 1.5 GHz base clock and a maximum clock speed of 2.8 GHz at a TDP from 8 to 10 W. It has an integrated AMD Radeon Vega graphics chip equipped with 3 CU units that supports H.265 video content, VP9 and 4K resolution. The RAM memory is a single-channel DDR4 with a capacity of 2 to 8 GB and working with a clock up to 3200 MHz. The internal memory is an eMMC system with a capacity of 16 to 64 GB, and the whole is completed by the Mini PCIe connector.

DFI GHF51 board (back)

Industrial use of various development boards

Introduced in November 2017, the ModBerry M300 series, based on NanoPi NEO revolutionised the economic segment of Industrial IoT devices and proved, that automation and monitoring can be done effectively with low expenditure on industrial installations.

ModBerry M300 O1 based on OrangePi Zero Plus features Allwinner H5 (Quad-core Cortex-A53) SoC, moderate 512MB RAM, storage memory option with microSD slot, USB and Gigabit Ethernet port. The wireless communication is supported with onboard Wi-Fi module.

Offering much higher performance and wider feature range, the ModBerry M300 O2 features same SoC as M300 series, but thanks to OrangePi Zero Plus2 means, the device is equipped with onboard 8GB eMMC, extra microSD expansion slot as alternative and wired/wireless interfaces, e.g. HDMI, Wi-Fi, Bluetooth 4.0.

A new alternative for the Raspberry Pi was presented. The Raspberry Pi Zero Micro SBC called Kimχ Micro has a quad-core processor and an mPCIe slot for adding PCIe cards.

Kimχ Micro includes the NXP i.MX 8M Mini processor with up to 4 ARM Cortex-A53 cores. These cores can be clocked up to 1.8 GHz and are complemented by the ARM Cortex-M4F real-time core and the Vivante GC NanoUltra 3D graphics processor. The latter allows Kimχ Micro to encode and decode 1080p content at 60 FPS.

In addition, Kimχ Micro SBC contains 1 GB of LPDDR4 RAM, 8 GB of eMMC flash memory and a Micro SD card reader. There is also a serial EEPROM. Kimχ Micro also has a built-in mPCIe connection for adding PCIe cards, such as Wi-Fi cards. By the way, the board must support LTE or LoRA cards.

Kimχ Micro (preliminary) specifications:

  • SoC – NXP i.MX 8M Mini single to quad-core Cortex-A53 processor @ up to 1.8 GHz, Cortex-M4F real-time core @ up to 400 MHz, Vivante GC NanoUltra 3D GPU + GC320 2D GPU, VPU for 1080p60 video decoding and encoding; (Single and dual-core version of NXP i.MX 8M Mini processor are also compatible)
  • System Memory – 2GB LPDDR4
  • Storage – 8GB eMMC flash, MicroSD card socket, serial EEPROM
  • USB – 1x USB 2.0 Type-C port for power and data
  • ExpansionmPCIe socket for wireless cards (e.g. WIFi, 4G LTE, or LoRa).
  • Sparkfun Qwiic header
  • 2x 60-pin high-density I/O headers with Ethernet, USB, camera, display, SAI audio, I2C, SPI, GPIO, PCIe, etc…
  • Debugging – 10-pin JTAG header footprint, Cortex-M4 UART “M4” header, Cortex-A53 “Console” header
  • Misc – Power button, button 1 (boot selection) and button 2 (user button), R, G, and B LEDs
  • Power SupplyUSB PD via USB-C port, NX20P3483UKUSB PD and Type-C high-voltage sink/source combo switch and PTN5110NHQZ TCPC compliant USB Power Delivery (PD) PHY IC
  • 5V unpopulated header
  • 2-pin header for 1S LiPo Battery; on-board PMIC, charging, fuel gauge, and battery protection ICs
  • Dimensions – 65 x 32 mm (FYR – Raspberry Pi Zero: 65 x 30 mm)

Source: https://www.cnx-software.com/2020/06/08/raspberry-pi-zero-sized-kim%cf%87-micro-sbc-quad-core-processor-mpcie-slot/

Industrial use of Raspberry Pi and Raspberry Pi-like boards

A year ago, TECHBASE released an updated version of the ModBerry M500 industrial IoT computer, replacing the aging Raspberry Pi 3 with a 3B+, giving it better performance. With the recent launch of the Raspberry Pi 4, TECHBASE has yet again, announced another upgrade to the M500, which now packs the latest single-board computer.

Over 10 million Raspberry Pi’s have been sold and the Raspberry Pi is likely to stay as a new standard in the industry. Official Raspbian OS is free operating system based on Linux Debian optimized for the Raspberry Pi comes with over 35,000 packages, pre-compiled software bundled in a nice format for easy installation. ModBerry devices are compatible with Raspberry Pi accessories, supported by Raspberry Pi Foundation. ModBerry M500 now with Raspberry Pi 3 Model B+ / Raspberry Pi 4 Model B support.

Linus Torvalds released Linux 5.7 with this announcement:

So we had a fairly calm last week, with nothing really screaming “let’s delay one more rc”. Knock wood – let’s hope we don’t have anything silly lurking this time, like the last-minute wifi regression we had in 5.6..

But embarrassing regressions last time notwithstanding, it all looks fine. And most of the discussion I’ve seen the last week or two has been about upcoming features, so the merge window is now open  and I’ll start processing pull requests tomorrow as usual. But in the meantime, please give this a whirl.

We’ve got a lot of changes in 5.7 as usual (all the stats look normal – but “normal” for us obviously pretty big and means “almost 14 thousand non-merge commits all over, from close to two thousand developers”), So the appended shortlog is only the small stuff that came in this last week since rc7.

Go test,

Source: https://lkml.org/lkml/2020/5/31/326

Linux 5.7.1 changes from 5.7

  • New, higher-quality exFAT file system from Samsung replacing the exFAT implementation added to Linux 5.4.
  • Thermal Pressure in the task scheduler – Thermal Pressure makes the task scheduler more aware of frequency capping, and leads to better task placement among available CPUs in event of overheating, which should lead to better performance numbers. See more details on LWN.
  • Tiger Lake enablement – Graphics, thermal & power management, Ethernet
  • Coding-style – Deprecate 80-column warning

MIPS Linux 5.7 changes

A few changes came also to MIPS:

  • loongson64 irq rework
  • dmi support loongson
  • replace setup_irq() by request_irq()
  • jazz cleanups
  • minor cleanups and fixes

Ubuntu 19.10 for latest Raspberry Pi applications

With 19.10 release of Ubuntu Server, Canonical announced official support for the Raspberry Pi 4. The latest board from the Raspberry Pi Foundation sports a faster system-on-a-chip with a processor that uses the Cortex-A72 architecture (quad-core 64-bit ARMv8 at 1.5GHz). Additionally, it offers up to 4GB of RAM. We are supporting the Raspberry Pi 4 to give developers access to a low-cost board, powerful enough to consolidate compute workloads at the edge. 

The Raspberry Pi has established itself as a most accessible platform for innovators in the embedded space. Canonical is dedicated to empowering innovators with open-source software. Consequently, Canonical endeavors to offer full official support for all the boards in the Raspberry Pi family. Canonical will therefore enable both Ubuntu Server and Ubuntu Core for existing and upcoming Pi boards.

Ubuntu Roadmap. Source: https://ubuntu.com/blog/roadmap-for-official-support-for-the-raspberry-pi-4

Industrial use of Raspberry Pi 4

A year ago, TECHBASE released an updated version of the ModBerry M500 industrial IoT computer, replacing the aging Raspberry Pi 3 with a 3B+, giving it better performance. With the recent launch of the Raspberry Pi 4, TECHBASE has yet again, announced another upgrade to the M500, which now packs the latest single-board computer.

Raspberry Pi 4

Over 10 million Raspberry Pi’s have been sold and the Raspberry Pi is likely to stay as a new standard in the industry. Official Raspbian OS is free operating system based on Linux Debian optimized for the Raspberry Pi comes with over 35,000 packages, pre-compiled software bundled in a nice format for easy installation. ModBerry devices are compatible with Raspberry Pi accessories, supported by Raspberry Pi Foundation. ModBerry M500 now with Raspberry Pi 3 Model B+ / Raspberry Pi 4 Model B support.

Raspberry Pi 4 is well known for its size and value, but will soon start to be seen for it’s significant performance. A few months ago, the Raspberry Pi Foundation announced the development of Vulkan support on Raspberry Pi 4. Today, the team published demonstration photos showing updates and progress in the current state of the project.

When we announced the effort back in January we were at the point of rendering a coloured triangle, which required only minimal coverage of the Vulkan 1.0 API in the driver. Today, we are passing over 70,000 tests from the Khronos Conformance Test Suite for Vulkan 1.0 and we have an implementation for a significant subset of the Vulkan 1.0 API.

Source: https://www.raspberrypi.org/blog/vulkan-update-now-with-added-source-code/

Rasbperry Pi 4 upgrade of ModBerry M500

In 2019, with the premiere of Raspberry Pi 4, TECHBASE upgraded their ModBerry M500 device with the latest revision of this popular SBC, further enhancing the performance of their device. New 1.5GHz quad-core 64-bit ARM Cortex-A72 processor (approximately 3 times better performance than previous Cortex-A53 powering Raspberry Pi 3+ Model B and Compute Module 3 and 3+). ModBerry M500 can now be configured from 2GB / 4GB LPDDR4 SDRAM options.

Revised ModBerry M500 features Gigabit Ethernet, USB3.0, two microHDMI ports supporting OpenGL ES 3.x and 4Kp60 hardware decode of HEVC video. The device is fully compatible with previous versions of Rasbperry Pi based Industrial IoT devices and accessories from TECHBASE.

In 2017, TECHBASE Group introduced an industrial-grade automation controller, based on popular Raspberry Pi 3 board. The device called ModBerry M500 incorporated latest Raspberry Pi SBC and TECHBASE’s standard industrial board to enhance the capabilities of market RPi3.

ModBerry M500 added wide range of I/Os to the board, including RS232/485 serial ports, digital and analog I/Os, 10/100Mbps Ethernet port, USB, 1-Wire and optional CAN. ModBerry series also offers additional wired interfaces and wireless communication modules with their proprietary modules called ExCard. The range of wireless modules include 3G/LTE, NarrowBand-IoT (NB-IoT), Wireless M-Bus, ZigBee, LoRa, Sigfox, Wi-Fi, Bluetooth and many more.

Rasbperry Pi 4 upgrade of ModBerry M500

In 2019, with the premiere of Raspberry Pi 4, TECHBASE upgraded their ModBerry M500 device with the latest revision of this popular SBC, further enhancing the performance of their device. New 1.5GHz quad-core 64-bit ARM Cortex-A72 processor (approximately 3 times better performance than previous Cortex-A53 powering Raspberry Pi 3+ Model B and Compute Module 3 and 3+). ModBerry M500 can now be configured from 2GB / 4GB LPDDR4 SDRAM options.

Revised ModBerry M500 features Gigabit Ethernet, USB3.0, two microHDMI ports supporting OpenGL ES 3.x and 4Kp60 hardware decode of HEVC video. The device is fully compatible with previous versions of Rasbperry Pi based Industrial IoT devices and accessories from TECHBASE.

M.2 SSD support for ModBerry M500

Latest software update for Raspberrry Pi 4, now available in beta, makes it possible to boot directly from USB 3.0 connected drive, without the need for an SD card. With a possibility to run the OS directly from SSD is a massive breakthrough, allowing users to improve the performance of the system and data access speed.

ModBerry M500 offers now a feature to include M.2 SSD drive in industrial-grade device. The merge of industrial interfaces and SSD-boosted Raspberry Pi 4 is a perfect solution for on-site data management and gateway application.

ModBerry M500 roadmap for 2020+

Difficult times of coronavirus outbreak in early 2020 changed the expectations for new Industrial IoT devices. Slowed market needed some adjustments to overly expanded devices with reserve of not quite necessary features for different applications – often raising the price of the device.

New addition to ModBerry M series and Industrial IoT Ecosystem offered by TECHBASE Group is the revised ModBerry M500 Lite device, to ensure the full configurability of device’s resources.

ModBerry M500 Lite features:

  • Quad-core ARM Cortex-A72 1.5GHz processor
  • 2/4GB and new 8GB LPDDR4 RAM option
  • SSD M.2 support for mass storage boot
  • Industrial-grade enclosure with DIN-rail mount
  • RTC

ModBerry M500 Lite optional resources:

  • Serial RS232/422/485 ports
  • Digital and Analog I/Os
  • Relays
  • 10/100Mbps Ethernet
  • CAN, 1-Wire
  • M-Bus Master / Slave
  • TPM Security chip
  • OLED 0.96” screen
  • SuperCap UPS

New ModBerry M500 Lite not only is a versatile device with wide array of available optional resources, but also incredible fast with quad 1.5GHz processor, up to 8GB RAM and last but not least, M.2 SSD bootable drive for system, applications and rapid data availability, without the need to bootstrap an SD card. RTC with watchdog option and additional TPM Security chip ensures data safety and breach protection.

Pricing and availability of ModBerry M500 Lite

Price of the device is yet to be specified, but it will be significantly lower than standard ModBerry M500, which can be configured here. Preliminary devices are available to order – please contact our sales department via contact form or Live Chat at https://iiot-shop.com/ to receive a quotation for the configuration needed.