Code Monkey home page Code Monkey logo

neurosky-race's Introduction

NeuroSky-Race

In this application you can use your attention level to control car speed. Application designed for two racers. You will need following items for this project:

- NeuroSky Mindwave Sensors * 2
- Arduino (Nano in this example but can be different) * 2
- IRFZ44N Mosfet * 2
- HC-05 Bluetooth * 2
- Slot Car Track
- MZ-80 (Optional) * 2
- FTDI Converter(Optional) * 2
- PC (Optional)

First-Upload

For the first UPLOAD you have to uncomment this line in "configuration.h". Next time you can comment it again. This line saves speed levels to EEPROM.


//#define WRITE_EEPROM 

Interface

If you want to use NodeJs web interface you will need a PC to run server. Connect two Arduino with USB cable to PC and set port names in "server.js"

var portName1 = "COM5";         //if you use using Linux /dev/tty***
var portName2 = "COM13";        //if you are using Linux /dev/tty***
$ cd Web-Interface
$ npm install
$ node server.js

Software Serial

You can use FTDI converter or direct Arduino USB Plug to connect PC with Serial communication. You should uncomment this line in "configuration.h" and use A4 as RX, A5 as TX pin


//#define USE_EXTERNAL_USB

CARS WILL NOT MOVE IF .. !!

In this application if there are not two racers which are signal qualites equals zero(means max signal quality) cars cannot move. I needed this specification for race concept. If you want to disable it, comment this line in "configuration.h"


#define MAKE_GAME

neurosky-race's People

Contributors

oguzhanbaser avatar

Stargazers

 avatar

Watchers

James Cloos 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.