Rover Arduino (WeMos D1) Controllato Da Smartphone

by Fintremai in Circuits > Arduino

1185 Views, 12 Favorites, 0 Comments

Rover Arduino (WeMos D1) Controllato Da Smartphone

Tank 01 .jpg

Rover Arduino realizzato con scheda WeMos D1 completa di modulo Wi-Fi. Il rover è controllato direttamente dallo smartphone e prevede due modalita' di funzionamento. Nella modalita' "Radiocomando" il rover viene guidato attraverso l'applicazione. Nella modalita' "Gioco" il rover si muove da solo, in maniera casuale, e tocca a noi fermarlo! Per la modalita' gioco è necessario che lo smatphone disponga di una porta ad infrarossi.

Quello realizzato fin qui è un prototipo ed è sicuramente migliorabile in futuro.


Rover Arduino made with WeMos D1 board complete with Wi-Fi module. The rover is controlled directly from the smartphone and has two modes of operation. In "Radio Control" mode the rover is guided through the application. In "Game" mode the rover moves by itself, randomly, and it's up to us to stop it! For game mode, the smartphone must have an infrared port. The one made so far is a prototype and can certainly be improved in the future.

Supplies

Componenti.jpg

Questi le componenti utilizzate per realizzare il progetto:

These are the components used to carry out the project:


Scheda WeMos D1

Driver Motori L298N

Telaio stampato in 3D

Quattro motori e relative ruote

Batteria (Nel mio caso li.fe 1500 mAh 9.9V)

Sensore IR (per la modalita' gioco)

Interruttore

Buzzer

Viti e dadi M3 lunghezza 16mm e 20 mm

Stampare Il Telaio in 3D

tank v02 v25.png
Rover.gif

Trovate qui i file stl da stampare in 3d per ottenere il telaio del rover. La mia stampa è stata realizzata in PLA con un riempimento del 35%. Sul telaio sono già presenti i fori per le viti e gli alloggiamenti dei dadi per l'assemblaggio dei vari componenti. Sono presenti inoltre i perni per l'inserimento delle schede elettroniche, che in questo modo non necessitano di ulteriori fissaggi. La scheda WeMos D1 ha le stesse dimensioni di una scheda Arduino Uno, il supporto è quindi perfettamente compatibile. Assieme al telaio è possibile stampare anche il rivestimento del rover .

Find here the stl files to print in 3d to obtain the rover frame. My print was made in PLA with a 35% infill. The holes for the screws and the slots for the nuts for assembling the various components are already present on the frame. There are also pins for inserting the electronic boards, which in this way do not require further fixings. The WeMos D1 board is the same size as an Arduino Uno board, so the mount fits perfectly. The cladding of the rover can also be printed together with the chassis.

Collegamenti E Assemblaggio

Tank_bb.jpg
Rover06.jpg
Rover05.jpg
IMG_20221231_132632.jpg

Nella prima foto lo schema con i collegamenti tra i vari componenti. Per assembalare il telaio del rover, fissare prima i motori ai loro supporti, con i dadi e le viti come da foto. Poi inserire i dadi negli alloggiamenti presenti nei supporti, innestare i supporti nel corpo centrale ed infine fissare il tutto con le viti.


In the first photo the diagram with the connections between the various components. To assemble the rover frame, first fix the motors to their mounts, with the nuts and screws as shown in the photo. Then insert the nuts in the slots present in the supports, insert the supports in the central body and finally fix everything with the screws.

Codice Arduino

Allego il file con il codice da caricare sulla scheda WeMos D1 attraverso l'IDE di Arduino! Qui un ottima spiegazione di come fare.

Una volta avviato, il codice genera una rete Wi-fi chiamara "Rover Wifi". Connettendo lo smartphone a questa rete attraverso l'applicazione sarà possibile controllare e giocare con il rover.


I attach the file with the code to upload on the WeMos D1 board through the Arduino IDE! Here is an excellent explanation of how to do it. Once started, the code generates a Wi-Fi network called "Rover Wifi". By connecting the smartphone to this network through the application, it will be possible to control and play with the rover.

Downloads

Applicazione Con Mit App Iventor

Rover01.jpg
Rover02.jpg
Rover03.jpg
Rover04.jpg

L'applicazione è stata creata con MIT app inventor. Screen1 prevede nove tasti che vanno a formare un joypad per guidare il movimento del rover e quattro tasti per i suoni. Lo switch "Play" rimanda allo screen2 che prevede un unico pulsante per l'invio del segnale infrarosso. Perchè l'applicazione funzioni ricordate che lo smartphone deve essere collagato alla rete WiFi generata dal rover.


The application was created with MIT app inventor. Screen1 has nine keys that form a joypad to guide the movement of the rover and four keys for sounds. The "Play" switch refers to screen2 which has a single button for sending the infrared signal. For the application to work, remember that the smartphone must be connected to the WiFi network generated by the rover.

Divertiti

Rover07.png
Rover08.jpg
Rover09.jpg

Link Utili

Video ed articoli che ho consultato per la realizzazione del progetto:

Videos and articles that I consulted for the realization of the project:


https://www.thingiverse.com/thing:5753125

https://www.youtube.com/watch?v=SzX-M6bzHYo

https://www.instructables.com/Arduino-WeMos-D1-WiFi-UNO-ESP-8266-IoT-IDE-Compati

https://mancusoa74.blogspot.com/2018/02/l298n-driver-motori-con-arduino.html

https://www.maffucci.it/2019/04/28/appunti-di-programmazione-su-arduino-rispondere-ad-un-telecomando-ad-infrarossi/