Communication with Arduino from Linux-Terminal

Communication with Arduino from Linux-Terminal

I already wrote how to send the message from/to Arduino with help Python. Now I want tell you, how to send/receive the messages from/to Arduino in Linux-Terminal. As you know, all devices of serial ports are represented by device files in the /dev directory. It is through these files that Linux OS communicates with an external device on the s...

Read More →

How to connect Arduino and Python

How to connect Arduino and Python

Example, how to send a message from Arduino to a Python-program Arduino code: void setup() { Serial.begin(9600); // opens serial port, sets data rate to 9600 bps } void loop() { Serial.println("Hello, it'a Ardunio!"); //send message delay(5000); } In Python we use pyserial library In the examples in this librar...

Read More →

Introduction in the gradient descent

Introduction in the gradient descent

A bit of theory: Suppose we just need to find a minimum of the one-dimensional function. As early as the 17th century Pierre de Fermat was invented a criterion that allowed solving simple optimization problems, namely, if x* is a minimum point of f*, then: This criterion is based on a linear approximation The closer x to ...

Read More →

Search
Popular Posts
Subscribe
{{post}}