<?xml version="1.0" encoding="UTF-8"?>

<upm-export>
	<title>Enseignement de l&#039;informatique et du numérique au lycée Boissy d&#039;Anglas</title>
	<link>https://icn-isn-boissy.yj.fr/wp</link>
	<description></description>
	<pubDate>Wed May 6 12:50:29 2026 / +0000  GMT</pubDate>
	<generator>Universal Post Manager 1.1.2 [ www.ProfProjects.com ] </generator>
	<language></language>
	
			<item>
			<title>ROBOT Suiveur de ligne</title>
			<link>http://icn-isn-boissy.yj.fr/wp/?p=578</link>
			<pubDate>Wed May 6 12:50:29 2026 / +0000  GMT</pubDate>
			<guid isPermaLink="false">http://icn-isn-boissy.yj.fr/wp/?p=578</guid>
			<content-encoded><![CDATA[<ol>
 	<li><strong>Fonctionnement du capteur de suivi de ligne</strong></li>
</ol>
Le capteur que nous allons utilisé est un capteur de contraste. Il est constitué d'une LED émettrice et d'un photo-transistor.

<u>Le capteur du robot:</u>

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/cap-sui.png"><img class="alignnone wp-image-580 size-medium" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/cap-sui-300x223.png" alt="cap-sui" width="300" height="223" /></a>

La LED émettrice envoie une lumière infrarouge que le sol réfléchit en direction du photo-transistor qui capte ainsi la quantité de lumière en retour.

<!--more-->

<u>Schéma de principe:</u>

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/schema-sui.png"><img class="alignnone wp-image-581 size-medium" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/schema-sui-300x108.png" alt="schema-sui" width="300" height="108" /></a>

Comme les couleurs  foncées réfléchissent moins bien la lumière que les couleurs claires, le capteur peut ainsi définir s'il se trouve au dessus d'une couleur clair (lorsqu'il reçoit beaucoup de lumière), il prend alors la valeur 1, ou s'il se trouve au dessus d'une couleur foncée (lorsqu'il reçoit peu de lumière), il prend alors la valeur 0 (zéro).

Notre robot possède deux capteurs de suivi de ligne à l'avant. Ils sont situés l'un à coté de l'autre, l'un a droite du centre du robot, l'autre à gauche.

mBlock met à disposition du programmeur une instruction qui permet de lire la valeur des deux capteurs en même temps.

Il s'agit de l'instruction « état du suiveur de ligne sur port2 »

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/etat-cap-sui.png"><img class="alignnone wp-image-582 size-full" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/etat-cap-sui.png" alt="etat-cap-sui" width="271" height="62" /></a>

Lorsque les deux capteurs détectent une couleur claire la valeur état suiveur est à 3.

ici valeur envoyée sur afficheur à led avec ce programme<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/mbotproaff.jpg"><img class="alignright wp-image-600 size-medium" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/mbotproaff-300x103.jpg" alt="mbotproaff" width="300" height="103" /></a>

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0063.jpg"><img class="alignleft wp-image-587 size-medium" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0063-300x169.jpg" alt="dsc_0063" width="300" height="169" /></a>

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

ou
<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0064.jpg"><img class="alignleft wp-image-588 size-medium" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0064-300x169.jpg" alt="dsc_0064" width="300" height="169" /></a>

&nbsp;

&nbsp;

&nbsp;

&nbsp;

Lorsque le capteur de droite détecte une couleur claire et le capteur de gauche détecte une couleur foncée la valeur état suiveur est à 1.<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0062.jpg"><img class="alignnone wp-image-586 size-medium" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0062-300x169.jpg" alt="dsc_0062" width="300" height="169" /></a>

Lorsque le capteur de droite détecte une couleur foncée et le capteur de gauche détecte une couleur claire la valeur état suiveur est à 2.

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0061.jpg"><img class="alignnone wp-image-585 size-medium" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0061-300x169.jpg" alt="dsc_0061" width="300" height="169" /></a>

Lorsque les deux capteurs détectent une couleur foncée la valeur état suiveur est à 0.

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0060.jpg"><img class="alignnone wp-image-584 size-medium" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0060-300x169.jpg" alt="dsc_0060" width="300" height="169" /></a>

Que faire quand?

Précise comment tu prévois les actions à entreprendre pour suivre la ligne

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/mbotinst.jpg"><img class="alignright wp-image-601 size-full" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/mbotinst.jpg" alt="mbotinst" width="586" height="409" /></a>

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/90053-1-800x800.jpg">
</a><a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0071.jpg"><img class="wp-image-595 size-medium aligncenter" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0071-e1477730946600-169x300.jpg" alt="dsc_0071" width="169" height="300" /></a>

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0070.jpg"><img class="wp-image-594 size-medium aligncenter" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0070-e1477730970381-169x300.jpg" alt="dsc_0070" width="169" height="300" /></a>

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0072.jpg"><img class="wp-image-596 size-medium aligncenter" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0072-e1477731002143-169x300.jpg" alt="dsc_0072" width="169" height="300" /></a>

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0068.jpg"><img class="wp-image-592 size-medium aligncenter" src="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/DSC_0068-e1477731093223-169x300.jpg" alt="dsc_0068" width="169" height="300" /></a>

Un peu d'ordre description du programme par un algorigramme

voici un document ressources établi par Laurent Proust Lycée Jean Moulin

<a href="http://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2016/10/doc-ressource_algorithmie-version-boissy.pdf">doc-ressource_algorithmie-version-boissy</a>

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;]]></content-encoded>
			<excerpt-encoded><![CDATA[]]></excerpt-encoded>
			<wp-post_id>578</wp-post_id>
			<wp-post_date>2017-01-10 14:45:25</wp-post_date>
			<wp-post_date_gmt>2017-01-10 13:45:25</wp-post_date_gmt>
				</item>
</upm-export>
