<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="en">
  <siteinfo>
    <sitename />
    <dbname>mediawiki_6f</dbname>
    <base>https://project-contubots.tele-lab.cloud/index.php?title=Main_Page</base>
    <generator>MediaWiki 1.31.0</generator>
    <case>first-letter</case>
    <namespaces>
      <namespace key="-2" case="first-letter">Media</namespace>
      <namespace key="-1" case="first-letter">Special</namespace>
      <namespace key="0" case="first-letter" />
      <namespace key="1" case="first-letter">Talk</namespace>
      <namespace key="2" case="first-letter">User</namespace>
      <namespace key="3" case="first-letter">User talk</namespace>
      <namespace key="4" case="first-letter" />
      <namespace key="5" case="first-letter"> talk</namespace>
      <namespace key="6" case="first-letter">File</namespace>
      <namespace key="7" case="first-letter">File talk</namespace>
      <namespace key="8" case="first-letter">MediaWiki</namespace>
      <namespace key="9" case="first-letter">MediaWiki talk</namespace>
      <namespace key="10" case="first-letter">Template</namespace>
      <namespace key="11" case="first-letter">Template talk</namespace>
      <namespace key="12" case="first-letter">Help</namespace>
      <namespace key="13" case="first-letter">Help talk</namespace>
      <namespace key="14" case="first-letter">Category</namespace>
      <namespace key="15" case="first-letter">Category talk</namespace>
    </namespaces>
  </siteinfo>
  <page>
    <title>Main Page</title>
    <ns>0</ns>
    <id>1</id>
    <revision>
      <id>313</id>
      <parentid>312</parentid>
      <timestamp>2021-02-04T08:42:32Z</timestamp>
      <contributor>
        <username>Admin</username>
        <id>1</id>
      </contributor>
      <comment>/* Informazioni e materiale utile */</comment>
      <model>wikitext</model>
      <format>text/x-wiki</format>
      <text xml:space="preserve" bytes="6306">
   ____ ___  _   _ _____ _   _ ____   ___ _____ ____
  / ___/ _ \| \ | |_   _| | | | __ ) / _ \_   _/ ___|
 | |  | | | |  \| | | | | | | |  _ \| | | || | \___ \
 | |__| |_| | |\  | | | | |_| | |_) | |_| || |  ___) |
  \____\___/|_| \_| |_|  \___/|____/ \___/ |_| |____/
                                                                        
               '''CONTUbernio robotics and roBOTS'''

----

= ROBOTS =
== Le 3 leggi della robotica ==

# “Un robot non può recar danno a un essere umano né può permettere che a causa del proprio mancato intervento un essere umano riceva danno”.
# “Un robot deve obbedire agli ordini impartiti dagli esseri umani purché tali ordini non contravvengano alla prima legge”.
# “Un robot deve proteggere la propria esistenza purché questo non contrasti con la prima e la seconda legge”.

[https://it.wikipedia.org/wiki/Isaac_Asimov Isaac Asimov]

Ok ma ...
* cosa è un essere umano? (per un robot!)
* cosa vuol dire &quot;ricevere un ordine&quot;?
* come capire se un ordine provocherà un danno?
* ...

= THYMIO =
== Programmi preimpostati ==

{| class=&quot;wikitable&quot;
|+Programmi preimpostati sui thymio 

! COMPORTAMENTO !! COLORE!! SPIEGAZIONE
|-
! ESPLORATORE
| giallo || evita gli ostacoli
|-
! AMICONE
| verde || segue un amico
|-
! FIFONE
| rosso || cerca di non farsi acchiappare
|-
! CURIOSO
| blu || inseguitore di linea
|-
! OBBEDIENTE
| fucsia || si può controllare con le frecce
|-
! ATTENTO
| azzurro || reagisce ai suoni
|}

# [https://www.youtube.com/watch?v=BwkZ-Df0hdg Découverte du robot éducatif Thymio 2]
# [https://www.thymio.org/it:thymiostarting iniziare con il thymio]

== VPL base ==

=== introduzione ===

Alcuni video sul THYMIO e sulla programmazione  con il VPL (Visual Programming Language)

# [https://www.youtube.com/watch?v=Qc6nL8twWSI Introduction au robot Thymio (1/4) Thymio et ses comportements de base]
# [https://www.youtube.com/watch?v=dA-BW38kl6E Introduction au robot Thymio (2/4) Thymio et ses comportements de base]
# [https://www.youtube.com/watch?v=l2JRdcBNIdY Introduction au robot Thymio (3/4) Thymio et ses comportements de base]
# [https://www.youtube.com/watch?v=IpL5k78kXVI Introduction au robot Thymio (4/4) Thymio et ses comportements de base]

== VPL avanzato ==

# https://www.thymio.org/it:thymiovpl
#

== Inseguitore di linea ==

La traccia deve essere almeno larga 4 cm con alto contrasto rispetto al terreno; meglio è '''nero su bianco'''.
'''Il livello di riconoscimento della traccia può essere calibrato''' quando la modalità 'Investigatore' viene attivata:
'''
* Premere simultaneamente entrambe le '''frecce avanti e indietro con i sensori inferiori sulla traccia, per calibrare il livello del nero'''.
* Premere simultaneamente entrambe le '''frecce destra e sinistra con i sensori inferiori su un'area bianca per calibrare il livello del bianco'''.

== SUMO ==
2 robot su un ring lottano per spingere l'avversario fuori dal ring

* https://www.youtube.com/watch?v=gIYMAymGzdI
* https://www.youtube.com/watch?v=3tguWcKTXQI
* https://www.youtube.com/watch?v=suyPkO0apak

Le regole:
* si programmano i robot
* una volta iniziata la gara non si possono toccare i robot
* vince chi riesce a spingere l'altro fuori dal ring
* si ha un pareggio se entro un certo tempo nessuno dei 2 riesce a spingere l'altro fuori 

Obiettivi nel fare il programma:
# programmare il robot in modo che non esca dal ring
# programmare il proprio robot per spingere il robot avversario fuori dal ring
# programmare il robot per evitare sia spinto fuori dal ring

= Informazioni e materiale utile =
* [[Robotica EXTRAcurricolare]]
* [[Robotica CURRICOLARE]]
* [[Strumenti e spunti]]

= Elettricità ed elettronica =

== pile e generatori ==
=== generatori in serie ===

&lt;math&gt;V=V_1+V_2&lt;/math&gt;

=== generatori in parallelo ===

&lt;math&gt;I=I_1+I_2&lt;/math&gt;

== resistenza e legge di ohm ==
=== resistenze in serie ===

&lt;math&gt;R=R_1+R_2&lt;/math&gt;

=== resistenze in parallelo ===
&lt;math&gt;\frac{1}{R}=\frac{1}{R_1}+\frac{1}{R_2}&lt;/math&gt;

=== partitore di tensione ===

&lt;math&gt;I=I_1=I_2&lt;/math&gt;

&lt;math&gt;V_1=I * R_1&lt;/math&gt;

&lt;math&gt;V_2=I * R_2&lt;/math&gt;

&lt;math&gt;V = I * R_1 +  I * R_2 \ &lt;/math&gt;

&lt;math&gt;I = \frac{V_{in}}{R_1 + R_2}&lt;/math&gt;

&lt;math&gt;V_2 = I * V_{in} = V_{in} * \frac{R_2}{R_1 + R_2} = V_{out} &lt;/math&gt;

= arduino =
== ARDUINO NANO ==

== DRIVER MOTORI ==

= CONTUBOT1 =

== Hardware ==

=== Meccanica ===

# https://www.youtube.com/watch?v=uW8YVcBjPGU

=== Schema dei collegamenti ===

NB 

* controllare '''SEMPRE''' PRIMA DI COLLEGARE LE PILE altrimenti POTREBBE ROMPERSI IL CONTROLLORE
* non utilizzare più di 9V 

&lt;graphviz&gt;
digraph G4 {
rankdir=LR
	subgraph cluster_0 {
		color=green;
rankdir=LR;
		node [style=filled,color=green];
		VIN;
                V5V;
		GNDC;

                D00; 
                D01; 

                D02; 
                D03; 
               
D04; 
D05;                 
D06;                 
D07;                 
D08;                 
D09;                 
D10;                 
D11;
D12;                 

		label = &quot;controller&quot;;
	}

	subgraph cluster_1 {
		color=red;
		node [style=filled,color=red];
		VM;
		VCC;
		GNDD;       
		AIN1;
		AIN2;
		PWMA;
		BIN1;
		BIN2;
		PWMB;
                STBY;
A01;
A02;
B01;
B02;
		label = &quot;driver&quot;;
	}
  

	subgraph cluster_2 {
                P [shape=Msquare];
                N [shape=Msquare];
		color=green;
		node [style=filled];
		label = &quot;battery&quot;;
		color=blue
	}
	subgraph cluster_3 {
                ECHO;
                TRIG;
                VCCU;
                GNDU;
		color=green;
		node [style=filled];
		label = &quot;Ultrasuoni&quot;;
	}


	subgraph cluster_4 {
                M1P;
                M1N;
		color=orange;
		node [style=filled];
		label = &quot;Motore 1&quot;;
	}

	subgraph cluster_5 {
                M2P;
                M2N;
		color=orange;
		node [style=filled];
		label = &quot;Motore 2&quot;;
	}





        P-&gt;VIN;
        N-&gt;GNDC;
        GNDC-&gt;GNDD;
        VIN-&gt;VM;
        V5V-&gt;VCC;

V5V-&gt;VCCU;
GNDC-&gt;GNDU;
D10-&gt;TRIG;
ECHO-&gt;D04;
D08-&gt;AIN1;
D09-&gt;AIN2;
D05-&gt;PWMA;
D12-&gt;BIN1;
D11-&gt;BIN2;
D06-&gt;PWMB;
D07-&gt;STBY;

A01-&gt;M1P;
A02-&gt;M1N;
B01-&gt;M2P;
B02-&gt;M2N;

}
&lt;/graphviz&gt;

=== Tabella riassuntiva ===


'''CONNESSIONI'''

== Software ==

* Programma [[robotExplorerContubot1simple]]

=== Esempi ===
* https://www.youtube.com/watch?v=uW8YVcBjPGU</text>
      <sha1>rupcd4ncpy1g9vcn3h97kyuciv3mbeg</sha1>
    </revision>
  </page>
</mediawiki>
