Git Repositry| Download |

µBrain is a simple perceptron library for the Arduino. It expects all training to take place offline. The library implements a single neuron which can be used to perform basic classification tasks. If you want to perform offline training, I strongly recommend using Brain.js to get the neural weights.

Warning: This library is meant for use in the Arduino and as such contains no memory protection, use it at your own risk.


– Small size ~28 lines of code.

– Simple code, easy to learn from.

– Fixed point arithmetic.

– Plays well with µSpeech 4.1.1+.

API Documentation



nueron(int numinp, int weights[]);

  • numinp : Number of inputs for given nueron
  • weights[]: Weights for given nueron

int run(int *inputs);

  • *inputs : Input data

Output of nueron.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s