In the last post I was playing with 4Tronix's Bit:Bot . In this post I will show the initial experimentation with an artificial neuron controlling the Bit:Bot to follow the edge of a line (it follows the left-hand side of the line). The neurons (well two separate ones, S1 and S2) are produced using weighted sums - summing the weights x inputs [ right-hand sensor (rs) and left-hand sensor (ls)] plus a bias for each neuron in this case w[0] and w[3]. net=w[0]+w[1]*rs+w[2]*ls net2=w[3]+w[4]*rs+w[5]*ls If weighted sum >=0 then its output 1 otherwise 0 if net>=0: s1=1 else: s1=0 if net2>=0: s2=1 else: ...
Robots and getting computers to work with the physical world is fun; this blog looks at my own personal experimenting and building in this area.