D
D
Dorsalon Dethahal2014-11-24 22:39:06
linux
Dorsalon Dethahal, 2014-11-24 22:39:06

Working together arduino and linux?

Good day, I got carried away with the microcontroller and arduino and in parallel I delve into Linux. Interested in what exactly I need to study (where to dig), if the final task is a graphical application in the Linux environment that reads / sends data to arduino.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Armenian Radio, 2014-11-24
@gbg

Learn QT5 and QSerialPort in particular.

E
Eddy_Em, 2014-11-24
@Eddy_Em

The most elementary implementation, so as not to force yourself to study unnecessary rubbish (GTK, Qt, etc.) is the web interface.
A simple CGI is written that communicates with the microcontroller. And the browser already draws all the graphics. Everything is excellent and basic.
And since Since web sockets work in all browsers, the task is generally simplified.
The interface for connecting to the microcontroller can be either the ancient RS-232 or USB - depending on how the microcontroller is configured. In any case, if USB is configured to CDC, then there will be no difference in terms of software: open /dev/ttyUSB0 and work as if it were a regular RS-232.
But if you wish, you can also use libusb in bulk mode. This makes sense if you need to drive a lot of data on the bus.

C
Cyril, 2017-03-03
@Kris125

To be honest, your problem is not clear and is solved in 3 minutes.
Just install not the server from the article (you need Python there), but a simple http-server via npm (I think this is closer to you).
Then go to the directory of your project and run it through the command
Here is the solution to your problem.
Now when you go to localhost:8080index.html will be picked up from your folder.
That's the whole idea.
PS: As a bonus, you get that when you change html + css, the server tracks them and reloads the page for you.

S
sim3x, 2017-03-02
@sim3x

Everything is described in the article
Why?
Ask the client

X
xmoonlight, 2017-03-02
@xmoonlight

He himself had to take care of deploying the finished layout on the hosting and ALREADY AFTER pointing out to you any flaws in the design (or not to you - flaws in the layout of the design).
Either way, it's not your job. Say so.
Something does not suit specifically in the design - let him send screenshots.

R
Rafael™, 2017-03-03
@maxminimus

download MAMP
open the htdocs folder in it and put the necessary file there - for example,
launch MAMP prototype and it will open the page in the browser,
everything is very simple

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question