{"id":28293,"date":"2022-07-14T11:08:31","date_gmt":"2022-07-14T09:08:31","guid":{"rendered":"https:\/\/fanbotica-redesign.local\/?post_type=jetpack-portfolio&#038;p=28293"},"modified":"2023-09-25T09:11:17","modified_gmt":"2023-09-25T07:11:17","slug":"il-robot-domotico-personale-pedro-autonomo-e-o-rc","status":"publish","type":"jetpack-portfolio","link":"https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/","title":{"rendered":"The Personal Home Robot Pedro, Autonomous and\/or RC"},"content":{"rendered":"<div class=\"fanbotica-emphasis-box\">\n<h3>PURPOSE OF THIS GUIDE:<\/h3>\n<ul>\n<li class=\"translation-block\">To build a <em><strong>Personal Home-Automation Robot<\/strong><\/em> <strong><em>Multi-role<\/em><\/strong>, which we will refer to for brevity as \"<em><strong>PEDRO\" (PErsonal-Domotic-RObot)<\/strong><\/em>.<br>\nThis robot will be autonomous and\/or radio-controlled, and will be based on <strong>Arduino Mega 2560 R3<\/strong> and <strong>Espressif ESP8266.<br>\n<\/strong>PEDRO will be equipped with <strong>Mecanum wheels<\/strong> and connected via home Wi-Fi and the <strong>MQTT<\/strong> protocol to <strong>Home Assistant<\/strong>, the most widely used open-source home-automation hub in the world. The latter will be configured so that it can also autonomously send commands to the robot, through integration with <strong>the Amazon Alexa and Google Home voice assistants.<\/strong><br>\nFinally, this guide will show you how to include your own custom commands within scripts or automations that can also be triggered by voice commands, and will explain how to graphically display the robot's telemetry data.<\/li>\n<\/ul>\n<h3 class=\"translation-block\">DIFFICULTY LEVEL: <span style=\"color: #ff9900\">medium-high<\/span><\/h3>\n<ul>\n<li>Even though this robotics project's difficulty level is medium-high, it calls for a range of hands-on skills and a certain amount of equipment. After all, we're building an autonomous robot with advanced features starting completely from scratch \u2014 that is, from its basic hardware and software components. In other words, we'll only buy some of them from our shop or elsewhere; the rest we'll need to make ourselves with the right tools.<\/li>\n<\/ul>\n<p>Building the home-automation robot requires:<\/p>\n<ul>\n<li><strong>Basic skills in cutting, drilling and cold-gluing plywood sheets, <\/strong><\/li>\n<li><strong>Experience cutting, heat-bending and drilling acrylic (plexiglass) sheets,<\/strong><\/li>\n<li><strong>Knowing how to use a soldering iron, needed to solder the power cables to the XT60 connectors and switches,<\/strong><\/li>\n<li><strong>Optionally, some parts can be 3D printed, such as the omnidirectional Mecanum wheel components or the small enclosure for the nRF24L01+ module.<\/strong><\/li>\n<\/ul>\n<blockquote><p><em><strong>As always when working with electronic components, we strongly recommend reviewing the technical diagrams supplied with the project several times, to fully understand how to make the connections between the various elements BEFORE connecting the devices to the power source.<\/strong><\/em><\/p><\/blockquote>\n<p>Basic knowledge of the following is also required:<\/p>\n<ul>\n<li><strong>Arduino<\/strong>, il microcontrollore pi\u00f9 diffuso al mondo, e del suo <em>IDE<\/em> o ambiente di sviluppo,<\/li>\n<li><strong>Raspberry Pi4\/Pi3B+<\/strong>, un computer a scheda singola sviluppato nel Regno Unito dalla Raspberry Pi Foundation,<\/li>\n<li>Definizione di un &#8220;<em>Hub domotico&#8221;<\/em> come <strong>Home Assistant (Core 2022.5.5) <\/strong>utilizzato in questo progetto,<\/li>\n<li>Impostazioni avanzate del<strong> firmware del proprio router Wi-Fi<\/strong>.<\/li>\n<li><strong>Che cos&#8217;\u00e8 una batteria ai Polimeri di Litio (LiPo)<\/strong>, come si maneggia, come si ricarica e quali precauzioni adottare nell&#8217;uso.<\/li>\n<\/ul>\n<h3>TOPICS COVERED:<\/h3>\n<ul>\n<li><strong>Che cos&#8217;\u00e8 e come funziona il protocollo MQTT<\/strong> tra i protocolli pi\u00f9 diffusi nei sistemi domotici e\/o robotici come in questo caso.<\/li>\n<li><strong>Nozioni di base sull&#8217;ambiente di sviluppo di Arduino<\/strong> (IDE Arduino) nonch\u00e8 su uno dei suoi kernel alternativi pi\u00f9 diffusi, ovvero <strong>FreeRTOS<\/strong>,<\/li>\n<li><strong>Installazione e configurazione hardware e software del microcontrollore Wemos Mega 2560 R3 e del chip Wifi Espressif ESP8266<\/strong> integrato,<\/li>\n<li><strong>Preconfigurazione ed installazione dei 4 driver TB6600<\/strong> per motori Passo Passo (driver stepper motor),<\/li>\n<li><strong>Setting up a home-automation hub such as Home Assistant on an SD card and Raspberry Pi 4 \/ Pi 3B+,<\/strong><\/li>\n<li><strong>Attivazione e configurazione dei Componenti aggiuntivi di Home Assistant,<\/strong> ovvero: <em>Duck DNS, File editor, Grafana, Home Assistant Google Drive Backup, InfluxDB, Log Viewer, Mosquitto broker, Samba share, SSH &amp; Web Terminal, HACS, Alexa Media Player.<\/em><\/li>\n<li><strong>Methods and procedures for charging and balancing the cells of a Lithium Polymer battery.<\/strong><\/li>\n<\/ul>\n<h3>RAW MATERIALS AND TOOLS USED:<\/h3>\n<ul>\n<li><strong>Plexiglass, 600x600x4mm (2 sheets),<\/strong><\/li>\n<li><strong>Plywood, 500x500x8mm (2 sheets),<\/strong><\/li>\n<li><strong>Alluminio 50x50x200x2mm (<\/strong><strong>2 profilati a L),<\/strong><\/li>\n<li><strong>Electrical terminal crimping tool,<\/strong><\/li>\n<li><strong>Scissors or wire-stripping pliers,<\/strong><\/li>\n<li><strong>Wire cutters,<\/strong><\/li>\n<li><strong>Threaded rivet nut tool, with M3, M4, M5, M6, M8, M10, M12 rivet nuts for 2-3mm thicknesses,<\/strong><\/li>\n<li><strong>Jigsaw for cutting the plywood panels,<\/strong><\/li>\n<li><strong>Cutter or electric rotary tool for cutting the plexiglass,<\/strong><\/li>\n<li><strong>Utensile per piegare a caldo il plexiglass<\/strong> (istruzioni per realizzarlo qui),<\/li>\n<li><strong>Trapano-avvitatore elettrico<\/strong>, consigliato trapano a colonna per alcune lavorazioni,<\/li>\n<li><strong>Stampante 3D e 1 rotolo da 1kg di PETG<\/strong> se intendi realizzare da te alcune componenti (opzionale).<\/li>\n<\/ul>\n<h3>HARDWARE COMPONENTS USED:<\/h3>\n<ul>\n<li><strong>Wemos Mega 2560 R3 con ESP8266 integrato, <\/strong>corredato da<strong> Keyestudio Sensor Shield V1 for Arduino Mega,<\/strong><\/li>\n<li><strong>Modulo integrato Bluetooth HC-05<\/strong> con convertitore seriale,<\/li>\n<li><strong>Modulo nRF24L01+<\/strong> con convertitore seriale, <strong>antenna WiFi 2,4GHz Long Range<\/strong> e <strong>modulo di potenza<\/strong> addizionale,<\/li>\n<li><strong>2.4GHz 3dBi Wi-Fi antenna, RP-SMA 12cm, U.FL IPX IPEX to RP-SMA, for ESP8266,<\/strong><\/li>\n<li><strong>IRF520 MOSFET driver module, 0-24V 5A PWM output, for Arduino,<\/strong><\/li>\n<li><strong>Motor Drive Package TB6600 <\/strong>(4 Stepper Driver)<strong>,<\/strong><\/li>\n<li><strong>Nema17 17HS8401 stepper motor, 0.55N.m (4 motors),<\/strong><\/li>\n<li><strong>Ruote tipo Mecanum Wheels da 80mm di diametro<\/strong> autoprodotte (qui istruzioni e files 3D stampabili) o acquistate a parte nel nostro Shop (4 Ruote),<\/li>\n<li><strong>5000mAh 3S 11.1V 30-45C LiPo batteries (2 LiPo batteries),<\/strong><\/li>\n<li><strong>UBEC, 8A max 15A,<\/strong><\/li>\n<li><strong>XT-60 male connector,<\/strong><\/li>\n<li><strong>Terminali elettrici<\/strong> da crimpare ai cavi per una connessione stabile e sicura alle morsettiere degli stepper driver,<\/li>\n<li><strong>Interruttore switch ON-OFF<\/strong>,<\/li>\n<li><strong>Portafusibile<\/strong> e <strong>fusibile per automotive da 15A<\/strong>,<\/li>\n<li><strong>1m x Cavi 14 AWG Rosso e Nero<\/strong> e <strong>1m x Cavi 18 AWG Giallo e Nero<\/strong> per le connessioni di alimentazione,<\/li>\n<li><strong>4X20 Cavi Dupont F\/F e F\/M<\/strong>,<\/li>\n<li><strong>1 LED RGB a 4 poli con Anodo Comune<\/strong>,<\/li>\n<li><strong>Set of hex-socket screws, washers and nuts in various sizes: M2, M3, M4, M5, M6, M8, M12,<\/strong><\/li>\n<\/ul>\n<h3>SOFTWARE COMPONENTS USED:<\/h3>\n<ul>\n<li>Sistema operativo <strong>Windows 11<\/strong> o analoghe distribuzioni,<\/li>\n<li><b>IDE Arduino 1.8.16\u00a0<\/b>con le relative librerie necessarie al progetto: <strong>Arduino FreeRTOS, ArduinoJson 5.13, Arduino WiFi Link Library (Fork Jandrassy),\u00a0PubSubClient, OneWire, AccelStepper, SPI, RF24, Adafruit PWM Servo Driver Library,\u00a0<\/strong><\/li>\n<li><strong>Home Assistant,<\/strong><\/li>\n<li><strong>I componenti Home Assistant \u201cAlexa Media Player\u201c e <\/strong><strong>\u201cNotification\u201c,<\/strong> opzionali,<\/li>\n<\/ul>\n<h3>PREREQUISITES:<\/h3>\n<ul>\n<li><strong>Un PC Workstation o notebook con Windows 10\/11<\/strong> installato e funzionante,<\/li>\n<li><strong>Una rete Wi-Fi con Router<\/strong> accessibile via connessione LAN o Wi-Fi,<\/li>\n<li><strong>Uno smartphone<\/strong> di ultima generazione con sistema Android, Bluetooth e Wi-Fi per controllo robot e telemetria (opzionale),<\/li>\n<li><strong>Infine un saldatore<\/strong> o stazione saldante 2in1 con pistola ad aria calda per guaine termorestringenti,<\/li>\n<\/ul>\n<h3>PHYSICAL DEVICES USED:<\/h3>\n<ul>\n<li><strong>PC con Sistema Operativo Windows 10\/11<\/strong> per la programmazione e la compilazione dei Firmware Arduino Mega 2560, per l&#8217;installazione e la configurazione dell&#8217;Hub Domotico Home Assistant,<\/li>\n<li><strong>Raspberry Pi4\/Pi3B+ con MicroSD da 32\/64 Gb e relativo adattatore USB, <\/strong>sul quale girer\u00e0 il sistema operativo di Home Assistant corredato di tutti i componenti software aggiuntivi,<\/li>\n<\/ul>\n<h3>ACCESSORIES AND EXPANSIONS:<\/h3>\n<ul>\n<li><strong>Amazon Echo<\/strong> (qualsiasi modello o qualsiasi modello di smart speaker che monti Amazon Alexa come assistente integrato), (opzionale),<\/li>\n<li><strong>Radiocomando Fanbotica LongCom X1<\/strong> basato su <strong>Arduino Nano<\/strong> e modulo ricetrasmettitore <strong>nRF24L01+<\/strong> PA LNA RF con Antenna 2.4 GHz 1100m e Regolator adattatore 3.3V, qui il tutorial per auto-costruirtelo o il link per ordinarne il kit disponibile anche pre-assemblato, (opzionale),<\/li>\n<li><strong>Braccio Robotico con 6 gradi di libert\u00e0<\/strong>, stampato in 3D,<\/li>\n<li><strong>Torretta LIDAR<\/strong>,<\/li>\n<li><strong>SLAM System<\/strong>,<\/li>\n<li><strong>Pan-Tilt con cannoncino laser e dissuasore<\/strong>,<\/li>\n<\/ul>\n<\/div>\n<h3 style=\"text-align: center;\">GUIDE INTENDED FOR:<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-28345 size-medium aligncenter\" title=\"Windows 11\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-300x55.png\" alt=\"Windows_11_logo\" width=\"300\" height=\"55\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-300x55.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-416x77.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-768x141.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-1024x188.png 1024w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-1536x283.png 1536w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-2048x377.png 2048w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-610x112.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-1080x199.png 1080w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-1280x236.png 1280w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-980x180.png 980w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-480x88.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/Windows_11_logo.svg_-600x110.png 600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<div class=\"fanbotica-emphasis-box\">\n<h3>NOTES AND DISCLAIMER<\/h3>\n<ul>\n<li>Any modification you carry out yourself is done entirely at your own risk and responsibility (the contents of this page are for educational purposes only);<\/li>\n<li>Furthermore, any self-made modification to a device voids its warranty, approvals and quality certifications.<\/li>\n<\/ul>\n<\/div>\n<p><em>Revisione guida<\/em>: 1.0<\/p>\n<h2>Abstract<\/h2>\n<h3>Definition of home automation<\/h3>\n<p>La <strong><em>domotica<\/em><\/strong>, derivante dall&#8217;unione del termine <em>domus<\/em>, che in latino significa &#8220;casa&#8221;, e del suffisso greco <em>ticos<\/em>, che indica le discipline di applicazione, \u00e8 la scienza interdisciplinare che si occupa dello studio delle tecnologie adatte a migliorare la qualit\u00e0 della vita nella casa e pi\u00f9 in generale negli ambienti abitati dall&#8217;uomo.<\/p>\n<p>In its technical, physical application, this discipline refers to any system that, through one or more pieces of software, manages and controls (by sending commands and receiving telemetry responses) all the \"home-automation objects\" \u2014 also called \"entities\" \u2014 connected to it over a network, which in turn respond to those commands because they're equipped with actuators, sensors and onboard firmware.<\/p>\n<p>Common examples include roller shutters, the garage door, the water heater's electronic thermostat, the lights in various rooms, the TV, the stereo, and so on.<\/p>\n<h3>Definition of robotics<\/h3>\n<p>La <em><strong>robotica<\/strong><\/em> \u00e8 la disciplina dell&#8217;ingegneria che studia e sviluppa metodi che permettano a un <em>robot<\/em> di eseguire dei compiti specifici riproducendo in modo automatico il lavoro umano.<\/p>\n<h3>We asked ourselves whether it was possible to build a home-automation robot at home!<\/h3>\n<p>Ci siamo pi\u00f9 volte chiesti se allo stato di sviluppo attuale della tecnologia delle due discipline, ovvero con la diffusione di software sempre pi\u00f9 stabili e condivisi sia per la domotica che per la robotica, come ad esempio del celebre Hub Domotico <strong><em>Home Assistant<\/em><\/strong>, e dell&#8217;ambiente di sviluppo o <strong><em>IDE Arduino,<\/em><\/strong> non fosse possibile realizzare un <strong><em>robot domotico<\/em><\/strong>, partendo da ci\u00f2 che \u00e8 largamente a disposizione dei maker di tutto il mondo, ovvero le piattaforme di prototipazione rapida come lo stesso <strong><em>Arduino<\/em><\/strong> e i chip pensati per l&#8217;<em><strong>IOT<\/strong><\/em> come l&#8217;<strong><em>ESP8266<\/em><\/strong> della <em>Espressif Systems, <\/em>caratterizzati da Wi-Fi integrato a basso costo, supporto completo al protocollo TCP\/IP e funzionalit\u00e0 da microcontrollore.<\/p>\n<p>So, since we managed to build both the home-automation robot and this tutorial, the answer can only be: \"Yes, it's possible!\"<\/p>\n<h3>A compendium for building a true home-automation robot<\/h3>\n<p>Sicch\u00e8 questo vero e proprio compendio sulla interazione tra robotica e domotica guider\u00e0 il lettore passo dopo passo nella realizzazione di un <em>robot domotico<\/em> del tutto autonomo, ma che sar\u00e0 possibile radiocomandare da uno smartphone via <em>Bluetooth<\/em>, da una <em>radio RC<\/em>, o da una apposita interfaccia di <em>Home Assistant<\/em>.<\/p>\n<blockquote><p><em>\"But what exactly would a robot integrated into our home's automation software be good for?\"<\/em><\/p><\/blockquote>\n<p>Direi che la risposta pi\u00f9 giusta dovrebbe essere: &#8220;A tutto ci\u00f2 che una piattaforma robotica semovente potrebbe servire in una casa e nei suoi ambienti circostanti&#8221;, ma cos\u00ec avremmo detto tutto e niente, dunque per scendere ancor di pi\u00f9 nel dettaglio mi spingo a citare soltanto alcuni esempi di utilizzo pi\u00f9 comuni che vanno dall&#8217;<em>agente di sorveglianza H24, al rilevatore di calore, luce, gas, polveri, radioattivit\u00e0, dalle mansioni svolte da un cameriere a quelle di receptionist e portavivande, dalla guida e assistenza agli anziani al ruolo di spazzino in giro per la casa o di tagliaerbe, <\/em>insomma ci siamo capiti gli utilizzi sono limitati soltanto dalla tua fantasia e dalla dotazione hardware e software!<\/p>\n<h3>You'll be able to control your PEDRO home-automation robot even from the other side of the world.<\/h3>\n<p>Among the countless features built into your home-automation robot you'll also find one that lets you know in real time what PEDRO is doing, and \u2014 more importantly \u2014 if you've enabled the surveillance features with a dedicated webcam system, you'll be able to know what's happening in your home even remotely, right from your smartphone, through the Home Assistant app.<\/p>\n<h2>Let's get started<\/h2>\n<ol>\n<li><a href=\"#operazioni_preliminari\">Preliminary steps<\/a>\n<ol>\n<li><a href=\"#preparazione_ambiente_di_lavoro\">Preparing the work area<\/a>\n<ol>\n<li><a href=\"#sicurezza_impianto_elettrico\">Mandatory safety requirements for the electrical setup<\/a><\/li>\n<li><a href=\"#dotazione_di_sicurezza_individuale\">Personal safety equipment<\/a><\/li>\n<li><a href=\"#componenti_e_strumenti_di_lavoro_necessari\">Get all the necessary components and tools<\/a><\/li>\n<\/ol>\n<\/li>\n<li><a href=\"#elenco_componenti_hardware_del_robot_domotico\">List of the home-automation robot's hardware components<\/a><\/li>\n<li><a href=\"#plexiglass_multistrato_profilati\">Sourcing or buying the plexiglass sheets, plywood sheets and aluminum profiles<\/a><\/li>\n<li><a href=\"#Stampiamo_le_guide_di_taglio_in_formato_A2_Scala_1:1\">Printing the cutting guides in A2 format, 1:1 scale<\/a><\/li>\n<li><a href=\"#Installiamo_e_configuriamo_tutto_il_software_necessario\">Installing and configuring all the necessary software<\/a>\n<ol>\n<li><a href=\"#scarichiamo_IDE_Arduino_dal_sito_ufficiale\">Downloading the Arduino IDE from the official site<\/a><\/li>\n<li><a href=\"#installiamo_ide_arduino\">Installing and\/or configuring the Arduino IDE on our PC<\/a><\/li>\n<li><a href=\"#Installazione_delle_librerie_Arduino_necessarie\">Installing the required Arduino libraries<\/a><\/li>\n<li><a href=\"#differenze_tra_Wemos_Mega_2560_e_Arduino_Mega_2560\">Looking at the differences between our Wemos Mega 2560 board and the Arduino Mega 2560<\/a><\/li>\n<li><a href=\"#porte_di_comunicazione_della_Wemos_Mega_2560\">The Wemos Mega 2560's communication ports<\/a><\/li>\n<li><a href=\"#Installazione_del_driver_CH340G\">Installing the CH340G driver<\/a><\/li>\n<li><a href=\"#note_wifi_link_fork_jandrassy\">Notes on the Arduino WiFi Link Library (Jandrassy fork)<\/a><\/li>\n<li><a href=\"#installazione_wifi_link_fork_jandrassy\">Installing the Arduino WiFi Link Library (Jandrassy fork)<\/a><\/li>\n<li><a href=\"#Selezione_configurazione_e_verifica_della_scheda_ESP8266_generico\">Selecting, configuring and verifying the generic ESP8266 board<\/a><\/li>\n<li><a href=\"#caricamento_del_firmware_ArduinoFirmwareEsp_su_Esp8266\">Uploading the ArduinoFirmwareEsp.ino firmware to the ESP8266<\/a><\/li>\n<li><a href=\"#installiamo_home_assistant\">Now installing and\/or configuring Home Assistant on the Raspberry Pi<\/a><\/li>\n<li><a href=\"#Installiamo_e_configuriamo_i_Componenti_aggiuntivi_di_Home_Assistant\">Installing and configuring Home Assistant's add-ons<\/a><\/li>\n<li><a href=\"#installiamo_alexa_e_configuriamo_echo\">Downloading and installing Amazon Alexa on our smartphone and PC and setting up our Amazon Echo device(s) (optional)<\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li><a href=\"#Realizziamo_tutte_le_parti_in_multistrato_dello_chassis_di_Pedro\">Making all the plywood parts of Pedro's chassis<\/a><\/li>\n<li><a href=\"#Realizziamo_la_scocca_di_Pedro_sagomando_e_piegando_la_lastra_di_Plexiglass\">Making Pedro's body shell by shaping and bending the plexiglass sheet<\/a><\/li>\n<li><a href=\"#Installiamo_tutta_la_componentistica_Hardware_nello_chassis_di_Pedro\">Installing all the hardware into Pedro's chassis<\/a><\/li>\n<li><a href=\"#Realizziamo_il_cablaggio_di_Pedro\">Doing the wiring and double-checking every connection several times<\/a><\/li>\n<li><a href=\"#Installiamo_il_firmware_FREERTOS_Arduino_sulla_Wemos_2560\">Installing the Arduino FreeRTOS firmware on the Wemos 2560<\/a><\/li>\n<li><a href=\"#Realizziamo_il_Long_Range_Controller\">Building the Long Range Controller<\/a><\/li>\n<li><a href=\"#Eseguiamo_i_test_di_controllo\">Running the control tests<\/a><\/li>\n<\/ol>\n<h3><a id=\"operazioni_preliminari\"><\/a>Preliminary steps<\/h3>\n<p>Before actually getting on with building our Pedro home-automation robot, we need to spend all the time necessary making our work area safe, so as to bring the risk from what we're about to do as close to zero as possible.<\/p>\n<p>The tools we use should be good quality \u2014 don't skimp on your toolkit, especially since you'll certainly need it for future projects too.<\/p>\n<blockquote><p><strong><em>Safety first! Not wearing protective gear, working in an unsuitable area, or having tools that break easily or, worse, that could injure us or others, is never a good idea!<\/em><\/strong><\/p><\/blockquote>\n<h4><a id=\"preparazione_ambiente_di_lavoro\"><\/a>Preparing the work area<\/h4>\n<p>Innanzitutto <strong>scegliamo l&#8217;area dove opereremo facendo in modo che sia ben illuminata, asciutta, areata e sgombra da oggetti che possano intralciare i nostri movimenti<\/strong>, al netto degli strumenti che utilizzeremo per lavorare.<\/p>\n<p>For example, a hand drill or drill press, a chop saw, and so on, should be arranged on the work surfaces so as to leave enough operating space all around, laid out as sensibly as possible according to the sequence of the various work stages.<\/p>\n<p><strong>Keep the work area tidy and clean before, during and after every work session.<\/strong><\/p>\n<p>So don't leave wood or metal chips or scraps on the work surfaces during cutting or drilling, since they could easily be thrown at us or at anyone nearby by the rotation or airflow generated by the tools themselves.<\/p>\n<blockquote><p><strong><em>For this reason, we strongly recommend using a powerful wet\/dry shop vacuum with a sturdy, durable stainless-steel collection tank.<\/em><\/strong><\/p><\/blockquote>\n<h5><a id=\"sicurezza_impianto_elettrico\"><\/a>Mandatory safety requirements for the electrical setup<\/h5>\n<p>Dal momento che si operer\u00e0 con strumentazione elettrica<strong> \u00e8 assolutamente necessario che le prese di corrente, gli adattatori, ed eventuali prolunghe siano del tipo appropriato.<\/strong><\/p>\n<p>Each of these must be able to handle the current load needed to run the tools, and be rated with a comfortable margin against the heat generated in the wires by that current.<\/p>\n<p><strong><em>Finally, the entire circuit used must be properly grounded.<\/em><\/strong><\/p>\n<h5><a id=\"dotazione_di_sicurezza_individuale\"><\/a>Personal safety equipment<\/h5>\n<p>As with any project involving cutting or rotary tools, it's essential to have:<\/p>\n<ul>\n<li>Work safety glasses with side shields,<\/li>\n<li>Cut-resistant work gloves,<\/li>\n<li>Noise-cancelling work earmuffs,<\/li>\n<li>Work coveralls are also recommended.<\/li>\n<\/ul>\n<p>For electronic connections, to avoid damaging the electronic parts:<\/p>\n<ul>\n<li>Anti-static wrist strap,<\/li>\n<li>Anti-static gloves.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-28532 size-full aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/sicurezza_area_di_lavoro.fw_.png\" alt=\"sicurezza_area_di_lavoro\" width=\"722\" height=\"100\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/sicurezza_area_di_lavoro.fw_.png 722w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/sicurezza_area_di_lavoro.fw_-416x58.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/sicurezza_area_di_lavoro.fw_-300x42.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/sicurezza_area_di_lavoro.fw_-610x84.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/sicurezza_area_di_lavoro.fw_-480x66.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/sicurezza_area_di_lavoro.fw_-600x83.png 600w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<h5><a id=\"componenti_e_strumenti_di_lavoro_necessari\"><\/a>Getting all the tools needed to build the home-automation robot<\/h5>\n<p>All right, it's time to get everything we need to build our home-automation robot!<\/p>\n<p>Pertanto cominciamo dagli strumenti di lavoro che ci serviranno, se non li avete potete trovarli forniti in kit nel <em><strong>PEDRO Tools Workit<\/strong><\/em> o in parti sciolte nel nostro shop, pagando un solo costo di spedizione, o anche acquistarli altrove:<\/p>\n<ol>\n<li>An electrical terminal crimping tool with a good supply of terminals,<\/li>\n<li>Wire stripper,<\/li>\n<li>Flat-nose wire cutters,<\/li>\n<li>Threaded rivet nut tool, with M3, M4, M5, M6, M8, M10, M12 rivet nuts for 2-3mm thicknesses,<\/li>\n<li>Jigsaw for cutting the plywood panels,<\/li>\n<li>Cutter or electric rotary tool for cutting the plexiglass,<\/li>\n<li>Plexiglass hot-bending tool, either purchased or self-made (instructions on how to make one here),<\/li>\n<li>Electric drill\/driver \u2014 a drill press is recommended for some steps,<\/li>\n<li>3D printer and a 1kg roll of PETG if you plan to make some of the parts yourself (optional).<\/li>\n<\/ol>\n<h5><a id=\"elenco_componenti_hardware_del_robot_domotico\"><\/a>Here's the list of the home-automation robot's hardware components<\/h5>\n<p>Per i componenti hardware necessari al progetto vale lo stesso discorso dei tools, li puoi acquistare gi\u00e0 raggruppati nei <strong><em>PEDRO Component kit<\/em><\/strong> o singolarmente, risparmiando in ambedue i casi sul costo di spedizione, oppure acquistarli altrove:<\/p>\n<ul>\n<li><strong>Wemos Mega 2560 R3 con ESP8266 integrato, <\/strong>corredato da<strong> Keyestudio Sensor Shield V1 for Arduino Mega,<\/strong><\/li>\n<li><strong>Modulo integrato Bluetooth HC-05<\/strong> con convertitore seriale,<\/li>\n<li><strong>Modulo nRF24L01+<\/strong> con convertitore seriale, <strong>antenna WiFi 2,4GHz Long Range<\/strong> e <strong>modulo di potenza<\/strong> addizionale,<\/li>\n<li><strong>2.4GHz 3dBi Wi-Fi antenna, RP-SMA 12cm, U.FL IPX IPEX to RP-SMA, for ESP8266,<\/strong><\/li>\n<li><strong>IRF520 MOSFET driver module, 0-24V 5A PWM output, for Arduino,<\/strong><\/li>\n<li><strong>Motor Drive Package TB6600 <\/strong>(4 Stepper Driver)<strong>,<\/strong><\/li>\n<li><strong>Nema17 17HS8401 stepper motor, 0.55N.m (4 motors),<\/strong><\/li>\n<li><strong>Ruote tipo Mecanum Wheels da 80mm di diametro<\/strong> autoprodotte (qui istruzioni e files 3D stampabili) o acquistate a parte nel nostro Shop (4 Ruote),<\/li>\n<li><strong>5000mAh 3S 11.1V 30-45C LiPo batteries (2 LiPo batteries),<\/strong><\/li>\n<li><strong>UBEC, 8A max 15A,<\/strong><\/li>\n<li><strong>XT-60 male connector,<\/strong><\/li>\n<li><strong>Terminali elettrici<\/strong> da crimpare ai cavi per una connessione stabile e sicura alle morsettiere degli stepper driver,<\/li>\n<li><strong>Interruttore switch ON-OFF<\/strong>,<\/li>\n<li><strong>Portafusibile<\/strong> e <strong>fusibile per automotive da 15A<\/strong>,<\/li>\n<li><strong>1m x Cavi 14 AWG Rosso e Nero<\/strong> e <strong>1m x Cavi 18 AWG Giallo e Nero<\/strong> per le connessioni di alimentazione,<\/li>\n<li><strong>4X20 Cavi Dupont F\/F e F\/M<\/strong>,<\/li>\n<li><strong>1 LED RGB a 4 poli con Anodo Comune<\/strong>,<\/li>\n<li><strong>Set of hex-socket screws, washers and nuts in various sizes: M2, M3, M4, M5, M6, M8, M12,<\/strong><\/li>\n<\/ul>\n<h5><a id=\"plexiglass_multistrato_profilati\"><\/a>Sourcing or buying the plexiglass sheets, plywood sheets and aluminum profiles<\/h5>\n<p>Procuriamoci dal nostro negozio di bricolage preferito <em>2 lastre di Plexiglass delle dimensioni di 600x600x4mm<\/em>, ci occorreranno pi\u00f9 avanti per realizzare la scocca del nostro robot, ed il coperchio del Long Range Controller.<br \/>\n<em>2 lastre di multistrato in legno da 500x500x8mm con le quali realizzeremo le basi, <\/em>ed infine <em>2 Profilati di Alluminio ad L delle dimensioni: 50x50x200x2mm<\/em>, che utilizzeremo per fissare joystick e top box del controller.<\/p>\n<h5><a id=\"Stampiamo_le_guide_di_taglio_in_formato_A2_Scala_1:1\"><\/a>Printing the cutting guides in A2 format, 1:1 scale<\/h5>\n<p>Download the PDF files with PEDRO's drawings showing the cutting lines and the crosshairs marking where to drill the mounting holes for the electronic boards, then go to a print shop to have the files printed in A2 format at 1:1 scale \u2014 using these templates will make cutting and drilling the plywood elements much more precise and faster.<\/p>\n<blockquote><p>Preferably have the two cutting templates printed on removable adhesive paper \u2014 it'll be much easier to keep the templates in place while cutting and drilling.<\/p><\/blockquote>\n<p style=\"text-align: center;\"><a class=\"button\" href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_BOTTOM.pdf\" target=\"_blank\" rel=\"noopener\">Bottom Cutting Scheme<\/a><\/p>\n<p style=\"text-align: center;\"><a class=\"button\" href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_LEFT_SIDE.pdf\" target=\"_blank\" rel=\"noopener\">Side Cutting Scheme<\/a><\/p>\n<h5><a id=\"Installiamo_e_configuriamo_tutto_il_software_necessario\"><\/a>Installing and configuring all the necessary software<\/h5>\n<p>Next we'll install and configure, on our PC, the software development environment (Arduino IDE), the drivers, the libraries, the firmware, the personal home-automation hub Home Assistant and its add-ons, and finally the Amazon Alexa app.<\/p>\n<h5><a id=\"scarichiamo_IDE_Arduino_dal_sito_ufficiale\"><\/a>Downloading the Arduino IDE from the official site<\/h5>\n<p>Get the latest version from the official download page. You can choose between the Installer (.exe) and Zip packages. We'll download the former, which installs everything needed to run the Arduino software (IDE) directly, drivers included. With the Zip package, the drivers need to be installed manually. The Zip file is also useful if you want to set up a portable installation.<\/p>\n<p>Once the download is finished, run the installer and accept the driver installation prompt when the operating system shows it.<\/p>\n<figure id=\"attachment_28390\" aria-describedby=\"caption-attachment-28390\" style=\"width: 431px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28390\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_01.png\" alt=\"IDE_Arduino_Installation\" width=\"431\" height=\"298\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_01.png 431w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_01-416x288.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_01-300x207.png 300w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><figcaption id=\"caption-attachment-28390\" class=\"wp-caption-text\">Choose the components to install<\/figcaption><\/figure>\n<figure id=\"attachment_28391\" aria-describedby=\"caption-attachment-28391\" style=\"width: 431px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28391\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_02.png\" alt=\"IDE_Arduino_Installation\" width=\"431\" height=\"306\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_02.png 431w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_02-416x295.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_02-300x213.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_02-400x284.png 400w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><figcaption id=\"caption-attachment-28391\" class=\"wp-caption-text\">Choose the install directory.<\/figcaption><\/figure>\n<figure id=\"attachment_28392\" aria-describedby=\"caption-attachment-28392\" style=\"width: 434px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28392\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_03.png\" alt=\"Ide_Arduino_installation\" width=\"434\" height=\"304\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_03.png 434w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_03-416x291.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/05\/IDE_installation_03-300x210.png 300w\" sizes=\"auto, (max-width: 434px) 100vw, 434px\" \/><figcaption id=\"caption-attachment-28392\" class=\"wp-caption-text\">Installation in progress.<\/figcaption><\/figure>\n<p>The process will extract and install all the files needed to run the Arduino software (IDE) correctly.<\/p>\n<h5><a id=\"Installazione_delle_librerie_Arduino_necessarie\"><\/a>Installing the libraries needed for the home-automation robot project<\/h5>\n<p>Per installare le librerie selezioniamo dalla barra del <strong><em>Menu &gt; Sketch &gt; #include libreria &gt; Gestione Librerie<\/em><\/strong>.<br \/>\nNel campo di ricerca della finestra <strong><em>&#8220;Gestore librerie&#8221;<\/em><\/strong> scriviamo <strong><em>&#8220;FreeRTOS&#8221;<\/em><\/strong>, facciamo clic sul pulsante &#8220;Installa&#8221;,<br \/>\nwait for the Library Manager to finish the installation, then repeat the same steps to install the other libraries, of course typing the following library names into the search box:<\/p>\n<ul>\n<li><em><strong>ArduinoJson, &gt; <\/strong><\/em><span style=\"color: #ff6600;\"><em><strong>ATTENZIONE: INSTALLARE LA VERSIONE 5.13 E NESSUN&#8217;ALTRA!<\/strong><\/em><\/span><\/li>\n<li><em><strong>PubSubClient,<\/strong><\/em><\/li>\n<li><em><strong>OneWire,<\/strong><\/em><\/li>\n<li><em><strong>AccelStepper,<\/strong><\/em><\/li>\n<li><em><strong>RF24,<\/strong><\/em><\/li>\n<li><em><strong>Adafruit PWM Servo Driver Library,<\/strong><\/em><\/li>\n<\/ul>\n<h5><a id=\"differenze_tra_Wemos_Mega_2560_e_Arduino_Mega_2560\"><\/a>Looking at the differences between our Wemos Mega 2560 board and the Arduino Mega 2560<\/h5>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28442 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_mega_vs_wemos_mega.jpg\" alt=\"arduino_mega_vs_wemos_mega\" width=\"440\" height=\"464\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_mega_vs_wemos_mega.jpg 440w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_mega_vs_wemos_mega-416x439.jpg 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_mega_vs_wemos_mega-284x300.jpg 284w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/p>\n<p>La <em><strong>Wemos Mega 2560<\/strong><\/em> \u00e8 un clone della scheda <strong><em>Arduino Mega 2560 R3<\/em><\/strong> combinata con un controller <strong><em>Espressif ESp8266<\/em><\/strong>.<br \/>\nQuindi, la scheda le stesse dimensioni del controller originale <em><strong>Arduino Mega<\/strong><\/em>.<\/p>\n<p>Il vero e proprio chip microcontrollore \u00e8 un <em><strong>ATmega2560<\/strong><\/em> come nella <em>Arduino Mega<\/em>, <em>con <strong>54 pin digitali<\/strong> e <strong>16 analogici<\/strong>, <strong>4 porte seriali UART<\/strong>, <strong>un cristallo oscillatore a 16 MHz<\/strong>, <strong>una porta USB<\/strong> e <strong>un jack di alimentazione<\/strong>, <strong>un header ICSP<\/strong> e <strong>un pulsante di reset<\/strong>.<\/em><\/p>\n<p>Ha tre tipi di memoria: <strong><em>Flash, SRAM ed EPROM<\/em><\/strong>. La scheda lavora ad una <em><strong>tensione nominale di 5V<\/strong><\/em> e sopporta una <em><strong>corrente massima di 40 mA<\/strong><\/em>.<br \/>\nThe ATmega2560 controller is moved to the right-hand side, and the ESP8266 controller sits on the left-hand side.<\/p>\n<p>Il connettore <em>USB-A<\/em> qui viene sostituito con un convenzionale <em>tipo-B con Micro-B<\/em>, e l&#8217;interazione del terminale con i componenti pu\u00f2 essere eseguita tramite il <em>convertitore CH340G (connesso RX0\/TX0 di ATmega2560) a USB-TTL e l&#8217;interruttore DIP 8 contatti.<\/em><\/p>\n<h5>Wemos Mega specifications<\/h5>\n<p>Microcontroller <em>ATmega2560<\/em><br \/>\nOperating Voltage <em>5V<\/em><br \/>\nTensione di ingresso (raccomandato) <em>7-16V<\/em><br \/>\nCorrente in uscita a 5V <em>1,6A<\/em><br \/>\nCorrente in uscita a 3.3V <em>1A<\/em><br \/>\nDigital I\/O Pins <em>54 (of which 15 provide PWM output)<\/em><br \/>\nAnalog Input Pins <em>16<\/em><br \/>\nDC Current per I\/O Pin <em>20 mA<\/em><br \/>\nDC Current for 3.3V Pin <em>50 mA<\/em><br \/>\nFlash Memory <em>256 KB of which 8 KB used by bootloader<\/em><br \/>\nSRAM <em>8 KB<\/em><br \/>\nEEPROM <em>4 KB<\/em><br \/>\nClock Speed <em>16 MHz<\/em><br \/>\nLED_BUILTIN <em>13<\/em><br \/>\nLength <em>101.52 mm<\/em><br \/>\nWidth <em>53.3 mm<\/em><br \/>\nWeight <em>37 g<\/em><\/p>\n<h5>The ATmega2560 microcontroller<\/h5>\n<p>The microcontroller on the WeMos Mega board is an ATmega2560, a low-power 8-bit AVR RISC chip made by Atmel (now part of Microchip), combining 256KB of ISP flash memory, 8KB of SRAM, 4KB of EEPROM, 86 general-purpose I\/O lines, 32 general-purpose working registers, a real-time counter, six timers, PWM, four USART ports, a 2-wire serial interface, 16 channels of 10-bit A\/D conversion, and a JTAG interface for on-chip debugging.<br \/>\nThe device achieves a throughput of 16 MIPS at 16 MHz and operates between 4.5 and 5.5 volts.<br \/>\nBy executing powerful instructions in a single clock cycle, the device achieves a throughput approaching 1 MIPS per MHz, balancing power consumption against fast processing.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28432 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/ATMEGA.jpg\" alt=\"ATMEGA2560\" width=\"259\" height=\"194\" \/><\/p>\n<p>Program Memory Type <em>Flash<\/em><br \/>\nProgram Memory (KB) <em>256<\/em><br \/>\nCPU Speed (MIPS) <em>16<\/em><br \/>\nRAM Bytes <em>8,192<\/em><br \/>\nData EEPROM (bytes) <em>4096<\/em><br \/>\nDigital Communication Peripherals <em>4-UART, 5-SPI, 1-I2C<\/em><br \/>\nCapture\/Compare\/PWM Peripherals <em>4 Input Capture, 4 CCP, 16PWM<\/em><br \/>\nTimers <em>2 x 8-bit, 4 x 16-bit<\/em><br \/>\nComparators <em>1<\/em><br \/>\nTemperature Range (C) <em>-40 to 85<\/em><br \/>\nOperating Voltage Range (V) <em>1.8 to 5.5<\/em><br \/>\nPin Count <em>100<\/em><\/p>\n<h5>ESP8266 module<\/h5>\n<p>Sulla scheda <em><strong>WeMos Mega<\/strong><\/em> \u00e8 istallato un chip <strong><em>ESP8266<\/em><\/strong> prodotto dalla <em><strong>Espressif<\/strong><\/em>, si tratta di un <strong><em>SoC (system-on-a-chip) Wi-Fi integrato con un MCU a 32bit LX106<\/em><\/strong>, il chip \u00e8 collegato al microcontrollore <em>ATmega2560<\/em> tramite <em><strong>RX3\/TX3<\/strong><\/em>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28435 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/esp8266_pinout.png\" alt=\"esp8266_pinout\" width=\"600\" height=\"464\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/esp8266_pinout.png 600w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/esp8266_pinout-416x322.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/esp8266_pinout-300x232.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/esp8266_pinout-480x371.png 480w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h5>ESP8266 specifications<\/h5>\n<p align=\"justify\">802.11 b\/g\/n<br \/>\nWi-Fi Direct (P2P), soft-AP<br \/>\nBuilt-in TCP\/IP stack<br \/>\nIntegrates the TR switch, the RF amplifier and the antenna<br \/>\nIntegrates a PLL, the regulator and a power-management circuit<br \/>\nOutput power +19.5dBm in 802.11b mode<br \/>\nStandby current &lt;10uA<br \/>\nThe 32-bit CPU can be used to run other applications at the same time<br \/>\nSDIO 1.1\/2.0, SPI, UART<br \/>\nSTBC, 1\u00d71 MIMO, 2\u00d71 MIMO<br \/>\nA-MPDU &amp; A-MSDU aggregation &amp; 0.4ms guard interval<br \/>\nWake-up and transmission &lt; 2ms<\/p>\n<p align=\"justify\">Sulla scheda\u00a0<b>WeMos Mega\u00a0<\/b>\u00e8 presente un connettore maschio 7&#215;2 che permette l&#8217;accesso diretto ad alcuni pin del chip ESP8266, la funzione \u00e8 riportata nella parte inferiore del PCB.<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 171px;\">\n<tbody>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\"><strong>Pin<\/strong><\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\" colspan=\"2\"><strong>Function<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">1<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">VCC<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">RXD<\/td>\n<\/tr>\n<tr style=\"height: 10px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 10px;\">2<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 10px;\">RST<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 10px;\">GPIOO<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">3<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">CH_PD<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">GPIO2<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">4<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">TXD<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">GND<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">5<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">GPIO5<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">GPIO16<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">6<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">GPIO4<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">TOUT<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">7<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">GPIO12<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 23px;\">GND<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5><a id=\"porte_di_comunicazione_della_Wemos_Mega_2560\"><\/a>The Wemos 2560's communication ports<\/h5>\n<p><strong><em>WeMos Mega<\/em><\/strong> \u00e8 in grado di comunicare con un <em>computer<\/em>, con un <em>Arduino<\/em> o anche con un <em>microcontrollore<\/em>. Per fare questo la <em>WeMos Mega<\/em> mette a disposizione <em><strong>4 UART hardware<\/strong><\/em> per la comunicazione seriale di tipo <strong><em>TTL (5V)<\/em><\/strong>.<br \/>\nLa scheda utilizza come convertitore <strong><em>USB-seriale<\/em><\/strong> il <strong><em>chip CH340G<\/em><\/strong>, in questo caso occorre installare i driver in quanto non riconosciuto automaticamente dal sistema operativo.<br \/>\n<em>WeMos Mega<\/em> inoltre \u00e8 dotato di un <strong><em>ICSP (In Circuit Serial Programming)<\/em><\/strong> che permette di programmare l&#8217; <em><strong>ATmega2560<\/strong><\/em> ignorando la procedura di caricamento del codice (ad esempio gi\u00e0 sviluppato in un altro ambiente) tramite <em>bootloader<\/em>; in tal modo si ha la possibilit\u00e0 di sfruttare pi\u00f9 memoria sulla scheda, passando da <em>8 KB<\/em> a <em>256 KB<\/em>.<br \/>\nAltra possibilit\u00e0 data dalla <strong><em>WeMos Mega<\/em><\/strong> \u00e8 il chip <strong><em>ESP8266<\/em><\/strong> che permette il collegamento <strong><em>Wi-Fi<\/em><\/strong> il chip \u00e8 collegato al microcontrollore <strong><em>ATmega2560<\/em><\/strong> tramite <strong><em>RX3\/TX3<\/em><\/strong>.<br \/>\nLa scelta del tipo di interfaccia utilizzare pu\u00f2 essere fatta agendo su un gruppo di <em><strong>dip switch<\/strong><\/em> presenti sulla scheda<br \/>\nAttraverso la libreria <strong><em>SoftwareSerial<\/em><\/strong> \u00e8 possibile effettuare una comunicazione seriale anche sui <strong><em>pin digitali<\/em><\/strong> della scheda.<\/p>\n<p>Wemos Mega DIP switch settings table for choosing the connection type<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 38%;\" width=\"38%\"><b><span style=\"font-family: Georgia; font-size: small;\">Connection<\/span><\/b><\/td>\n<td style=\"width: 24%;\" colspan=\"8\" align=\"center\" width=\"41%\"><b><span style=\"font-family: Georgia; font-size: small;\">DIP<\/span><\/b><\/td>\n<td style=\"width: 14%;\" align=\"center\" width=\"14%\"><span style=\"font-size: small;\">SWITH 2<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38%;\" width=\"38%\">\n<p align=\"justify\">\n<\/td>\n<td style=\"width: 3%; text-align: center;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">1<\/span><\/strong><\/td>\n<td style=\"width: 3%; text-align: center;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">2<\/span><\/strong><\/td>\n<td style=\"width: 3%; text-align: center;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">3<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%; text-align: center;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">4<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%; text-align: center;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">5<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%; text-align: center;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">6<\/span><\/strong><\/td>\n<td style=\"width: 3%; text-align: center;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">7<\/span><\/strong><\/td>\n<td style=\"width: 3%; text-align: center;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">8<\/span><\/strong><\/td>\n<td style=\"width: 14%;\" align=\"center\" width=\"14%\"><span style=\"font-size: small;\">RXD \/ TXD<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38%;\" width=\"38%\">\n<p align=\"justify\"><b><span style=\"font-family: Georgia; font-size: small;\">Isolated USB<\/span><\/b><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 14%;\" align=\"center\" width=\"14%\"><span style=\"font-size: small;\">RXD0\/TXD0<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38%;\" width=\"38%\">\n<p align=\"left\"><b><span style=\"font-family: Georgia; font-size: small;\">USB\u00a0 &lt;-&gt;\u00a0 ATmega2560<\/span><\/b><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><span style=\"color: #ff9900;\"><strong><span style=\"font-family: Georgia; font-size: small;\">ON<\/span><\/strong><\/span><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><span style=\"font-family: Georgia; font-size: small; color: #ff9900;\">ON<\/span><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 14%;\" align=\"center\" width=\"14%\"><span style=\"font-size: small;\">RXD0\/TXD0<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38%;\" width=\"38%\">\n<p align=\"justify\"><b><span style=\"font-family: Georgia; font-size: small;\">USB\u00a0 &lt;-&gt;\u00a0 ESP8266 <\/span><\/b><b><span style=\"font-family: Georgia; font-size: small;\">(Aggiornamento del firmware o sketch)<\/span><\/b><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small; color: #ff9900;\">ON<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small; color: #ff9900;\">ON<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small; color: #ff9900;\">ON<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 14%;\" align=\"center\" width=\"14%\"><span style=\"font-size: small;\">RXD0\/TXD0<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38%;\" width=\"38%\">\n<p align=\"justify\"><b><span style=\"font-family: Georgia; font-size: small;\">USB &lt;-&gt;\u00a0 ESP8266 <\/span><\/b><b><span style=\"font-family: Georgia; font-size: small;\">(Comunicazione)<\/span><\/b><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"color: #ff9900;\"><span style=\"font-family: Georgia; font-size: small;\">ON<\/span><\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small; color: #ff9900;\">ON<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 14%;\" align=\"center\" width=\"14%\"><span style=\"font-size: small;\">RXD0\/TXD0<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38%;\" width=\"38%\">\n<p align=\"justify\"><b><span style=\"font-family: Georgia; font-size: small;\">ATmega2560    ESP8266<\/span><\/b><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 14%;\" align=\"center\" width=\"14%\"><span style=\"font-size: small;\">RXD0\/TXD0<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38%;\" width=\"38%\">\n<p align=\"justify\"><b><span style=\"font-family: Georgia; font-size: small;\">USB    ATmega2560    ESP8266<\/span><\/b><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"color: #ff9900;\"><span style=\"font-family: Georgia; font-size: small;\">ON<\/span><\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"color: #ff9900;\"><span style=\"font-family: Georgia; font-size: small;\">ON<\/span><\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"color: #ff9900;\"><span style=\"font-family: Georgia; font-size: small;\">ON<\/span><\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"color: #ff9900;\"><span style=\"font-family: Georgia; font-size: small;\">ON<\/span><\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" width=\"3%\">\n<p align=\"center\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 3%;\" align=\"center\" width=\"3%\"><strong><span style=\"font-family: Georgia; font-size: small;\">OFF<\/span><\/strong><\/td>\n<td style=\"width: 14%;\" align=\"center\" width=\"14%\"><span style=\"font-size: small;\">RXD3\/TXD3<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h5><a id=\"Installazione_del_driver_CH340G\"><\/a>Installing the CH340G driver<\/h5>\n<p>La scheda <em><strong>Wemos Mega utilizza<\/strong><\/em> come convertitore USB-seriale <em><strong>il chip CH340G invece che il pi\u00f9 diffuso chip di FTDI<\/strong><\/em>, siccome <em>Windows<\/em> non supporta nativamente questo chip, il modulo non viene riconosciuto.<\/p>\n<p>Per questo motivo \u00e8 necessario <em><strong><a href=\"http:\/\/www.wch.cn\/download\/CH341SER_ZIP.html\">scaricare il driver<\/a><\/strong><\/em> dal sito ufficiale del fornitore (sfortunatamente \u00e8 in cinese).<\/p>\n<p>Once you've unzipped the package, you can go ahead and update the device driver.<\/p>\n<p>Per cui si dovr\u00e0 lanciare il programma <em><strong>SETUP.EXE.<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28447 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_03.jpg\" alt=\"CH340G_driver_install\" width=\"420\" height=\"261\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_03.jpg 420w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_03-416x259.jpg 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_03-300x186.jpg 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_03-400x250.jpg 400w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/p>\n<p>Dopo l&#8217;apertura della finestra si effettuer\u00e0 l&#8217;installazione dei driver, che avverr\u00e0 in automatico premendo <em><strong>INSTALL.<\/strong><\/em><br \/>\nAt the end of the process, the following window will be shown.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28448 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_04.jpg\" alt=\"CH340G_driver_install_successfully\" width=\"311\" height=\"126\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_04.jpg 311w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_04-300x122.jpg 300w\" sizes=\"auto, (max-width: 311px) 100vw, 311px\" \/><\/p>\n<p>A questo punto collegando il modulo, questo sar\u00e0 riconosciuto e Windows configurer\u00e0 correttamente la nuova <em><strong>porta COM.<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28449 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_05.jpg\" alt=\"CH340G_driver_com_port\" width=\"319\" height=\"309\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_05.jpg 319w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/arduino_nano_driver_05-300x291.jpg 300w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><\/p>\n<h5><a id=\"note_wifi_link_fork_jandrassy\"><\/a>Notes on the Arduino WiFi Link Library (Jandrassy fork)<\/h5>\n<p>Prima di installare la libreria <em><strong>&#8220;Arduino WiFi Link Library&#8221;<\/strong><\/em> nella variante riscritta dall&#8217;utente <strong><em>Jandrassy<\/em><\/strong>, occorre sottolineare alcuni concetti:<\/p>\n<p>La libreria standard <em><strong>&#8220;WiFi Link&#8221;<\/strong><\/em> presente nella raccolta di Arduino non pu\u00f2 essere utilizzata in questo progetto in quanto non funzionerebbe con la nostra scheda <em><strong>Wemos Mega 2560 R3 WiFi Esp8266<\/strong><\/em>.<\/p>\n<p>La versione <strong><em>Arduino WiFi Link Library (<\/em>Fork di Jandrassy)<\/strong> permette di utilizzare la porta <strong><em>Seriale 3<\/em><\/strong> della <strong><em>Wemos Mega 2560<\/em><\/strong> con <em>WiFi Esp8266<\/em>, vedremo in seguito come utilizzare questa funzionalit\u00e0.<\/p>\n<p>Per ora rechiamoci a questo link: <a href=\"https:\/\/github.com\/esp8266\/arduino-esp8266fs-plugin\/releases\/latest\">https:\/\/github.com\/esp8266\/arduino-esp8266fs-plugin\/relases<\/a> e scarichiamo il plugin che ci servir\u00e0 per caricare files sul file system dell&#8217;<em>ESP8266<\/em> integrato sul nostro microcontrollore <em>Wemos Mega 2560<\/em>,<\/p>\n<p>Nella directory della tua cartella degli sketch Arduino, crea una directory <em><strong>&#8220;tools&#8221;<\/strong><\/em> se non esiste ancora.<br \/>\n(You can find the sketchbook folder's location in the Arduino IDE under:<br \/>\n<strong><em>File &gt; Impostazioni &gt; Posizione della cartella degli sketch<\/em><\/strong>),<br \/>\nDecomprimi lo strumento nella cartella &#8220;<strong><em>tools&#8221;,<\/em><\/strong><br \/>\n(il percorso sar\u00e0 simile a <strong><em>&lt;cartella sketch&gt;\/tools\/ESP8266FS\/tool\/esp8266fs.jar<\/em><\/strong>).<br \/>\nRestart the Arduino IDE.<\/p>\n<h5><a id=\"installazione_wifi_link_fork_jandrassy\"><\/a>Installing the Arduino WiFi Link Library (Jandrassy fork)<\/h5>\n<p>Scarichiamo la libreria: <strong><em><a href=\"https:\/\/github.com\/JAndrassy\/arduino-firmware-wifilink\/archive\/refs\/heads\/master.zip\">WiFi Link Fork Jandrassy<\/a><\/em><\/strong><\/p>\n<p>Apriamo o estraiamo lo zip scaricato e copiamo la cartella <strong><em>&#8220;ArduinoFirmwareEsp&#8221;<\/em><\/strong> nella cartella degli schizzi.<br \/>\nAvviamo Arduino IDE e apriamo lo sketch <em><strong>ArduinoFirmwareEsp.ino dal percorso:<br \/>\nFile &gt; Sketchbook &gt; ArduinoFirmwareEsp<\/strong><\/em><br \/>\nNOTE: This will also open additional files as tabs in the IDE.<em>\u00a0<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28414 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/IDE-WiFiLink-fw.png\" alt=\"IDE-WiFiLink-fw\" width=\"883\" height=\"190\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/IDE-WiFiLink-fw.png 883w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/IDE-WiFiLink-fw-416x90.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/IDE-WiFiLink-fw-300x65.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/IDE-WiFiLink-fw-768x165.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/IDE-WiFiLink-fw-610x131.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/IDE-WiFiLink-fw-480x103.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/IDE-WiFiLink-fw-600x129.png 600w\" sizes=\"auto, (max-width: 883px) 100vw, 883px\" \/><\/p>\n<p>Selezioniamo la scheda <em><strong>&#8220;config.h&#8221;,<\/strong> portiamoci alla riga 81 e impostiamo il valore di BAUDRATE_COMMUNICATION a 115200,<br \/>\n<\/em>Impostiamo adesso i<strong><em> Dip-Switch 5,6,7 <\/em><\/strong>della scheda<em><strong> Wemos Mega 2560<\/strong> su <strong>ON, e i Dip-Switch 1,2,3,4,8 su<\/strong><\/em><strong> OFF, <em>e controlliamo che lo Switch di selezione della porta seriale sia impostato su RXD0\/TXD0, <\/em><\/strong>in breve la modalit\u00e0 appena selezionata ci consentir\u00e0 di trasferire il firmware <em><strong>ArduinoFirmwareEsp.ino sul file system del chip Esp8266.<\/strong><\/em><\/p>\n<figure id=\"attachment_28419\" aria-describedby=\"caption-attachment-28419\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28419\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Wemos-Mega-2560-R3-Esp8266_10.jpg\" alt=\"Wemos Mega 2560 R3 + Esp8266 - Dip-Switch \" width=\"600\" height=\"600\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Wemos-Mega-2560-R3-Esp8266_10.jpg 600w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Wemos-Mega-2560-R3-Esp8266_10-324x324.jpg 324w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Wemos-Mega-2560-R3-Esp8266_10-416x416.jpg 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Wemos-Mega-2560-R3-Esp8266_10-150x150.jpg 150w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Wemos-Mega-2560-R3-Esp8266_10-300x300.jpg 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Wemos-Mega-2560-R3-Esp8266_10-100x100.jpg 100w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Wemos-Mega-2560-R3-Esp8266_10-480x480.jpg 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Wemos-Mega-2560-R3-Esp8266_10-50x50.jpg 50w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-28419\" class=\"wp-caption-text\"><em>Wemos Mega 2560 R3 \u2013 DIP switches set to transfer ArduinoFirmwareEsp.ino onto the ESP8266 chip's file system<\/em><\/figcaption><\/figure>\n<h5><a id=\"Selezione_configurazione_e_verifica_della_scheda_ESP8266_generico\"><\/a>Selezione, configurazione e verifica della scheda <em>ESP8266 generico<\/em><\/h5>\n<p>Nel menu &#8220;<em><strong>Strumenti&#8221;<\/strong><\/em> seleziona le opzioni della scheda e scegli &#8220;<em><strong>ESP8266 generico&#8221;<\/strong><\/em> dalla sezione <em>ESP8266<\/em> del menu Schede. Imposta opzioni dipendenti dall&#8217;hardware come frequenza cristalli, frequenza flash, modalit\u00e0 flash, dimensioni flash, led, ripristino.<br \/>\nThen choose the ESP8266 usage options:<br \/>\n<strong><em>&#8220;CPU Frequency&#8221;:<\/em><\/strong>\u00a0consigliata <strong><em>80 MHz<\/em><\/strong>; <strong><em>160 MHz<\/em><\/strong> produce pi\u00f9 calore e ha un consumo energetico maggiore<br \/>\n<em><strong>&#8220;LwIP Variant&#8221;<\/strong><strong>:<\/strong> <strong>v2 Higher Bandwidth,<\/strong><\/em><br \/>\n<em><strong>&#8220;Debug port&#8221;:<\/strong> <strong>Disabled,<\/strong><\/em><br \/>\n<em><strong>&#8220;Debug level&#8221;:<\/strong><\/em>\u00a0<em><strong>Nessuno<\/strong><\/em> \u00e8 l&#8217;impostazione di base,<br \/>\n<em><strong>&#8220;Flash Size&#8221;:<\/strong><\/em> per <em>WiFi Link<\/em> \u00e8 opportuno <em><strong>&#8220;4M (1M SPIFFS)&#8221;,<\/strong><\/em> almeno <em>256 kB<\/em> sono necessari per <em>SPIFFS<\/em>,<br \/>\n<em><strong>&#8220;Erase flash&#8221;<\/strong><\/em> \u00e8 nuova nel pacchetto <em>Arduino esp8266 2.4.1<\/em>. Per preservare <em>SPIFFS e le credenziali WiFi<\/em> utilizzare l&#8217;opzione <em><strong>&#8220;Only Sketch&#8221;<\/strong><\/em>. Se si cambia dal firmware precompilato, se si modifica l&#8217;opzione <em>LwIP<\/em> o dopo un aggiornamento alla nuova versione del pacchetto core <em>Arduino esp8266<\/em>, utilizzare <em><strong>&#8220;All Flash Contents&#8221;<\/strong><\/em> per cancellare tutti i parametri impostati da <em>Espressif SDK<\/em>.<\/p>\n<blockquote><p><strong><em>Note: Clearing all the SDK parameters can help if you run into Wi-Fi connection stability issues.<\/em><\/strong><\/p><\/blockquote>\n<p>Ora verifichiamo lo schizzo con il pulsante <em><strong>&#8220;Verifica&#8221;<\/strong><\/em>.<br \/>\nThe first compile after changing the default board will take longer than usual.<\/p>\n<h5><a id=\"caricamento_del_firmware_ArduinoFirmwareEsp_su_Esp8266\"><\/a>Caricamento del firmware <em>ArduinoFirmwareEsp.ino su Esp8266<\/em><\/h5>\n<p>Colleghiamo la <em><strong>Wemos Mega 2560 R3 WiFi Esp8266<\/strong><\/em> alla USB del nostro PC con il cavo USB in dotazione.<br \/>\nUtilizzare il pulsante <em><strong>&#8220;Carica&#8221;<\/strong><\/em> nell&#8217;IDE per caricare il <strong><em>Firmware WiFi Link<\/em><\/strong>.<\/p>\n<blockquote><p><strong>Una volta ultimato il caricamento del Firmware WiFi Link, impostiamo i Dip-Switch della <em>Wemos Mega 2560 R3 in questo modo: 3, 4 su ON, e 1, 2, 5, 6, 7, 8 su OFF, questa \u00e8 la modalit\u00e0 che ci servir\u00e0 a breve per caricare il Firmware dell&#8217;ATMEGA 2560, il software che funger\u00e0 da sistema operativo del nostro robot domotico.<\/em><\/strong><\/p><\/blockquote>\n<h5><a id=\"installiamo_home_assistant\"><\/a>Installing and\/or configuring Home Assistant on the Raspberry Pi<\/h5>\n<p><em><strong>Home Assistant<\/strong><\/em> \u00e8 il uno tra gli <em><strong>HUB personali<\/strong><\/em> ideali per realizzare una propria <em><strong>domotica personale<\/strong><\/em> in modo organico e funzionale.<\/p>\n<p><em><strong>Prima di avviare il Raspberry Pi<\/strong><\/em>, \u00e8 necessario <strong><em>\u201cinstallare\u201d il sistema operativo sulla microSD<\/em><\/strong>, la quale \u00e8 il corrispettivo dell\u2019<em>Hard Disk<\/em> in un comune personal computer.<\/p>\n<p>L\u2019opzione pi\u00f9 semplice per installare <em><strong>un\u2019immagine su una microSD<\/strong><\/em> o su un disco esterno USB \u00e8 quella di utilizzare un semplice <em><strong>tool ad interfaccia grafica<\/strong><\/em>.<\/p>\n<p>Nel nostro caso utilizzeremo <em><strong>Raspberry Pi Imager<\/strong><\/em>, un tool per <em>Windows, macOS e Ubuntu<\/em> realizzato dalla <em>Raspberry Foundation<\/em> il quale \u00e8 in grado di scaricare l\u2019immagine da Internet, permettendoci di scegliere tra varie distribuzioni (oppure usare un\u2019immagine ad hoc presente sul proprio computer), e installarla sulla <em><strong>microSD<\/strong><\/em> o su di un disco esterno.<\/p>\n<p>The procedure we'll follow is this:<\/p>\n<ul>\n<li>scarichiamo e installiamo il software <a href=\"https:\/\/www.raspberrypi.org\/software\/\"><em><strong>Raspberry Pi Imager<\/strong><\/em><\/a>\u00a0sul computer di supporto;<\/li>\n<li>inseririamo la <em><strong>MicroSD<\/strong><\/em> (utilizzando un adattatore USB) nel computer di supporto;<\/li>\n<li>eseguiamo <em><strong>Raspberry Pi Imager<\/strong><\/em>\u00a0sul computer di supporto;<\/li>\n<li>clicchiamo su <em><strong>\u201cOperating Systems\u201c<\/strong><\/em>, scegliamo la voce <em><strong>\u201cOther specific purpose OS\u201d &gt; \u201cHome Assistant\u201d &gt; \u201cRpi x\/xxx\u201d<\/strong><\/em> (scegliere il proprio modello di <em>Raspberry Pi<\/em>);<\/li>\n<li>cliccando su <em>\u201c<strong>Choose storage<\/strong>\u201c<\/em>, selezionare la <em><strong>microSD<\/strong><\/em> collegata al computer d\u2019appoggio;<\/li>\n<li>clicchiamo <strong><em>\u201cWrite\u201d<\/em><\/strong> per installare la distribuzione;<\/li>\n<li>wait for the task to finish (it can take up to an hour, depending on the speed of the internet connection \u2014 required \u2014 and the write speed to the microSD card).<\/li>\n<\/ul>\n<h5><a id=\"Installiamo_e_configuriamo_i_Componenti_aggiuntivi_di_Home_Assistant\"><\/a>Installing and configuring Home Assistant's add-ons<\/h5>\n<p>To give our Home Assistant instance all the features our project needs, we'll install the following add-ons one at a time \u2014 we suggest checking each one's official website for further configuration details:<\/p>\n<ol>\n<li><em>Duck DNS, <\/em><\/li>\n<li><em>File editor, <\/em><\/li>\n<li><em>Grafana, <\/em><\/li>\n<li><em>Home Assistant Google Drive Backup, <\/em><\/li>\n<li><em>InfluxDB, <\/em><\/li>\n<li><em>Log Viewer, <\/em><\/li>\n<li><em>Mosquitto broker, <\/em><\/li>\n<li><em>Samba share, <\/em><\/li>\n<li><em>SSH &amp; Web Terminal, <\/em><\/li>\n<li><em>HACS.<\/em><\/li>\n<\/ol>\n<h5><a id=\"installiamo_alexa_e_configuriamo_echo\"><\/a>Installiamo <em>Amazon Alexa<\/em> sul nostro smartphone e\/o sul PC e configuriamo il nostro\/i nostri <em>Amazon Echo<\/em> (opzionale)<\/h5>\n<p>Se non la abbiamo gi\u00e0 fatto in precedenza procediamo a scaricare ed installare la App <strong>Amazon Alexa<\/strong> dal repository <strong>Play Store<\/strong> nel caso di <strong><em>Android<\/em><\/strong> o dallo <em><strong>Store di Apple<\/strong><\/em> nel caso di un <em><strong>IOS<\/strong><\/em>. Seguiamo poi la procedura canonica indicata da Amazon per configurare il nostro <em>smart speaker<strong> Amazon Echo<\/strong><\/em>. Ovvero:<\/p>\n<ol>\n<li>Tap \"Device Settings,\"<\/li>\n<li>then the \"+\" sign in the top right,<\/li>\n<li>Ora colleghiamo ad una presa l&#8217;alimentatore fornito in dotazione col nostro <em>smart speaker Amazon Echo <\/em>e colleghiamo l&#8217;atra estremit\u00e0 aquest&#8217;ultimo,<\/li>\n<li>Clicchiamo su <em><strong>&#8220;Aggiungi Dispositivo&#8221; Echo, Casa Intelligente e Accessori<\/strong><\/em> dal menu che compare in basso,<\/li>\n<li>finally, after entering the requested information, wait for the device discovery and setup process to finish.<\/li>\n<\/ol>\n<p>Ripeti le operazioni dal punto 1 al punto 5 per ogni <em>smart speaker Amazon Echo in tuo possesso.<\/em><\/p>\n<h5>Integriamo <em>Amazon Alexa<\/em> come <em>\u201cMedia Player\u201d<\/em> su <em>Home Assistant<\/em><\/h5>\n<p>A partire dalla versione 0.88 di Home Assistant \u00e8 necessario creare una cartella contenente i file del componente personalizzato, la quale sar\u00e0 collocata, a sua volta, dentro la cartella <em><strong>\u201ccustom_components\u201d<\/strong><\/em> all\u2019interno della cartella principale di Home Assistant (ovvero quella nella quale giacciono i file di configurazione come <em>configuration.yaml<\/em>).<\/p>\n<p><a href=\"https:\/\/github.com\/keatontaylor\/alexa_media_player\/archive\/master.zip\"><strong>Scarichiamo<\/strong>\u00a0dunque il pacchetto di installazione<\/a> e provvediamo a decomprimerlo: esso conterr\u00e0 una cartella chiamata <em><strong>\u201calexa_media\u201d<\/strong><\/em> la quale rappresenta la cartella dedicata al componente; dunque copiamola dentro la cartella <em>\u201c<strong>custom_components<\/strong>\u201d<\/em> (laddove quest\u2019ultima non esista, provvediamo a crearla).<\/p>\n<h6>ALTERNATIVELY, WE CAN INSTALL ALEXA MEDIA VIA HACS<\/h6>\n<p>Dalla versione 1.3.0 di Home Assistant il componente Alexa Media prevede un\u2019alternativa molto pi\u00f9 facile per installarlo: quella di utilizzare <em><strong>HACS<\/strong><\/em>.<br \/>\nPer farlo \u00e8 necessario\u00a0avere installato una tantum il <em>componete HACS<\/em>\u00a0e poi:<\/p>\n<ul>\n<li>entrare in <em>HACS<\/em>;<\/li>\n<li>cliccare <em>\u201c<strong>Integrazioni<\/strong>\u201c<\/em>;<\/li>\n<li>click the three dots in the top right;<\/li>\n<li>selezionar <em>\u201c<strong>Custom repositories<\/strong>\u201c<\/em>;<\/li>\n<li>*alla voce <em>\u201c<strong>ADD CUSTOM REPOSITORY URL<\/strong>\u201d<\/em> aggiungere \u2013 selezionando la categoria <em>\u201c<strong>integration<\/strong>\u201d<\/em> \u2013 il path:<\/li>\n<\/ul>\n<pre>https:\/\/github.com\/custom-components\/alexa_media_player<\/pre>\n<ul>\n<li>infine, tornando alla voce <em>\u201c<strong>STORE<\/strong>\u201c<\/em>, cercare e trovare \u201cAlexa Media Player\u201d, cliccarvi sopra e poi, nella pagina apertasi, cliccare su <em>\u201c<strong>INSTALL<\/strong>\u201c<\/em>. Al termine,\u00a0<em><strong>riavviare<\/strong><\/em>\u00a0Home Assistant.<\/li>\n<\/ul>\n<p><em>*this specific step might no longer be necessary.<\/em><\/p>\n<h5>Getting the 2FA app code<\/h5>\n<p>Before continuing with the integration, you need to set up a 2FA app code.<\/p>\n<p>Il \u201ctwo-factor-authentication \u2013 2FA\u201d (in italiano \u201c<em>Verifica in due passaggi \u2013 2SV<\/em>\u201c) \u00e8 una tecnica sempre pi\u00f9 in voga che prevede di autenticarsi a un proprio account Internet non solo tramite username\/password, ma anche con un secondo passaggio che, il pi\u00f9 delle volte, prevede l\u2019invio di un OTP (one-time-password) via SMS (o altro).<\/p>\n<p>Per utilizzare l\u2019integrazione Alexa Media Player \u00e8 necessario che tale doppia autenticazione presso l\u2019account Amazon <strong>sia attiva<\/strong>\u00a0sul proprio account.<\/p>\n<p>Colleghiamoci dunque <a href=\"https:\/\/www.amazon.it\/a\/settings\/approval\" target=\"_blank\" rel=\"noopener\">a questo indirizzo<\/a> e provvediamo alla abilitazione; completiamo la procedura fino al raggiungimento della seguente schermata di riepilogo:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28456 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/riepilogo_procedura_2SV.png\" alt=\"riepilogo_procedura_2SV\" width=\"731\" height=\"578\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/riepilogo_procedura_2SV.png 731w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/riepilogo_procedura_2SV-416x329.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/riepilogo_procedura_2SV-300x237.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/riepilogo_procedura_2SV-610x482.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/riepilogo_procedura_2SV-480x380.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/riepilogo_procedura_2SV-600x474.png 600w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p>Clicchiamo ora sulla voce <strong><em>\u201cAggiungi nuovo telefono o un\u2019app di autenticazione\u201c<\/em><\/strong>, e poi sul link <em><strong>\u201cNon riesci ad acquisire il codice a barre?\u201d <\/strong><\/em>come mostrato nella seguente immagine:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28458 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/finestra_aggiungi_metodo_bk_2SV.png\" alt=\"finestra_aggiungi_metodo_bk_2SV\" width=\"745\" height=\"553\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/finestra_aggiungi_metodo_bk_2SV.png 745w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/finestra_aggiungi_metodo_bk_2SV-416x309.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/finestra_aggiungi_metodo_bk_2SV-300x223.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/finestra_aggiungi_metodo_bk_2SV-610x453.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/finestra_aggiungi_metodo_bk_2SV-480x356.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/finestra_aggiungi_metodo_bk_2SV-600x445.png 600w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/p>\n<p>A box will open containing our 2FA app code:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28459 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/avviso_procedura_2SV.png\" alt=\"avviso_procedura_2SV\" width=\"426\" height=\"247\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/avviso_procedura_2SV.png 426w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/avviso_procedura_2SV-416x241.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/avviso_procedura_2SV-300x174.png 300w\" sizes=\"auto, (max-width: 426px) 100vw, 426px\" \/><\/p>\n<p>A questo punto segniamoci da parte tale codice (eg. <strong>35T5 LQSY I5IO 3EFQ LGAJ I6YB JWBY JJPR PYT7 XPPW IDAK SQBJ CVXA<\/strong>), servir\u00e0 a breve. Chiudiamo la finestra.<\/p>\n<p>Once the \"Alexa Media Player\" component is installed and Home Assistant has been restarted, we're ready to integrate the Alexa devices (linked to our Amazon account) into our home automation.<\/p>\n<p>I dati che ci occorreranno per tale integrazione <em>sono l\u2019<strong>username<\/strong> e la <strong>Password<\/strong> del nostro account presso il <strong>webstore nazionale Amazon<\/strong><\/em> (<em>.it<\/em> per l\u2019Italia, <em>.fr<\/em> per la Francia e cos\u00ec via).<\/p>\n<p>Dunque andiamo alla voce di menu Home Assistant <strong><em>\u201cConfigurazione\u201d &gt; \u201cDispositivi e servizi\u201d <\/em><\/strong><em>per selezionare la voce<\/em><strong><em> \u201cAlexa Media Player\u201d<\/em><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28460 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/integrazione_alexa_media_player_01.png\" alt=\"integrazione_alexa_media_player\" width=\"489\" height=\"96\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/integrazione_alexa_media_player_01.png 489w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/integrazione_alexa_media_player_01-416x82.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/integrazione_alexa_media_player_01-300x59.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/integrazione_alexa_media_player_01-480x94.png 480w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/p>\n<p>On the next screen, enter the username, password and the relevant national store into the required fields.<\/p>\n<blockquote><p><strong>ATTENZIONE:<\/strong> questo \u00e8 un punto cruciale. <strong>Va indicato, per l\u2019Italia, <em>\u201camazon.it\u201c<\/em><\/strong>. Sbagliando questo passaggio ci saranno dei malfunzionamenti a seguire!<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28461 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/configurazione_alexa_media_player.png\" alt=\"configurazione_alexa_media_player\" width=\"396\" height=\"634\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/configurazione_alexa_media_player.png 396w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/configurazione_alexa_media_player-187x300.png 187w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><\/p>\n<p>Field descriptions:<\/p>\n<table style=\"width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 34.5315%;\"><strong>Email address<\/strong><\/td>\n<td style=\"width: 64.4416%;\">Il proprio indirizzo email col quale ci si autentica presso Amazon<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 34.5315%;\"><strong>Password<\/strong><\/td>\n<td style=\"width: 64.4416%;\">La relativa password d\u2019accesso<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 34.5315%;\"><strong>Amazon domain region<\/strong><\/td>\n<td style=\"width: 64.4416%;\">Impostiamo <strong>amazon.it<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 34.5315%;\"><strong>URL to access Home Assistant<\/strong><\/td>\n<td style=\"width: 64.4416%;\">Indirizzo del proprio Home Assistant<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 34.5315%;\"><strong>2FA Code<\/strong><\/td>\n<td style=\"width: 64.4416%;\">Il campo precedentemente utilizzato per l\u2019autorizzazione in due fasi. Lasciamolo vuoto.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 34.5315%;\"><strong>Built-in 2FA App Key<\/strong><\/td>\n<td style=\"width: 64.4416%;\">Inseriamo il codice precedentemente ottenuto dall\u2019attivazione della verifica in due fasi.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 34.5315%;\"><strong>Devices to include\/exclude<\/strong><\/td>\n<td style=\"width: 64.4416%;\">Eventuali dispositivi presenti sul proprio account Amazon, da includere o escludere esplicitamente, divisi da virgola (eg.\u00a0<strong>\u201cQuesto dispositivo\u201d,\u201dApp Alexa di Marco\u201d<\/strong>\u00a0eccetera)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Cliccare su \u201c<strong>INVIA<\/strong>\u201d per accedere alla conferma dell\u2019auto-generazione dei codici 2FA da parte dell\u2019app:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28462 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/password_alexa_media_player.png\" alt=\"password_alexa_media_player\" width=\"570\" height=\"361\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/password_alexa_media_player.png 570w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/password_alexa_media_player-416x263.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/password_alexa_media_player-300x190.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/password_alexa_media_player-480x304.png 480w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/p>\n<p>Click \"SUBMIT\" to move on to the final captcha:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28463 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/captcha_alexa_media_player.png\" alt=\"captcha_alexa_media_player\" width=\"603\" height=\"544\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/captcha_alexa_media_player.png 603w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/captcha_alexa_media_player-416x375.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/captcha_alexa_media_player-300x271.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/captcha_alexa_media_player-480x433.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/captcha_alexa_media_player-600x541.png 600w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/p>\n<p>Finally click \"SUBMIT\" to continue the integration.<br \/>\nAt this point the integration will ask you to confirm the authorization sent on Amazon's side, typically via SMS to the phone number associated with the account (or another channel):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28464 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/azione_richiesta_alexa_media_player.png\" alt=\"azione_richiesta_alexa_media_player\" width=\"600\" height=\"328\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/azione_richiesta_alexa_media_player.png 600w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/azione_richiesta_alexa_media_player-416x227.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/azione_richiesta_alexa_media_player-300x164.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/azione_richiesta_alexa_media_player-480x262.png 480w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Don't click \"SUBMIT\" right away. First go to the Amazon site (via the link sent by SMS or another channel) and authorize Home Assistant's access:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28465 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/avviso_account_alexa_media_player.png\" alt=\"avviso_account_alexa_media_player\" width=\"354\" height=\"481\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/avviso_account_alexa_media_player.png 354w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/avviso_account_alexa_media_player-221x300.png 221w\" sizes=\"auto, (max-width: 354px) 100vw, 354px\" \/><\/p>\n<p>Once access has been authorized, you can click \"SUBMIT\" on the window still open in Home Assistant.<\/p>\n<p>A questo punto, se tutto sar\u00e0 andato bene <em>Home Assistant<\/em> elencher\u00e0 i <em><strong>device Alexa<\/strong><\/em> collegati al proprio account e quindi, da questo momento, integrati all\u2019HUB:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28466 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/success_installation_alexa_media_player.png\" alt=\"success_installation_alexa_media_player\" width=\"386\" height=\"565\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/success_installation_alexa_media_player.png 386w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/success_installation_alexa_media_player-205x300.png 205w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><\/p>\n<p>In qualunque momento \u00e8 possibile consultare il proprio elenco di dispositivi integrati presso la voce di menu <em><strong>\u201cConfigurazione\u201d &gt; \u201cDispositivi e servizi\u201d &gt; \u201cAlexa Media Player\u201c<\/strong><\/em>.<\/p>\n<h3><a id=\"Realizziamo_tutte_le_parti_in_multistrato_dello_chassis_di_Pedro\"><\/a>Making all the plywood parts of Pedro's chassis<\/h3>\n<p>Stick the cutting and drilling templates onto the plywood sheets (500x500x8mm) making sure no air bubbles form; use a ruler as a tool to press the adhesive down as you peel away its backing.<\/p>\n<p>Using a jigsaw or a reciprocating saw, cut along the edges of the shapes shown in the drawing. Remove any rough edges or cutting imperfections with fine-grit sandpaper.<\/p>\n<p>Finally, drill the holes needed to mount the electronic boards using a 3mm wood drill bit.<\/p>\n<p><a href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_LEFT_SIDE.pdf\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28550\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO.png\" alt=\"LEFT_PEDRO_CUTTING_SCHEME\" width=\"1203\" height=\"815\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO.png 1203w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO-416x282.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO-300x203.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO-768x520.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO-1024x694.png 1024w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO-610x413.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO-1080x732.png 1080w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO-980x664.png 980w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO-480x325.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/LEFT_PEDRO-600x406.png 600w\" sizes=\"auto, (max-width: 1203px) 100vw, 1203px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_BOTTOM.pdf\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28551\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO.png\" alt=\"BOTTOM_PEDRO_CUTTING_SCHEME\" width=\"1101\" height=\"808\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO.png 1101w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO-416x305.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO-300x220.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO-768x564.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO-1024x751.png 1024w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO-610x448.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO-1080x793.png 1080w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO-980x719.png 980w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO-480x352.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/BOTTOM_PEDRO-600x440.png 600w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a><\/p>\n<h3><a id=\"Realizziamo_la_scocca_di_Pedro_sagomando_e_piegando_la_lastra_di_Plexiglass\"><\/a>Making Pedro's body shell by shaping and bending the plexiglass sheet<\/h3>\n<p>Using a Dremel with a rotary abrasive disc, cut a 940mm x 216mm piece from the plexiglass sheet. This length is greater than what the finished cover actually needs, because the final edges will only be trimmed precisely at the end of this process. We do this because plexiglass can shrink somewhat during hot bending. Work the edges thoroughly with sandpaper \u2014 coarse-double grit first, then fine \u2014 to remove all imperfections.<\/p>\n<p>Mark the first 2 bend lines on the workpiece at a distance of 100mm from the edge on both short sides, and two more lines further in, at a distance of 61.72mm (51.72mm + 5mm + 5mm) from the previous ones.<\/p>\n<p>The measurements of the 3 segments (the center one plus the two side panels) must match exactly the segments shown in the drawing below, each increased by 10mm (to allow for the bend radius); the two end segments will be 20mm longer, since they'll only be trimmed with a final cut at the end of the process, once the cover has been placed on the chassis and the final cutting lines have been marked.<\/p>\n<p><a href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING.pdf\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28557 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING.png\" alt=\"PEDRO_TOP_CUTTING_AND_BLENDING\" width=\"811\" height=\"420\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING.png 811w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING-416x215.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING-300x155.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING-768x398.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING-610x316.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING-480x249.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING-600x311.png 600w\" sizes=\"auto, (max-width: 811px) 100vw, 811px\" \/><\/a><\/p>\n<p>Now place the piece we've just cut onto our plexiglass bender, position it so the section to be bent lines up with the center of the heating element, set the bend angle to 45\u00b0 using the adjustable protractor bracket, and switch on the bender. Once it reaches bending temperature, slowly raise the rotating table, and once it reaches the protractor bracket's stop, hold it in position for a few minutes with the machine switched off. Repeat this process for every bend needed. Finally, trim the piece with the Dremel and sandpaper after cutting away the excess material at the ends.<\/p>\n<p>In the end we should get a result similar to this:<\/p>\n<p><a href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP_CUTTING_AND_BLENDING.pdf\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28555 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP.fw_.png\" alt=\"PEDRO_TOP\" width=\"683\" height=\"448\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP.fw_.png 683w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP.fw_-416x273.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP.fw_-300x197.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP.fw_-610x400.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP.fw_-480x315.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_TOP.fw_-600x394.png 600w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"Installiamo_tutta_la_componentistica_Hardware_nello_chassis_di_Pedro\"><\/a>Installing all the hardware into Pedro's chassis<\/h3>\n<p>Before installing the 4 TB6600 stepper driver modules, we need to configure them to set the microstep parameters, the phase current and the peak current for the stepper motors.<\/p>\n<p>A seconda del modello di stepper motor installato dovremo provvedere a configurare gli switch presenti su uno dei lati corti di ogni modulo. Le posizioni ON o OFF dei primi 3 switch presenti servono a configurare la definizione minima del passo (step) del motore in <em>Microstep<\/em>, secondo le seguente tabella:<\/p>\n<table class=\"aligncenter\" style=\"width: 41.7799%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 36.3759%;\"><b>Subdivision<\/b><\/td>\n<td style=\"width: 32.5055%;\"><b>Pulse \/ circle<\/b><\/td>\n<td style=\"width: 8.17628%;\"><b>\u00a0S1<\/b><\/td>\n<td style=\"width: 10.6293%;\"><b>\u00a0S2<\/b><\/td>\n<td style=\"width: 17.1065%;\"><b>\u00a0S3<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 36.3759%;\"><b>\u00a0NC<\/b><\/td>\n<td style=\"width: 32.5055%;\"><b>\u00a0NC<\/b><\/td>\n<td style=\"width: 8.17628%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"width: 10.6293%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"width: 17.1065%;\"><b>\u00a0ON<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 36.3759%;\"><b>\u00a01<\/b><\/td>\n<td style=\"width: 32.5055%;\"><b>\u00a0200<\/b><\/td>\n<td style=\"width: 8.17628%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"width: 10.6293%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"width: 17.1065%;\"><b>\u00a0OFF<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 36.3759%;\"><b>\u00a02\/A<\/b><\/td>\n<td style=\"width: 32.5055%;\"><b>\u00a0400<\/b><\/td>\n<td style=\"width: 8.17628%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"width: 10.6293%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"width: 17.1065%;\"><b>\u00a0ON<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 36.3759%;\"><b>\u00a02\/B<\/b><\/td>\n<td style=\"width: 32.5055%;\"><b>\u00a0400<\/b><\/td>\n<td style=\"width: 8.17628%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"width: 10.6293%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"width: 17.1065%;\"><b>\u00a0ON<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 36.3759%;\"><b>\u00a04<\/b><\/td>\n<td style=\"width: 32.5055%;\"><b>\u00a0800<\/b><\/td>\n<td style=\"width: 8.17628%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"width: 10.6293%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"width: 17.1065%;\"><b>\u00a0OFF<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 36.3759%;\"><b>\u00a08<\/b><\/td>\n<td style=\"width: 32.5055%;\"><b>\u00a01600<\/b><\/td>\n<td style=\"width: 8.17628%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"width: 10.6293%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"width: 17.1065%;\"><b>\u00a0OFF<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 36.3759%;\"><b>\u00a016<\/b><\/td>\n<td style=\"width: 32.5055%;\"><b>\u00a03200<\/b><\/td>\n<td style=\"width: 8.17628%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"width: 10.6293%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"width: 17.1065%;\"><b>\u00a0ON<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 36.3759%;\"><b>\u00a032<\/b><\/td>\n<td style=\"width: 32.5055%;\"><b>\u00a06400<\/b><\/td>\n<td style=\"width: 8.17628%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"width: 10.6293%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"width: 17.1065%;\"><b>\u00a0OFF<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: center;\">gli ultimi 3 invece a configurare la corrente di fase, <em>Current (A),<\/em> e contemporaneamente la Corrente di Picco, <em>PK Current,<\/em> secondo questa:<\/p>\n<table class=\"aligncenter\" style=\"width: 42.0632%; height: 287px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 23px;\">\n<td style=\"height: 23px; width: 30.0813%;\"><b>Average current<\/b><\/td>\n<td style=\"height: 23px; width: 25.2033%;\"><b>\u00a0Peak current<\/b><\/td>\n<td style=\"height: 23px; width: 11.4974%;\"><b>\u00a0S4<\/b><\/td>\n<td style=\"height: 23px; width: 8.01481%;\"><b>\u00a0S5\u00a0<\/b><\/td>\n<td style=\"height: 23px; width: 11.5283%;\"><b>\u00a0S6<\/b><\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"height: 23px; width: 30.0813%;\"><b>\u00a00.5<\/b><\/td>\n<td style=\"height: 23px; width: 25.2033%;\"><b>\u00a00.7<\/b><\/td>\n<td style=\"height: 23px; width: 11.4974%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"height: 23px; width: 8.01481%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"height: 23px; width: 11.5283%;\"><b>\u00a0ON<\/b><\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"height: 23px; width: 30.0813%;\"><b>\u00a01.0<\/b><\/td>\n<td style=\"height: 23px; width: 25.2033%;\"><b>\u00a01.2<\/b><\/td>\n<td style=\"height: 23px; width: 11.4974%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"height: 23px; width: 8.01481%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"height: 23px; width: 11.5283%;\"><b>\u00a0ON<\/b><\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"height: 23px; width: 30.0813%;\"><b>\u00a01.5<\/b><\/td>\n<td style=\"height: 23px; width: 25.2033%;\"><b>\u00a01.7<\/b><\/td>\n<td style=\"height: 23px; width: 11.4974%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"height: 23px; width: 8.01481%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"height: 23px; width: 11.5283%;\"><b>\u00a0OFF<\/b><\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"height: 23px; width: 30.0813%;\"><b>\u00a02.0<\/b><\/td>\n<td style=\"height: 23px; width: 25.2033%;\"><b>\u00a02.2<\/b><\/td>\n<td style=\"height: 23px; width: 11.4974%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"height: 23px; width: 8.01481%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"height: 23px; width: 11.5283%;\"><b>\u00a0OFF<\/b><\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"height: 23px; width: 30.0813%;\"><b>\u00a02.5<\/b><\/td>\n<td style=\"height: 23px; width: 25.2033%;\"><b>\u00a02.7<\/b><\/td>\n<td style=\"height: 23px; width: 11.4974%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"height: 23px; width: 8.01481%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"height: 23px; width: 11.5283%;\"><b>\u00a0ON<\/b><\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"height: 23px; width: 30.0813%;\"><b>\u00a02.8<\/b><\/td>\n<td style=\"height: 23px; width: 25.2033%;\"><b>\u00a02.9<\/b><\/td>\n<td style=\"height: 23px; width: 11.4974%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"height: 23px; width: 8.01481%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"height: 23px; width: 11.5283%;\"><b>\u00a0ON<\/b><\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"height: 23px; width: 30.0813%;\"><b>\u00a03.0<\/b><\/td>\n<td style=\"height: 23px; width: 25.2033%;\"><b>\u00a03.2<\/b><\/td>\n<td style=\"height: 23px; width: 11.4974%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"height: 23px; width: 8.01481%;\"><b>\u00a0ON<\/b><\/td>\n<td style=\"height: 23px; width: 11.5283%;\"><b>\u00a0OFF<\/b><\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"height: 23px; width: 30.0813%;\"><b>\u00a03.5<\/b><\/td>\n<td style=\"height: 23px; width: 25.2033%;\"><b>\u00a04.0<\/b><\/td>\n<td style=\"height: 23px; width: 11.4974%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"height: 23px; width: 8.01481%;\"><b>\u00a0OFF<\/b><\/td>\n<td style=\"height: 23px; width: 11.5283%;\"><b>\u00a0OFF<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>Nel nostro caso si tratta di stepper motors del tipo <strong>17HS8401 <\/strong>con un valore di corrente massima per fase di 1.7 A, dunque gli ultimi 3 switch andranno configurati come ON, ON, OFF. I primi tre impostati per un valore di suddivisione dei Microstep pari a 8, ovvero OFF, ON, OFF. Naturalmente accordate i valori necessari al vostro tipo di motori, potete trovare il datasheet relativo in rete effettuando una ricerca con il nome del modello.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28566 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/TB6600_switch.png\" alt=\"TB6600_switch\" width=\"600\" height=\"251\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/TB6600_switch.png 600w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/TB6600_switch-416x174.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/TB6600_switch-300x126.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/TB6600_switch-480x201.png 480w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>With all the settings made, all that's left is to mount the 4 stepper drivers inside Pedro's chassis, using the mounting holes, hex-socket screws and M3 nuts.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28571 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_STEPPER_DRIVER_INSTALLATION.fw_.png\" alt=\"PEDRO_STEPPER_DRIVER_INSTALLATION.fw\" width=\"604\" height=\"502\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_STEPPER_DRIVER_INSTALLATION.fw_.png 604w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_STEPPER_DRIVER_INSTALLATION.fw_-416x346.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_STEPPER_DRIVER_INSTALLATION.fw_-300x249.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_STEPPER_DRIVER_INSTALLATION.fw_-480x399.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_STEPPER_DRIVER_INSTALLATION.fw_-600x499.png 600w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/p>\n<p>Ora \u00e8 giunto il momento di installare dei <em>distanziatori esagonali M3 in plastica<\/em> sotto la scheda Wemos 2560, utilizzando gli appositi fori presenti su quest&#8217;ultima e 6 viti a brugola. Successivamente fissiamo la scheda al centro dello chassis di Pedro avvitando ulteriori 6 viti a brugola esagonali dal lato inferiore del pannello stesso facendole passare attraverso i 6 fori predisposti.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28579 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_WEMOS_2560_INSTALLATION.fw_.png\" alt=\"PEDRO_WEMOS_2560_INSTALLATION\" width=\"489\" height=\"518\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_WEMOS_2560_INSTALLATION.fw_.png 489w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_WEMOS_2560_INSTALLATION.fw_-416x441.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_WEMOS_2560_INSTALLATION.fw_-283x300.png 283w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_WEMOS_2560_INSTALLATION.fw_-480x508.png 480w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/p>\n<h3><a id=\"Realizziamo_il_cablaggio_di_Pedro\"><\/a>Wiring up Pedro and double-checking every connection several times<\/h3>\n<p>To make stable, secure connections between the internal electronic parts, we'll make some cables fitted with the appropriate connectors.<\/p>\n<p>Cominciamo a realizzare <em>8 cavetti maschio\/femmina<\/em> composti ciascuno di <em>2 fili Dupont<\/em> (4 con coppie di fili rossi e gialli e 4 con coppie di fili rossi e arancioni), <em>1 pin maschio<\/em> ad una estremit\u00e0 di ciascun filo da un lato e <em>un blocco con alloggiamenti per 3 pin femmina<\/em> dall&#8217;altro.<\/p>\n<p>Inseriamo i terminali maschi nelle morsettiere degli <em>Stepper Driver TB6600<\/em> e stringiamo le viti dei morsetti per bloccarli al loro interno. Colleghiamo i terminali femmina delle altre estremit\u00e0 alla Sensor Shield seguendo lo schema indicato di seguito.<\/p>\n<p>Terminato il precedente passaggio procediamo ad applicare i terminali elettrici a boccola isolata ai cavi di collegamento tra motori stepper e stepper driver TB6600 e tra batterie Lipo e questi ultimi. Per facilitare il cablaggio distribuiremo in due gruppi cavi con lo stesso colore (giallo o nero) mediante un connettore a due vie di <em>tipo mammut<\/em>, in modo da ottenere due soli cavi in uscita verso la seconda batteria Lipo.<\/p>\n<p>Finally, to connect the Bluetooth module, the nRF24L01+ module and the LED module to the Sensor Shield, we'll use female\/female Dupont wires.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-28594 size-full aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_WIRING_SCHEMA_02.fw_-3.png\" alt=\"PEDRO_WIRING_SCHEMA\" width=\"3493\" height=\"3019\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28716 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ELECTRONICS.png\" alt=\"PEDRO_ELECTRONICS\" width=\"727\" height=\"714\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ELECTRONICS.png 727w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ELECTRONICS-416x409.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ELECTRONICS-300x295.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ELECTRONICS-610x599.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ELECTRONICS-480x471.png 480w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ELECTRONICS-50x50.png 50w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28719 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ASSEMBLATO.png\" alt=\"PEDRO_ASSEMBLATO\" width=\"793\" height=\"690\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ASSEMBLATO.png 793w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ASSEMBLATO-416x362.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ASSEMBLATO-300x261.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ASSEMBLATO-768x668.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ASSEMBLATO-610x531.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_ASSEMBLATO-480x418.png 480w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><\/p>\n<h3><a id=\"Installiamo_il_firmware_FREERTOS_Arduino_sulla_Wemos_2560\"><\/a>Installing the Arduino FreeRTOS firmware on the Wemos 2560<\/h3>\n<h4>What is an RTOS?<\/h4>\n<p>An RTOS, also known as a real-time operating system, is an operating system designed to meet the requirements of real-time applications. It can process data as it arrives, typically without buffering delays. An RTOS is essentially a combination of predefined function calls.<\/p>\n<h4>Introduction to FreeRTOS<\/h4>\n<p>Unlike typical real-time operating systems, FreeRTOS is specifically designed for microcontrollers. Since microcontrollers have limited resources, we need an operating system scaled to what's actually available on them. It's an open-source kernel, meaning it can be downloaded for free and used in RTOS-based applications.<\/p>\n<h4>Setting up the Wemos to upload the FreeRTOS firmware<\/h4>\n<p>Prima di effettuare il caricamento del firmware FreeRTOS sulla Wemos 2560 occorre rimuovere la scheda Sensor Shield V1 precedentemente installata sulla Wemos per accedere pi\u00f9 facilmente ai DIP Switch che servono ad impostarne la modalit\u00e0 di comunicazione. Eseguita questa operazione con molta attenzione, cercando di non danneggiare nessun componente, avremo libero accesso ai DIP Switch che imposteremo per la comunicazione <strong><em>USB &lt;-&gt; ATmega2560<\/em><\/strong>, quella che ci occorre per trasferire il firmware sulla Wemos 2560 senza sovrascrivere anche la memoria dell&#8217;ESP8266.<\/p>\n<p>Per fare ci\u00f2 imposteremo gli <strong>switch da 1 a 8<\/strong>, rispettivamente su: <strong>OFF, OFF, <span style=\"color: #ff9900;\">ON<\/span>, <span style=\"color: #ff9900;\">ON<\/span>, OFF, OFF, OFF, OFF.<\/strong><\/p>\n<p>Now download Pedro's firmware by clicking the button shown below.<\/p>\n<p style=\"text-align: center;\"><a class=\"button\" href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/09\/ROBOT_PEDRO_FREERTOS_FIRMWARE_01.zip\" target=\"_blank\" rel=\"noopener\">DOWNLOAD PEDRO FIRMWARE<\/a><\/p>\n<p>All that's left is to connect the USB cable to the Wemos 2560 R3 and upload the firmware by clicking \"Upload\" on the Arduino IDE toolbar and selecting the file you just downloaded.<\/p>\n<pre><\/pre>\n<h3><a id=\"Realizziamo_il_Long_Range_Controller\"><\/a>Building the Long Range Controller<\/h3>\n<p>The Long Range Controller described below is a long-range robot remote control based on the Arduino Nano.<br \/>\nThis handy tool for controlling the robot remotely was designed by me to be easy to build using the same materials as the PEDRO robot \u2014 plywood and plexiglass \u2014 plus a few sections of aluminum profile, some M3, M6 and M8 screws, a small enclosure for the nRF24L01+ module with serial converter, a 2.4GHz long-range Wi-Fi antenna and an additional power module, 2 joystick modules, 2 potentiometers, 4 momentary push-buttons, a 4-line x 20-character LCD module with an I2C module, 3 ON-OFF switches, a 2-cell battery holder, and 2 18650-type batteries.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-28709 size-full aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long-Range-Controller-v33.fw_.png\" alt=\"Long Range Controller v33.fw\" width=\"547\" height=\"519\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long-Range-Controller-v33.fw_.png 547w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long-Range-Controller-v33.fw_-416x395.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long-Range-Controller-v33.fw_-300x285.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long-Range-Controller-v33.fw_-480x455.png 480w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/p>\n<p>First, download and print the following PDFs, which will guide us in cutting the 8mm-thick plywood elements, the same type already used to build the PEDRO robot's chassis.<\/p>\n<p>Click the following dimensioned drawing and download the 1:1 scale PDF drawing of the remote control's side panels.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/09\/Sponde_Long_Range_Controller-Disegno-v1.pdf\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28636 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Sponda_dimensioni.png\" alt=\"Long_Range_Controller_Sponda_dimensioni\" width=\"866\" height=\"488\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Sponda_dimensioni.png 866w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Sponda_dimensioni-416x234.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Sponda_dimensioni-300x169.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Sponda_dimensioni-768x433.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Sponda_dimensioni-610x344.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Sponda_dimensioni-480x270.png 480w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Now do the same for the drawing of the remote control's base:<\/p>\n<p><a href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/09\/Long_Range_Controller_Disegno_base-v1.pdf\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-28640 size-full\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_base-1.png\" alt=\"\" width=\"397\" height=\"373\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_base-1.png 397w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_base-1-300x282.png 300w\" sizes=\"auto, (max-width: 397px) 100vw, 397px\" \/><\/a><\/p>\n<p>Once the cutting and drilling of the remote control's side panels and base are done, finish the edges with fine-grit sandpaper.<br \/>\nAt this point all that's left is to glue the three pieces together in place with two-part epoxy glue; the final result should look like the following drawing:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28643 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Sponde.png\" alt=\"Long_Range_Controller_Assemblaggio_Sponde\" width=\"717\" height=\"594\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Sponde.png 717w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Sponde-416x345.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Sponde-300x249.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Sponde-610x505.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Sponde-480x398.png 480w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<p>From an L-shaped profile measuring 50mm x 50mm x 5000mm, cut three segments: the first one 184mm long, and the other four 50mm long each.<\/p>\n<p><a href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/09\/Profilato_L_184_Dimensioni-v1.pdf\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-28659 size-full aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_184mm_dimensioni.png\" alt=\"Long_Range_Controller_profilato_L_184mm_dimensioni\" width=\"799\" height=\"286\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_184mm_dimensioni.png 799w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_184mm_dimensioni-416x149.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_184mm_dimensioni-300x107.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_184mm_dimensioni-768x275.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_184mm_dimensioni-610x218.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_184mm_dimensioni-480x172.png 480w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/09\/Profilato_L_46mm-Disegno-v1.pdf\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28650 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_46mm.png\" alt=\"Long_Range_Controller_profilato_L_46mm\" width=\"687\" height=\"519\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_46mm.png 687w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_46mm-416x314.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_46mm-300x227.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_46mm-610x461.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_profilato_L_46mm-480x363.png 480w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/a><\/p>\n<p>Once you've cut the segments to the right length, drill them following the diagrams' layout.<br \/>\nAt this point all that's left is to fit them into the remote control's chassis like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-28662 size-full aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Profilati_L_assemblati_01.png\" alt=\"Long_Range_Controller_Assemblaggio_Profilati_L_assemblati_01\" width=\"715\" height=\"593\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Profilati_L_assemblati_01.png 715w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Profilati_L_assemblati_01-416x345.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Profilati_L_assemblati_01-300x249.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Profilati_L_assemblati_01-610x506.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Profilati_L_assemblati_01-480x398.png 480w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>Ora possiamo installare il microcontrollore Arduino Nano con la sua scheda di espansione e il <a href=\"https:\/\/www.fanbotica.com\/en\/portfolio\/enclosure-nrf24l01-da-stampare-in-3d\/\" target=\"_blank\" rel=\"noopener\">Modulo nRF24L01+ con il suo minibox<\/a>. Per fissare la scheda al case ci serviremo di distanziatori esagonali in plastica tipo M3. Procederemo con l&#8217;introdurre dal lato inferiore della base le viti a brugola M6 attraverso gli appositi fori realizzati in precedenza.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28665 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Elettronica_Base_Assemblata.fw_.png\" alt=\"Long_Range_Controller_Elettronica_Base_Assemblata\" width=\"715\" height=\"592\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Elettronica_Base_Assemblata.fw_.png 715w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Elettronica_Base_Assemblata.fw_-416x344.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Elettronica_Base_Assemblata.fw_-300x248.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Elettronica_Base_Assemblata.fw_-610x505.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Elettronica_Base_Assemblata.fw_-480x397.png 480w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>Now let's move on to making the plexiglass cover: cut a strip of plexiglass from our sheet as we did earlier for the robot's cover, and hot-bend it using the plexiglass bender according to the following diagram:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28673 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Piegatura_Cover_Plexiglass.png\" alt=\"Long_Range_Controller_Piegatura_Cover_Plexiglass\" width=\"697\" height=\"358\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Piegatura_Cover_Plexiglass.png 697w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Piegatura_Cover_Plexiglass-416x214.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Piegatura_Cover_Plexiglass-300x154.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Piegatura_Cover_Plexiglass-610x313.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Piegatura_Cover_Plexiglass-480x247.png 480w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/p>\n<p>Drill the planned holes into the cover using progressively larger drill bits (hand or drill press) until you patiently reach the hole's final diameter \u2014 don't rush, or you risk cracking the plexiglass sheet. Step drill bits are recommended for this task. Finish the job with a file and fine-grit sandpaper.<\/p>\n<p>The final result should look like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28670 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Plexiglass_Cover.png\" alt=\"Long_Range_Controller_Plexiglass_Cover\" width=\"772\" height=\"647\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Plexiglass_Cover.png 772w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Plexiglass_Cover-416x349.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Plexiglass_Cover-300x251.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Plexiglass_Cover-768x644.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Plexiglass_Cover-610x511.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Plexiglass_Cover-480x402.png 480w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/p>\n<p>Infine installiamo i potenziometri, i moduli joystick, i pulsanti momentanei, gli switch, ed infine le viti per fissare la cover di plexiglass al case del radio-controller. Questo \u00e8 l&#8217;oggetto completamente assemblato:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28677 aligncenter\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Completo.png\" alt=\"Long_Range_Controller_Assemblaggio_Completo\" width=\"724\" height=\"612\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Completo.png 724w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Completo-416x352.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Completo-300x254.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Completo-610x516.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Assemblaggio_Completo-480x406.png 480w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/p>\n<p>All that's left is to finish up with the wiring, which we'll do following the connection diagram shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-28714 size-full\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1.png\" alt=\"Long_Range_Controller_Wiring_Schema\" width=\"1111\" height=\"638\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1.png 1111w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1-416x239.png 416w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1-300x172.png 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1-768x441.png 768w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1-1024x588.png 1024w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1-610x350.png 610w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1-1080x620.png 1080w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1-980x563.png 980w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Long_Range_Controller_Wiring_Schema.fw_-1-480x276.png 480w\" sizes=\"auto, (max-width: 1111px) 100vw, 1111px\" \/><\/p>\n<p>Infine scarichiamo il firmware cliccando sul pulsante seguente ed eseguiamo il caricamento dello stesso sulla scheda Arduino Nano collegando quest&#8217;ultima al nostro PC con l&#8217;apposito cavo USB Tipo B.<\/p>\n<p style=\"text-align: center;\"><a class=\"button\" href=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/09\/Long_Range_Controller_Firmware.zip\" target=\"_blank\" rel=\"noopener\">LONG RANGE CONTROLLER FIRMWARE<\/a><\/p>\n<p>&nbsp;<\/p>\n<div id='gallery-1' class='gallery galleryid-28293 gallery-columns-3 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/attachment\/long-range_controller_01\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Long-Range_Controller_01-150x150.jpeg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Long-Range_Controller\" aria-describedby=\"gallery-1-28423\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Long-Range_Controller_01-150x150.jpeg 150w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Long-Range_Controller_01-324x324.jpeg 324w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Long-Range_Controller_01-100x100.jpeg 100w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Long-Range_Controller_01-300x300.jpeg 300w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/06\/Long-Range_Controller_01-50x50.jpeg 50w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-28423'>\n\t\t\t\tLong-Range Controller\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/attachment\/piegatrice_plexiglass\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Piegatrice_Plexiglass-150x150.jpeg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Piegatrice_Plexiglass\" aria-describedby=\"gallery-1-28724\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Piegatrice_Plexiglass-150x150.jpeg 150w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Piegatrice_Plexiglass-324x324.jpeg 324w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Piegatrice_Plexiglass-100x100.jpeg 100w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-28724'>\n\t\t\t\tPlexiglass bender\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/attachment\/pedro_maker_faire_rome_2022_01\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_01-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Pedro_Maker_Faire_Rome_2022\" aria-describedby=\"gallery-1-28910\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_01-150x150.jpg 150w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_01-324x324.jpg 324w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_01-100x100.jpg 100w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_01-50x50.jpg 50w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-28910'>\n\t\t\t\tPedro at Maker Faire Rome 2022\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/attachment\/pedro_maker_faire_rome_2022_02\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_02-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Pedro_Maker_Faire_Rome_2022\" aria-describedby=\"gallery-1-28911\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_02-150x150.jpg 150w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_02-324x324.jpg 324w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_02-100x100.jpg 100w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_02-50x50.jpg 50w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-28911'>\n\t\t\t\tPedro at Maker Faire Rome 2022\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/attachment\/pedro_maker_faire_rome_2022_03\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_03-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Pedro_Maker_Faire_Rome_2022\" aria-describedby=\"gallery-1-28912\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_03-150x150.jpg 150w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_03-324x324.jpg 324w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_03-100x100.jpg 100w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_03-50x50.jpg 50w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-28912'>\n\t\t\t\tPedro at Maker Faire Rome 2022\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/attachment\/pedro_maker_faire_rome_2022_05\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_05-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Pedro_Maker_Faire_Rome_2022\" aria-describedby=\"gallery-1-28914\" srcset=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_05-150x150.jpg 150w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_05-324x324.jpg 324w, https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/Pedro_Maker_Faire_Rome_2022_05-100x100.jpg 100w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-28914'>\n\t\t\t\tPedro at Maker Faire Rome 2022\n\t\t\t\t<\/figcaption><\/figure>\n\t\t<\/div>\n\n<h3><\/h3>\n<h3><a id=\"Eseguiamo_i_test_di_controllo\"><\/a>Running the control tests<\/h3>","protected":false},"excerpt":{"rendered":"<p>SCOPO DELLA GUIDA: Realizzare un Robot Domotico Personale Multiruolo che chiameremo per brevit\u00e0 &#8220;PEDRO&#8221; (PErsonal-Domotic-RObot). Questo robot sar\u00e0 autonomo e\/o radiocomandato, inoltre sar\u00e0 basato su Arduino Mega 2560 R3 e Espressif ESP8266. PEDRO sar\u00e0 dotato di ruote Mecanum e collegato tramite Wi-Fi di casa e protocollo MQTT ad Home Assistant, l&#8217;Hub domotico open source pi\u00f9 [&hellip;]<\/p>\n","protected":false},"featured_media":29306,"template":"","class_list":["post-28293","jetpack-portfolio","type-jetpack-portfolio","status-publish","has-post-thumbnail","hentry","jetpack-portfolio-type-domotica","jetpack-portfolio-type-robot-autonomi","jetpack-portfolio-type-robot-e-componenti-in-3d","jetpack-portfolio-tag-alexa-media-player","jetpack-portfolio-tag-arduino-mega","jetpack-portfolio-tag-esp8266","jetpack-portfolio-tag-freertos","jetpack-portfolio-tag-mecanum-robot","jetpack-portfolio-tag-raspberry-pi","jetpack-portfolio-tag-robot","jetpack-portfolio-tag-robot-domotico","jetpack-portfolio-tag-tb6600"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Il Robot Domotico Personale Pedro, Autonomo e\/o RC - Fanbotica<\/title>\n<meta name=\"description\" content=\"Realizza il Robot Domotico Personale PED con ruote Mecanum, basato su Arduino Mega 2560 R3 e Espressif ESP8266, MQTT e Home Assistant.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Il Robot Domotico Personale Pedro, Autonomo e\/o RC - Fanbotica\" \/>\n<meta property=\"og:description\" content=\"Realizza il Robot Domotico Personale PED con ruote Mecanum, basato su Arduino Mega 2560 R3 e Espressif ESP8266, MQTT e Home Assistant.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/\" \/>\n<meta property=\"og:site_name\" content=\"Fanbotica\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/fanbotica\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-25T07:11:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_the_robot_built_with_recycled_materials_13.fw_-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1360\" \/>\n\t<meta property=\"og:image:height\" content=\"533\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Fanbotwitt\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"50 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/portfolio\\\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\\\/\",\"url\":\"https:\\\/\\\/www.fanbotica.com\\\/portfolio\\\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\\\/\",\"name\":\"Il Robot Domotico Personale Pedro, Autonomo e\\\/o RC - Fanbotica\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/portfolio\\\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/portfolio\\\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fanbotica.com\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/pedro_homepage_header_remake.png\",\"datePublished\":\"2022-07-14T09:08:31+00:00\",\"dateModified\":\"2023-09-25T07:11:17+00:00\",\"description\":\"Realizza il Robot Domotico Personale PED con ruote Mecanum, basato su Arduino Mega 2560 R3 e Espressif ESP8266, MQTT e Home Assistant.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/portfolio\\\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fanbotica.com\\\/portfolio\\\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/portfolio\\\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fanbotica.com\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/pedro_homepage_header_remake.png\",\"contentUrl\":\"https:\\\/\\\/www.fanbotica.com\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/pedro_homepage_header_remake.png\",\"width\":640,\"height\":610},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/portfolio\\\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fanbotica.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Progetti\",\"item\":\"https:\\\/\\\/www.fanbotica.com\\\/portfolio\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Il Robot Domotico Personale Pedro, Autonomo e\\\/o RC\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/#website\",\"url\":\"https:\\\/\\\/www.fanbotica.com\\\/\",\"name\":\"Fanbotica\",\"description\":\"Per i fan della robotica.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.fanbotica.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/#organization\",\"name\":\"Fanbotica\",\"url\":\"https:\\\/\\\/www.fanbotica.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.fanbotica.com\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/FB_IMG_1537194787952.jpg?fit=512%2C512&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.fanbotica.com\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/FB_IMG_1537194787952.jpg?fit=512%2C512&ssl=1\",\"width\":512,\"height\":512,\"caption\":\"Fanbotica\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fanbotica.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/fanbotica\\\/\",\"https:\\\/\\\/x.com\\\/Fanbotwitt\",\"https:\\\/\\\/www.instagram.com\\\/fanbotica\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/fanbotica\\\/\",\"https:\\\/\\\/www.pinterest.it\\\/fanbotica\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCEys5L0zVCzcgJY9j2c3wPg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Il Robot Domotico Personale Pedro, Autonomo e\/o RC - Fanbotica","description":"Realizza il Robot Domotico Personale PED con ruote Mecanum, basato su Arduino Mega 2560 R3 e Espressif ESP8266, MQTT e Home Assistant.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/","og_locale":"en_GB","og_type":"article","og_title":"Il Robot Domotico Personale Pedro, Autonomo e\/o RC - Fanbotica","og_description":"Realizza il Robot Domotico Personale PED con ruote Mecanum, basato su Arduino Mega 2560 R3 e Espressif ESP8266, MQTT e Home Assistant.","og_url":"https:\/\/www.fanbotica.com\/en\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/","og_site_name":"Fanbotica","article_publisher":"https:\/\/www.facebook.com\/fanbotica\/","article_modified_time":"2023-09-25T07:11:17+00:00","og_image":[{"width":1360,"height":533,"url":"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2022\/07\/PEDRO_the_robot_built_with_recycled_materials_13.fw_-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@Fanbotwitt","twitter_misc":{"Estimated reading time":"50 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.fanbotica.com\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/","url":"https:\/\/www.fanbotica.com\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/","name":"Il Robot Domotico Personale Pedro, Autonomo e\/o RC - Fanbotica","isPartOf":{"@id":"https:\/\/www.fanbotica.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fanbotica.com\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/#primaryimage"},"image":{"@id":"https:\/\/www.fanbotica.com\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2026\/08\/pedro_homepage_header_remake.png","datePublished":"2022-07-14T09:08:31+00:00","dateModified":"2023-09-25T07:11:17+00:00","description":"Realizza il Robot Domotico Personale PED con ruote Mecanum, basato su Arduino Mega 2560 R3 e Espressif ESP8266, MQTT e Home Assistant.","breadcrumb":{"@id":"https:\/\/www.fanbotica.com\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fanbotica.com\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.fanbotica.com\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/#primaryimage","url":"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2026\/08\/pedro_homepage_header_remake.png","contentUrl":"https:\/\/www.fanbotica.com\/wp-content\/uploads\/2026\/08\/pedro_homepage_header_remake.png","width":640,"height":610},{"@type":"BreadcrumbList","@id":"https:\/\/www.fanbotica.com\/portfolio\/il-robot-domotico-personale-pedro-autonomo-e-o-rc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fanbotica.com\/"},{"@type":"ListItem","position":2,"name":"Progetti","item":"https:\/\/www.fanbotica.com\/portfolio\/"},{"@type":"ListItem","position":3,"name":"Il Robot Domotico Personale Pedro, Autonomo e\/o RC"}]},{"@type":"WebSite","@id":"https:\/\/www.fanbotica.com\/#website","url":"https:\/\/www.fanbotica.com\/","name":"Fanbotica","description":"Per i fan della robotica.","publisher":{"@id":"https:\/\/www.fanbotica.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fanbotica.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.fanbotica.com\/#organization","name":"Fanbotica","url":"https:\/\/www.fanbotica.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.fanbotica.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.fanbotica.com\/wp-content\/uploads\/2018\/09\/FB_IMG_1537194787952.jpg?fit=512%2C512&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.fanbotica.com\/wp-content\/uploads\/2018\/09\/FB_IMG_1537194787952.jpg?fit=512%2C512&ssl=1","width":512,"height":512,"caption":"Fanbotica"},"image":{"@id":"https:\/\/www.fanbotica.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/fanbotica\/","https:\/\/x.com\/Fanbotwitt","https:\/\/www.instagram.com\/fanbotica\/","https:\/\/www.linkedin.com\/in\/fanbotica\/","https:\/\/www.pinterest.it\/fanbotica\/","https:\/\/www.youtube.com\/channel\/UCEys5L0zVCzcgJY9j2c3wPg"]}]}},"_links":{"self":[{"href":"https:\/\/www.fanbotica.com\/en\/wp-json\/wp\/v2\/jetpack-portfolio\/28293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fanbotica.com\/en\/wp-json\/wp\/v2\/jetpack-portfolio"}],"about":[{"href":"https:\/\/www.fanbotica.com\/en\/wp-json\/wp\/v2\/types\/jetpack-portfolio"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fanbotica.com\/en\/wp-json\/wp\/v2\/media\/29306"}],"wp:attachment":[{"href":"https:\/\/www.fanbotica.com\/en\/wp-json\/wp\/v2\/media?parent=28293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}