GithubHelp home page GithubHelp logo

ferenc-hechler / calliope-ml-racer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from calliope-mini/calliope-project-template

0.0 1.0 0.0 402 KB

A template project to start projects with the DAL.

License: Apache License 2.0

CMake 2.57% C++ 86.24% Batchfile 0.24% TypeScript 6.81% C 0.56% Java 3.58%

calliope-ml-racer's Introduction

Calliope ML Racer

This project is for the Calliope Mini and uses Machine-Learning to solve a simple car driving game.

Calliope ML-Racer

How to build

Tested with Windows 10:

Tools

  • yotta package in Python 2.7 (Anaconda)
  • GCC 7 arm-none-eabi (gcc-arm-none-eabi-7-2018-q2-update-win32.zip) (use version 7, not 8!)
  • CMake (cmake-3.14.5-win64-x64.msi)
  • Ninja (ninja-win.zip, v1.5.3)
  • SRecord (srecord-1.63-win32.zip)
  • Eclipse IDE for C/C++ Developers (eclipse-cpp-2019-03-R-win32-x86_64.zip)
  • Putty (putty-0.71.tar.gz)

URLs:

Install yotta

Info: yotta

conda create -n calliope python=2.7
conda activate calliope
pip install -U yotta

run yt update once, it will download all required dependencies

install / unzip binaries

  • Unzip GCC and add gcc7-arm-none-eabi/bin to your PATH environment variable
  • install CMake and add CMake/bin to your PATH environment variable
  • unzip Ninja into a folder and add the folder to your PATH
  • unzip SRecord into a folder and add the folder to your PATH

Example toolchain setup

In Anaconda shell:

conda activate calliope
set PATH=\CALLIOPE\BIN\srecord163;%PATH%
set PATH=\CALLIOPE\BIN\gcc7-arm-none-eabi\bin;%PATH%
set PATH=\CALLIOPE\BIN\CMake\bin;%PATH%
set PATH=\CALLIOPE\BIN\ninja;%PATH%

Build

cd \CALLIOPE\git\calliope-ml-racer
yotta build

Flash

assume your Calliope device is mounted to "G:"

cd \CALLIOPE\git\calliope-ml-racer
copy build\calliope-mini-classic-gcc\source\calliope-project-template-combined.hex G:\

IDE

  • Install / unzip Eclipse
  • Toolchain is found automatically in PATH

Debug-Logging

Output written to ubit.serial.send(...) can be displayed using a serial terminal like PuTTY. Connect the Calliope via USB and look at the device manager, which COM-port is assigned:

Device-Manager USB-COM port lookup

Here it is "COM5". Then create a new serial session in PuTTY to COM5 with speed 115200:

PuTTY serial settings

Starting the PuTTY sessions opens a black window. As soon, as something is written from the Calliope program using ubit.serial.send("Hello!") this is displayed in this window. The connection is still esablished, if the Calliope is resettet using the reset button.

Ubuntu 18.04

quick notes, to be detailed:

https://launchpad.net/gcc-arm-embedded/+download -> gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2

http://docs.yottabuild.org/#installing-on-linux

sudo apt-get install cmake build-essential ninja-build libffi-dev libssl-dev

sudo apt-get install srecord

conda create -n calliope python=2.7
conda activate calliope
pip install yotta

cd ~/CALLIOPE/bin
. set-calliope-path.sh 

cd ~/git/calliope-ml-racer
yotta update
yotta build

IDE use

For further infos to IDEs and debugging look at the template readme at https://github.com/calliope-mini/calliope-project-template

License

The "calliope-project-template" is available under the Apache License. See https://github.com/calliope-mini/calliope-project-template

Copyright 2017 Calliope gGmbH

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

calliope-ml-racer's People

Contributors

ferenc-hechler avatar thinkberg avatar

Watchers

 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.