Skip to main content

Posts

Showing posts with the label weights

Lego Robot and Neural Networks

An overview of using Lego RCX  robots for teaching neural networks present at workshop in 2011. Derby presentation from Scott Turner The video below shows the robot trying out sets of weights for two neurones, until a set of weights are found that enable the robot to go around the circle. As a part of a set of tools I have found the following useful for teaching the principles of simple neurones.  Example code: import josx.platform.rcx.*; public class annlf{  public static void main(String[] args)  {   int w[][] ={//put weights here};   int o[]={1,1};   int s1,s2,res1,res2;   int sensor1=0,sensor2=0;   robot_1 tom=new robot_1();   Sensor.S1.activate();   Sensor.S3.activate();   for(;;){    sensor1=Sensor.S1.readValue();    sensor2=Sensor.S3.readValue();    LCD.showNumber(sensor1); ...