SlideShare une entreprise Scribd logo
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)

Benevolent machine learning sgs
Benevolent machine learning sgsBenevolent machine learning sgs
Benevolent machine learning sgs
 
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...
 

Dernier

ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
ashishpaul799
 
Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
SaadHumayun7
 

Dernier (20)

Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 
Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 

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.