nategri / nematoduino Goto Github PK
View Code? Open in Web Editor NEWArduino UNO-compatible robotic simulation of the C. elegans nematode
License: GNU General Public License v2.0
Arduino UNO-compatible robotic simulation of the C. elegans nematode
License: GNU General Public License v2.0
Testing has been done on multiple boards, multiple motor controllers, and multiple downloads to make sure it's stock. When using an Uno, even the genuine uno after 30 seconds to 1 minute the motor control pins get reversed (the robot starts going backwards). I haven't been able to find a cure for this issue, since it's persisted through different uno models, genuine and clones, fresh code and highly edited.
I have confirmed that it's the Uno doing the switch, as if the pins were disconnected and swapped, not a motor driver issue.
Any suggestions would be helpful. Thanks for your time.
Sensors use PingNeuron() to stimulate cennectome. This approach forces neurons in question to fire completely disregarding state of the neurone. Also, there is no way to include weight of the stimuli. Using AddToNextState() or similar function to "charge" a sensory neuron might represent biological behavior more accurately: neuron would fire whenever it has cumulated certain State and sensory data would increment the State more rapid.
This issue becomes apparent when trying to use weak sensory signals (real worm can sense huge dynamic range of certain chemicals).
P.S. amazing project!
Using Arduino IDE 1.6.7 on Ubuntu 14.04. I did a git clone and then used Arduino IDE verify to build and got error messages about invalid conversion from 'void*' to 'uint8_t* {aka unsigned char*}' [-fpermissive] for the 3 malloc for CurrMuscleState, NextMuscleState and IdleCycles so I cast the void to the pointer type it wanted. It compiles.
My Arduino has been collecting dust but want to make it do something and this idea of the neural net is interesting. The diff is as follows.
diff --git a/nemotoduino.ino b/nemotoduino.ino
index 631b66f..8cd3968 100644
--- a/nemotoduino.ino
+++ b/nemotoduino.ino
@@ -39,11 +39,11 @@ int8_t CurrConnectedState[N_NTOTAL];
int8_t NextConnectedState[N_NTOTAL];
// Another set for muscles that aren't connected to other cells
-int16_t* CurrMuscleState = malloc((N_NTOTAL-N_MAX)*sizeof(int16_t));
-int16_t* NextMuscleState = malloc((N_NTOTAL-N_MAX)*sizeof(int16_t));
+int16_t* CurrMuscleState = (int16_t*)malloc((N_NTOTAL-N_MAX)*sizeof(int16_t));
+int16_t* NextMuscleState = (int16_t*)malloc((N_NTOTAL-N_MAX)*sizeof(int16_t));
// Final set to track how many cycles a neuron has been idle
-uint8_t* IdleCycles = malloc(N_MAX*sizeof(uint8_t));
+uint8_t* IdleCycles = (uint8_t*)malloc(N_MAX*sizeof(uint8_t));
//
// Functions for getting and setting these states
The instructions for installing the nematoduino_library are incorrect. There is no ZIP file included in the repo. Attempting to zip and upload manually results in the following error:
LIBRARIES THAT COULD NOT BE IMPORTED:
[utility] parse library.properties: library.properties not found
Could the proper files please be included in the repo?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.