SlideShare une entreprise Scribd logo
1  sur  14
Neurones and robots
Scott Turner
University of Northampton
Single neuron
Aim

   On the line go forward (output=1)

   Off the line go left (output =0)
int w[] ={-1,1};
 int o=1;
 int s1,res1;
 for(;;){
  if (robbie.checkLight1()==true)
   s1=1;
  else
   s1=0;
  res1=w[1]*s1+w[0];
  if (res1>=0)
   o=1;
  else
   o=0;
  if ((o==1))
   robbie.forward1(10);
  if (o==0)
   robbie.tlturn(10);
   Aim: To develop a line-following robot
    based on the two neurones controlling
    the robot.
   The robot has two light sensors on the
    left and right and aims to follow the
    left-hand side of a thick line. The
    sensor produce a ‘1’ when on the
    sensor is on the line and ‘0’ when off
    the line.
Left Sensor   Right Sensor   Output 1   Output 2

0             0              0          0

0             1              0          1

1             0              1          0

1             1              1          1
Left Sensor   Right Sensor   Output 1   Output 2


0             0              1          0


0             1              0          1


1             0              1          1


1             1              0          1
   Your task is to find the weights to
    make the output 1 and 2 in the table
    by selecting weights and then add the
    weights to the code at the end of the
    document. Remember that output will
    be 1 if the weighted sum is greater
    than or equal to 0, otherwise it is 0.
NEXT STAGE
   Alter the routine to find the weights
    itself.
Alternatives


   Get one robot to follow another.

   Get the robot to avoid obstacles.

Contenu connexe

Plus de Scott Turner

Plus de Scott Turner (20)

You too can analyse social media - well twitter
You too can analyse social media - well twitterYou too can analyse social media - well twitter
You too can analyse social media - well twitter
 
Demystifying Blockchain for businesses
Demystifying Blockchain for businessesDemystifying Blockchain for businesses
Demystifying Blockchain for businesses
 
Benevolent machine learning
Benevolent machine learningBenevolent machine learning
Benevolent machine learning
 
Volunteering, It is good for the students, communities and the University : R...
Volunteering, It is good for the students, communities and the University : R...Volunteering, It is good for the students, communities and the University : R...
Volunteering, It is good for the students, communities and the University : R...
 
Code club talk 18 7 2018 - Robots
Code club talk 18 7 2018 - RobotsCode club talk 18 7 2018 - Robots
Code club talk 18 7 2018 - Robots
 
Games in Teaching Programming: HE Perspective
Games in Teaching Programming: HE PerspectiveGames in Teaching Programming: HE Perspective
Games in Teaching Programming: HE Perspective
 
Robots Talk British Computer Society Northampton_17_4_2018
Robots Talk British Computer Society Northampton_17_4_2018Robots Talk British Computer Society Northampton_17_4_2018
Robots Talk British Computer Society Northampton_17_4_2018
 
Blockchain
BlockchainBlockchain
Blockchain
 
Blinking leds
Blinking ledsBlinking leds
Blinking leds
 
The answer's not on the screen
The answer's not on the screenThe answer's not on the screen
The answer's not on the screen
 
Experience of using Spreadsheets as a bridge in the understanding of AI techn...
Experience of using Spreadsheets as a bridge in the understanding of AI techn...Experience of using Spreadsheets as a bridge in the understanding of AI techn...
Experience of using Spreadsheets as a bridge in the understanding of AI techn...
 
Pyconuk16 junkbots
Pyconuk16   junkbotsPyconuk16   junkbots
Pyconuk16 junkbots
 
Social Robots in Education
Social Robots in EducationSocial Robots in Education
Social Robots in Education
 
Showcase: Curation Software in Higher Education
Showcase: Curation Software in Higher EducationShowcase: Curation Software in Higher Education
Showcase: Curation Software in Higher Education
 
Social robots meet red and smurf
Social robots  meet red and smurfSocial robots  meet red and smurf
Social robots meet red and smurf
 
Enhancing computing student employability skills through partnership working ...
Enhancing computing student employability skills through partnership working ...Enhancing computing student employability skills through partnership working ...
Enhancing computing student employability skills through partnership working ...
 
Study of Utilising SCM – MIMO Channel Model in V2V Communication
Study of Utilising SCM – MIMO Channel Model in V2V CommunicationStudy of Utilising SCM – MIMO Channel Model in V2V Communication
Study of Utilising SCM – MIMO Channel Model in V2V Communication
 
Evaluate and Analysis of MAC Protocols for VANET
Evaluate and Analysis of MAC Protocols for VANETEvaluate and Analysis of MAC Protocols for VANET
Evaluate and Analysis of MAC Protocols for VANET
 
Enhancing student employability skills through partnership working in STEM ou...
Enhancing student employability skills through partnership working in STEM ou...Enhancing student employability skills through partnership working in STEM ou...
Enhancing student employability skills through partnership working in STEM ou...
 
Visualising the field -virtual reality and mobile devices with environmental ...
Visualising the field -virtual reality and mobile devices with environmental ...Visualising the field -virtual reality and mobile devices with environmental ...
Visualising the field -virtual reality and mobile devices with environmental ...
 

Dernier

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Dernier (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 

Derby presentation

  • 1. Neurones and robots Scott Turner University of Northampton
  • 2. Single neuron Aim  On the line go forward (output=1)  Off the line go left (output =0)
  • 3. int w[] ={-1,1}; int o=1; int s1,res1; for(;;){ if (robbie.checkLight1()==true) s1=1; else s1=0; res1=w[1]*s1+w[0]; if (res1>=0) o=1; else o=0; if ((o==1)) robbie.forward1(10); if (o==0) robbie.tlturn(10);
  • 4. Aim: To develop a line-following robot based on the two neurones controlling the robot.
  • 5. The robot has two light sensors on the left and right and aims to follow the left-hand side of a thick line. The sensor produce a ‘1’ when on the sensor is on the line and ‘0’ when off the line.
  • 6. Left Sensor Right Sensor Output 1 Output 2 0 0 0 0 0 1 0 1 1 0 1 0 1 1 1 1
  • 7. Left Sensor Right Sensor Output 1 Output 2 0 0 1 0 0 1 0 1 1 0 1 1 1 1 0 1
  • 8.
  • 9.
  • 10. Your task is to find the weights to make the output 1 and 2 in the table by selecting weights and then add the weights to the code at the end of the document. Remember that output will be 1 if the weighted sum is greater than or equal to 0, otherwise it is 0.
  • 12. Alter the routine to find the weights itself.
  • 13.
  • 14. Alternatives  Get one robot to follow another.  Get the robot to avoid obstacles.