How to program LEGO Mindstorms EV3 using C language?

First of all, I am new to this and I need a little help!

I have a LEGO Mindstorms EV3 robot, I downloaded (LEGO Mindstorms EV3 Home Edition) to control EV3. Unfortunately, I could not find the source code for EV3 in the mentioned software. So please, if anyone can tell me the name of the software that allows you to program EV3! I would be very grateful!

I also downloaded (Bricxcc) software, but it was an old version. I could not find a newer version containing EV3.

Can C be used to program EV3? Or add some features to the sensors?

Note. I ended up leJOS software to program code using java, it is much simpler, and there are many resources for EV3 brick in java. Wish you all the best!

+8
c robot mindstorms sensor
source share
2 answers

Here you can find the source code of EV3: https://github.com/mindboards/ev3sources

The generated documentation from this source code is available here and here .

Bricxcc has experimental support for EV3, but it has not been actively developed (since October 2013). You can find the latest version here . An Internet search for "bricxcc ev3" will be timed to some tutorials (for example, the one at http://www.robotnav.com looks good).

ROBOTC is a good alternative, although it is not free.

There is also ev3dev . There is a C library for ev3dev here or you can write your own.

+10
source share

EV3 runs on Linux with glibc, so you only need to download your programs in C. For C ++, you need to copy the standard C ++ library. Such programming is a little inconvenient, since you have to interact directly with the device files.


The c4ev3 package simplifies this. It is built around the Eclipse plugin, which includes the GCC Toolchain, API, and the built-in Uploader and File browser, which can be used directly from Eclipse.

Template designs included

C and C ++ Hello World. The API and Uploader can also be used separately from Eclipse, so you can use it however you like.

Check :-)


Disclosure: I wrote a piece of software.

+4
source share

All Articles