Address Book
 

Laird Thermal Systems
 

HARTING
 

Jenoptik
 

A.P.O. - ELMOS v.o.s.
 

MACH SYSTEMS s.r.o.
 

Pico Technology
 

Lynred
 

Advantech
 

EBV
 

SECO S.p.A.
 

Crowd Supply
 

Digi-Key Electronics
 

Durakool
 

KEMET
 

INTEL

22.01.2022 0:07:32
bloky
maketa
HomePage
Electronic-components
Embedded
Industry automation
Security
Test & measurement
Tools
Electromobility
Solar energy
Lighting
Jobs
Training , Trade fairs, Evens
Virtual events
Interesting video
Various

DPI 750E
 
RS Components adds range of enhanced pre
conga-TR4
 
AMD Ryzen™ based congatec COM Express mo
BHI260AB
 
An All-in-One Programmable Smart Sensor
BAHCO
 
BAHCO set of insulated wrenches
s-Sense
 
s-Sense modules from R&D SOFTWARE SOLUTI
TH381
 
TH381 series miniature, high IP rated co
TP-1303
 
Twintex TP-1000 series dual channel powe
T5808
 
TDK announces world’s first MIPI standar
Portable SSD T7 Touch
 
Samsung Releases Portable SSD T7 Touch –
IRE-Q12
 
120W eighth brick DC-DC converters for r

ARDUINO – COMMUNICATION USING THE ETHERNET NETWORK
For many years, the creation of extensive computer networks has ceased to serve only for connecting computers.

The drop in prices and the increase in the computing power of small microcontrollers began the rapid process of connecting low-power devices, mainly those performing control and measurement functions, to local Ethernet networks or even the global Internet network. Moreover, these solutions began to appear also in professional industrial networks, gradually replacing older systems based on RS232 and derivatives. Thus, at the beginning of the twenty-first century, the era of the so-called Internet of Things (IoT) began. Although the current IoT market is dominated by devices communicating mainly via wireless networks and Wi-Fi, ZigBee, BLE or Z-Wave standards, still in many hardware solutions (mainly from the so-called IIoT – Industrial Internet of Things), requiring reliable transmission and data security, the Ethernet network remains one of the most popular solutions. The creators of the Arduino platform did not leave the demand from the designers of IIoT devices unanswered, and they extended the standard range of Arduino modules with Ethernet Shield 2, addressed to individual users, or Arduino MKR ETH SHIELD for professional solutions, based on WIZnet controllers W5100/W5200/W5500 and integrating MAC and PHY circuits in one integrated circuit. This offer was quickly expanded by independent producers, who added to it new and much cheaper modules based on the popular ENC28J60. This article contains a short description of both solutions: the official one, based on the W5x00 series chips, and mainly community-developed Open Source/Open Hardware solutions based on ENC28J60 modules.

Communication using WIZnet W5x00 modules and the Arduino Ethernet library

An important advantage of the official modules based on the W5x00 series systems (including their hardware counterparts, for example OKYSTAR OKY2102 or DFROBOT DFR0125 overlays) is to provide full software support in the form of the Ethernet library embedded in the Arduino stack. Thus, the user can start creating the program right after launching the Arduino IDE, without the need to install additional software packages.

Figure 1. OKY2102 (left) and DFR0125 (right) modules, equipped with the WIZnet W5100 controller

Depending on the variant of the WIZnet system and the amount of available RAM, the Ethernet library supports a maximum of four (for the W5100 chip and RAM <= 2 kB) or eight (W5200 and W5500 systems) parallel incoming/outgoing connections. The software interface of the library has been divided into five classes, grouping individual functionalities. The Ethernet class is responsible for library initialization and configuration of network settings (including IP address, subnet address or access gateway settings). An IPAddress class has been created for IP addressing. To run a simple server application on the Arduino side, it will be necessary to use the EthernetServer class, which allows data to be recorded and read from all connected devices. A complementary class is the EthernetClient class, which enables, in a few simple calls, to prepare a functional network client that performs data write and read operations from the server. For UDP communication, the Ethernet library provides the EthernetUDP class. A full description of the classes with the relevant methods is available at:

Go to the Arduino website

As is characteristic for the Arduino platform, all the complex operations of the program are implemented directly in the supplied library – the developer receives a limited, but very functional set of APIs, so that the development process is fast and does not require detailed knowledge of the network stacks. Therefore, let us analyze the construction of the simplest server application, provided with the Ethernet library, the task of which is to listen to incoming connections from the Telnet protocol client.

The server application code starts adding the header files necessary to establish SPI communication (WIZnet modules exchange data with the microcontroller using this protocol) and the Ethernet library header files:

#include <SPI.h>
#include <Ethernet.h>

The next step is to configure the network parameters (MAC address of the controller, IP address of the access gateway and subnet mask) and create a listening server on port number 23 (the default port for the Telnet protocol):

byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};

IPAddress ip(192,168,1, 177);
IPAddress gateway(192,168,1, 1);
IPAddress subnet(255, 255, 0, 0);

EthernetServer server(23);

In the body of the setup() function, it is necessary to initialize the Ethernet library and start the listening process. Additionally, the configuration of the serial port is available, thanks to which messages about the server address, new client connection and data received during the established session can be displayed:

void setup() {

  Ethernet.begin(mac, ip, gateway, subnet);
  server.begin();

  Serial.begin(9600);
   while (!Serial) {
  }

  Serial.print("Chat server address:");
  Serial.println(Ethernet.localIP());
}

The main loop of the loop() program waits for a connection from the client and checks for readable data. When receiving data, it sends such data back to the client, unchanged, thus performing a simple echo function:

void loop() {

  EthernetClient client = server.available();

  if (client) {
    if (!alreadyConnected) {
      client.flush();    
      Serial.println("We have a new client");
      client.println("Hello, client!"); 
      alreadyConnected = true;
    } 

    if (client.available() > 0) {

      char thisChar = client.read();

      server.write(thisChar);
      Serial.write(thisChar);
    }
  }
}

The correct operation of the above application can be tested using any Telnet protocol client (e.g. Putty in Windows or telnet command in Linux) or with the use of another Arduino kit and the EthernetClient class.

Communication using ENC28J60 modules and external libraries

Alternatively, instead of officially supported WIZnet W5x00 systems, modules based on the ENC28J60 controller (e.g. OKYSTAR OKY3486 or ETH CLICK) can be used. With a lower price and a package that is easier to install manually (as opposed to the circuits contained in W5x00 80-pin LQFP packages the ENC28J60 controller is available in 28-pin SSOP, SOIC, QFN packages, as well as in the SPDIP package, intended for through-hole mounting), this circuit is very popular among hobbyists.

Figure 2. OKY3486 (left) and ETH CLICK (right) modules equipped with the ENC28J60 controller

Despite the lack of official support from Arduino, many open source libraries have been made available to programmers, ensuring quick integration of ENC28J60 chips with the software. Particular attention should be paid to the UIPEthernet and the EtherCard libraries, the latter being made available under the GPLv2 license. The undoubted advantage of the former one is the compatibility of the API interface with the official Arduino Ethernet library, thanks to which the application development process can be independent from the choices made between the W5x00 systems and the ENC28J60 system in the hardware. The other project – EtherCard – implements an independent programming interface which, depending on the programmer's preferences, may turn out to be an interesting alternative. Like in the case of the Arduino Ethernet library, implementation of a quite complex functionality (e.g. the implementation of the DHCP client) can be done in just a few lines of code:

#include <EtherCard.h>

static byte mymac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};

byte Ethernet::buffer[700];

void setup () {

  Serial.begin(57600);
  Serial.println(F("
[testDHCP]"));

  if (ether.begin(sizeof Ethernet::buffer, mymac, SS) == 0)
    Serial.println(F("Failed to access Ethernet controller"));

  Serial.println(F("Setting up DHCP"));
  if (!ether.dhcpSetup())
    Serial.println(F("DHCP failed"));

  ether.printIp("My IP: ", ether.myip);
  ether.printIp("Netmask: ", ether.netmask);
  ether.printIp("GW IP: ", ether.gwip);
  ether.printIp("DNS IP: ", ether.dnsip);
}

void loop () {
  ether.packetLoop(ether.packetReceive());
}

 

https://www.tme.eu/gb/news/library-articles/page/43654/arduino-communication-using-the-ethernet-network/

 

 

2021091601 / 16.09.2021 / Embedded / Transfer Multisort Elektronik Sp. z o.o. /

BRUSHLESS MOTORS – DESIGN & OPERATION
In order to understand the phenomenon of brushless motors, which are rapidly entering the power tool market, it is necessary to understand the principle of operation of the formerly applied commutator motors and learn about the main differences between these two types of motors.

E2E NEXT SERIES OF INDUCTIVE SENSORS FROM OMRON
Inductive sensors are an extraordinarily important group of control system components that is present in every automated industrial plant, but also more and more commonly in households. Thanks to their simple design and a wide array of sizes they guarantee very long and failure-free work, and the ever newer solutions allow you to choose the right sensor for every application.

DYMO RHINO 4200 LABEL MAKER
DYMO is a company with 60 years of experience in manufacturing embossing label markers and printers. The supplier offers the highest quality equipment that makes the work in workplaces, offices, factories, warehouses, workshops, retail outlets, and many other industries simpler. They are alsogreat for households, as they are great for organizing and managing assets.

HAN S CONNECTORS FOR ENERGY STORAGE SYSTEMS AND NEW PRODUCTS FROM HARTING
The HARTING brand is known in global markets as a manufacturer of excellent quality connectors, cables and other solutions for industry, as well as professional and specialist equipment. Much of the company's product range is available directly from TME's warehouses, to the satisfaction of our customers.

THE 40 SERIES OF COMELUX SWITCHES
Illuminated rocker switches are used in many different areas – from industrial applications to consumer equipment (such as home appliances). Mounted on a panel, these switches are a safe way of turning high voltage circuits on. In the case of COMELUX products, they can handle currents up to 16A and standard mains voltages, i.e. 250V AC. They are some of the most basic electromechanical components, but they stand out thanks to their durability and manufacturing quality.

SWITCHES FROM E-SWITCH – A NEW MANUFACTURER
E-Switch is an American brand that specialises in all kinds of switches. Their wide range of products includes basic components like TACT switches, but also high-current switches, DIP-switches, ignition switches, touch buttons, trigger buttons and many other solutions.

DC CONVERTERS – WHAT ARE THEY AND WHAT ARE THEIR FUNCTIONS?
Voltage converters can decrease or increase the output voltage in relation to the input voltage. By alternately turning on and off the voltage with high frequency, they control the value of output voltage without causing any disturbance in the work of the device.

ARDUINO – COMMUNICATION USING THE ETHERNET NETWORK
For many years, the creation of extensive computer networks has ceased to serve only for connecting computers.

Wireless communication in IoT systems using Arduino MKR modules
One of the biggest problems currently facing the Internet of Things (IoT) devices market is its high fragmentation. The multitude of devices and communication protocols makes it very difficult to build a uniform and functional system if you decide to use components from different manufacturers.

VELCRO® PRODUCTS NOW AVAILABLE AT TME
The TME offer has been expanded by products of the world-famous Velcro® brand. Velcro® was founded in 1951 and quickly became a dominant supplier of fastening solutions in a wide variety of industries. The company's offices are located in America, Asia, Europe, and Africa. The first Velcro® factory, opened in Manchester in 1957, is still there.

INFRARED LEDS IN SMD PACKAGES
The TME catalogue includes a wide range of infrared LEDs. The noticeable market trend in favour of the miniaturisation of devices forces manufacturers to search for solutions combining high power (ca. 1W) with a small size of SMD components. For this reason, today we present one of such solutions: PK2S-series IR LEDs, which are the smallest SMD power diodes offered by ProLight.

NKK SWITCHES - QUALITY AND FUNCTIONALITY
Switches are electromechanical components that control the current flow by connecting and disconnecting the electrical circuit. Even the popularity of touch screens has not changed the fact that it is still the leading method of user-device interaction.

Company of the week

Laird Thermal Systems

Interesting video


Intel Alder Lake Product Video


Brand new Qseven upgrade: NXP i.MX 8 | conga-QMX8-Plus


ENERGETAB 2021 Poland, Bielsko Biala, 14.9.-16.9.2021


New COM-HPC Client size B & COM Express Type 6 size Basic with 11th Gen Intel® Core (Tiger Lake-H)


11th Gen Intel® Core™ processors with two new design options - COM Express & COM-HPC | Interview


Address Book


Laird Thermal Systems


HARTING


Jenoptik


A.P.O. - ELMOS v.o.s.


MACH SYSTEMS s.r.o.


Pico Technology


Lynred


Advantech


EBV


SECO S.p.A.


Crowd Supply


Digi-Key Electronics


Durakool


KEMET


INTEL


CODICO


Future Electronics


Foremost Electronics


Littelfuse


Mouser Electronics


RUTRONIK


Infineon Technologies AG


TTI, Inc.


ANRITSU


Power Integrations


AXIOMTEK


TDK Corporation


VISHAY


STMicroelectronics


Texas Instruments



Calendary
DistribuTECH, 25.1.-27.1.2022, Dallas, TX
HANNOVER MESSE 2022, 25.4.-29.4. 2022 - “The biggest transfo
DistribuTECH, 7.2.-9.2.2023, San Diego, CA
DistribuTECH, 23.1.-25.1.2024, Indianapolis, IN
DistribuTECH, 11.2.-13.2.2025, Dallas, TX

Interesting video
The ISS Design Challenge ...

Interesting video
Mouser Electronics Warehouse Tour with Grant Imahara



naše portály dle jazyka:

česko/slovenská jazyková verze:
WWW.ELEKTRONIKA.CZ
WWW.ELEKTRONIK-INFO.CZ

anglická jazyková verze:
WWW.ELECTRONICA.ONLINE
WWW.ELECTRONIC-INFO.EU
WWW.COMPONENTS.ONLINE

polská jazyková verze:
WWW.ELEKTRONIKA.ONLINE/pl
WWW.ELEKTRONIK-INFO.PL

ruská jazyková verze:
WWW.ELEKTRONIKA.ONLINE/ru
WWW.ELEKTRONIK-INFO.RU
naše portály dle zaměření:

ELEKTRONIKA.ONLINE :
WWW.ELECTRONICA.ONLINE
WWW.ELEKTRONIKA.CZ
WWW.ELEKTRONIKA.ONLINE/pl
WWW.ELEKTRONIKA.ONLINE/ru

ELEKTRONIK-INFO:
WWW.ELECTRONIC-INFO.EU
WWW.ELEKTRONIK-INFO.CZ
WWW.ELEKTRONIK-INFO.PL
WWW.ELEKTRONIK-INFO.RU

COMPONENTS:
WWW.COMPONENTS.ONLINE
  kontakt:

MALUTKI media s.r.o.
Těrlická 475/22
735 35 Horní Suchá
tel. 00420-603531605
e-mail: info@malutki-media.com



All trademarks are the property of their respective owners.
ISSN 1801-3813