Giter VIP home page Giter VIP logo

godot_arduino's Introduction

README

the aim of this module is to send data from/to GODOT <-> Arduino (tested and working on linux platform)

Demo

in this demo :

  • at the top between < >, data coming from arduino
  • at the bottom, integer sent to arduino and controling the intensity of the red LED.

Godot Engine

Godot logo

https://godotengine.org/

Arduino

Arduino logo

https://www.arduino.cc/en/Guide/Introduction

Godot module for communication with Arduino

Godot Arduino love

Arduino_code folder

in this project, the arduino nano is wired with MPU9250/MPU650 module SDA --> A4 and SCL --> A5

links to MPU9250 description

links to MPU9250 example

links to library rpicopter

MPU9250

https://www.robot-maker.com/shop/capteurs/217-imu-9-axes-mpu9250-6500-spi-217.html

a led is also wired to D3 in order to be controled from godot

Godot module folder

to be copied in Godot module folder (godot-3.x.y-stable/modules/arduino_f/)

in file : comments the line (if not, it is a define for using this module in the main file -> see main.cpp)

// #define TEST_arduino_f_module_in_main

and build again with scons in the main directory /godot-3.x.y-stable (x11 for linux)

scons platform='x11' -j4

(to use 4 threads)

code could be used as is with the main.cpp go to the Godot module folder and :

scons -j4

links to CeSerial library (many thanks to the developer Yan Naing Aye)

Godot_Codes folder

Godot code to be opened in Godot

_._doxygen folder

open doxyfile with doxygen --> run doxygen --> show HTML output --> enjoy browsing in this beautiful documentation ;)

ideas for future development

  • add crc check for the strings transmitted from and to Godot

  • add the possibility to choose in Godot directly the speed of sending message (for the moment every 10 ms)

  • add a second loop to have two channels of sending message in different speed ; for example, fast message every 10 ms and low message every 1000 ms

  • add connectivity via WiFi, Bluetooth

godot_arduino's People

Contributors

threaderic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.