Acquista dagli OSOYOO | Acquista dagli USA | Acquista dal Regno Unito | Acquista dalla Germania | Acquista dall’Italia | Acquista dalla Francia | Acquista dalla Spagna | Acquista dal Giappone |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Acquista dagli OSOYOO | Acquista dagli USA | Acquista dal Regno Unito | Acquista dalla Germania | Acquista dall’Italia | Acquista dalla Francia | Acquista dalla Spagna | Acquista dal Giappone |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
In questa lezione, installeremo un sensore a ultrasuoni sull’auto robot e programmeremo l’auto in modo che mantenga una certa distanza dagli oggetti da spostare. È necessario completare la lezione 1 (assemblaggio dell’auto) prima di continuare con questa lezione.
Passo 1: Installa il telaio base dell’auto intelligente come nella Lezione 1. Se hai già completato l’installazione nella Lezione 1, lascialo com’è.
Passo 2:Installa il motore servo all’avantreno del telaio dell’auto con 2 viti autofilettanti M2.2 * 8 come segue:
Passo 3: Installa il modulo ad ultrasuoni sul supporto di montaggio con 4 viti M1.5 * 8 e dadi M1.5
Passo 4: Installa il supporto di montaggio per il modulo ad ultrasuoni sul motore servo con una vite autofilettante M2 * 4
Passo 5: Installa il modulo del buzzer sul telaio dell’auto con 1 vite di plastica M3, un pilastro di plastica M3 e un dado di plastica M3
Passo 6: Connetti il motore servo SG90 allo Scudo motore OSOYOO come nella seguente diagramma (Ricorda: NON rimuovere alcun filo già installato nella Lezione 1 ) :
Passo 7: Connetti il modulo ad ultrasuoni allo Scudo motore OSOYOO come nella seguente diagramma di connessione:
Passo 8: Connetti il modulo del buzzer allo Scudo motore OSOYOO come nella seguente diagramma di connessione
Open-sourceSoftware(IDE) | ![]() |
Scarica l’IDE qui: https://www.arduino.cc/en/Main/Software?setlang=en |
7zip è un’utilità gratuitaper zip che scompatta i file zip. | ![]() |
Scarica 7zip qui gratuitamente https://www.7-zip.org/ |
Installa l’ultima versione dell’IDE (se hai la versione dell’IDE successiva alla 1.1.16, salta questo passaggio).
Scarica l’IDE da https://www.arduino.cc/en/software, quindi installa il software.
Scarica Lesson 4 sample code , scompattalo, vedrai una cartella chiamata lesson-4
Collega la scheda OSOYOO Basic Board per Arduino al PC tramite cavo USB, apri l’IDE -> clicca su file -> clicca su Apri -> scegli il codice “lesson4.ino” nella cartella lesson4, carica il codice sulla scheda.
Nota: spegni la batteria o scollega l’adattatore di alimentazione durante il caricamento
Scegli la scheda e la porta corrispondenti al tuo progetto, carica lo sketch sulla scheda.
Allineamento iniziale della direzione del sensore ad ultrasuoni del servomotore
Dopo aver acceso l’auto, sentirai un lungo segnale acustico, quindi il servo farà alcuni movimenti e si fermerà infine in una direzione per 2 secondi. Durante questi primi 2 secondi, devi assicurarti che il sensore ad ultrasuoni (due occhi) sia rivolto dritto in avanti.
Se non è dritto in avanti, devi spegnere immediatamente l’auto e rimuovere il sensore dal servo, reinstallarlo e farlo puntare nella direzione dritta in avanti come nella seguente immagine.
Altrimenti il programma di evitamento degli ostacoli non funzionerà correttamente. Dopo aver regolato la direzione del sensore, accendi di nuovo l’auto. Dopo aver sentito il segnale acustico lungo, il sensore dovrebbe puntare dritto in avanti come nella seguente immagine. Se la sua direzione non è dritta in avanti, spegni l’auto e riallinea la direzione.
Accendi l’auto, muovi un oggetto o la tua mano di fronte al modulo ad ultrasuoni, e l’auto si muoverà in qualche distanza dall’oggetto o dalla tua mano. Quando ti avvicini all’auto, l’auto si muoverà indietro, come si dice “Non mi toccare”. Quando l’oggetto o la tua mano lasciano il modulo ad ultrasuoni, l’auto si fermerà.
No. | Dispositivo | Immagine | Quantità | Accessori |
1 | OSOYOO Basic Board
(totalmente compatibile con Arduino UNO R3) |
![]() |
1 | Clicca qui per acquistare |
2 | OSOYOO Motor | ![]() |
1 | Clicca qui per acquistare |
3 | Ricevitore IR | ![]() |
1 | Clicca qui per acquistare |
4 | Modulo di sensore di allarme | ![]() |
1 | Clicca qui per acquistare |
5 | Sensore di tracciamento | 1 | Clicca qui per acquistare | |
6 | Sensore ad ultrasuoni | ![]() |
1 | Clicca qui per acquistare |
7 | Servomotore | ![]() |
1 | Clicca qui per acquistare |
8 | Voltmetro | ![]() |
1 | Clicca qui per acquistare |
9 | Modulo Bluetooth | ![]() |
1 | Clicca qui per acquistare |
10 | Telecomando IR | ![]() |
1 | Clicca qui per acquistare |
11 | Supporto di montaggio per sensore ad ultrasuoni | ![]() |
1 | Clicca qui per acquistare |
12 | Telaio dell’auto | ![]() |
1 | Clicca qui per acquistare |
13 | Motore con fili | ![]() |
1 | Clicca qui per acquistare |
14 | Ruote | ![]() |
2 | Clicca qui per acquistare |
15 | Ruota universale | ![]() |
1 | Clicca qui per acquistare |
16 | Scatola batteria 9V | ![]() |
1 | Clicca qui per acquistare |
17 | Batteria 9V | ![]() |
1 | Clicca qui per acquistare |
18 | Cacciavite Phillips | ![]() |
1 | Clicca qui per acquistare |
19 | Cacciavite esagonale | ![]() |
1 | Clicca qui per acquistare |
20 | Cavo femmina-femmina a 20 pin da 15 cm | ![]() |
1 | Clicca qui per acquistare |
21 | Cavo femmina-femmina a 7 pin da 25 cm | 1 | Clicca qui per acquistare | |
22 | Cavo femmina-femmina a 3 pin da 15 cm | ![]() |
1 | Clicca qui per acquistare |
23 | Nastro gommato | 1 | Clicca qui per acquistare |
DownLoad Url osoyoo.com
You must be logged in to post a comment.
What kind of nuts do you need to fasten the mount holder onto the ultrasonic sensor?
It uses M1.5 nuts to fasten the mount holder onto the ultrasonic sensor. It is packed with M1.5*8 screws.
Would M.16 or M.14 nuts work as well?
I’m asking because these nuts loosen over time, and they’re very hard to find when they fall.
Is it possible to find these online as replacements?
Hi, please provide your order No. and address.
I’ll send the replacement to you ASAP.
702-4109202-2332257
****
Missisauga, Ontario LPX 1P7
Canada
By the way, Is the replacement free?
and when can I expect these to arrive?
OK, I’ll send the replacement to you ASAP for free.
It will take 10-25 days to reach your side.
Elaine
everytime i try to upload the code to the basic board it say:savrdude: stk500_recv(): programmer is not responding
I had a similar problem with Lesson 2: IR remote controller. In the end, I removed the OSOYOO motor shield from the Arduino Uno. I was then able to load the sketch without any errors. After I reattached the OSOYOO motor shield, it worked with the IR remote controller. I’m currently having problems with Lesson 3, just like one or two others that have reported the robot car will not move, but with a little thinking and ingenuity given time, I’m hoping to solve that problem too!
hi, Alan,
do you mean that your lesson 2 works well but lesson 3 not working? Do you have any error message when you upload lesson 3 code?
The message I had for Lesson 2 was the same as Lausofia “stk500_recv(): programmer is not responding”. What I’ve discovered for Lesson 3 is that you need a full charge of the 9v battery to power the robot. The 9V ASDA battery that I was using was not run down a bit, so very little happened on the black line, Sometimes the robot moved forward a little, sometimes in circles as only one of the wheels responded. When I fully charged the Lithium Battery provided with the kit (by the way, an excellent idea to directly charge the battery now with a cable to a charging plug), I got a more solid reaction, and I viewed forward movement after it followed the black line, but some circulating motions too, which were not required. This did not last long though, so the battery required charging again. In my case, there is a direct relation between the weight of the robot and the battery charge to move it when coupled to the sensor. This may not be the case with other students following this course, as they might be able to run the robot car over a smoother surface than mine, hence less friction.
I’m also following the Udemy “Hands-On Robotics with Arduino, Build 13 Robot Projects” course. The instructor’s robot, which is similar to your robot car (but the course is not as sophisticated), is powered by two 9V batteries. Did the instructor decide to include two powered batteries as a result of previous experimentation? https://www.udemy.com/course/robotics-for-beginners-build-time-control-robot-from-scratch/
With Lesson 4 I switched off the battery (removing it). But I had the message “stk500_recv(): programmer is not responding” again, on downloading the sketch.
I removed the OSOYOO motor shield from the Arduino Uno and I was then able to download the sketch without any errors. After I reattached the OSOYOO motor shield, the robot car operated a little erratically at first, but then after several attempts of switching ON, observing, switching OFF again, and repeating the procedure, then, on switching ON, the electronics and sketch behaved as described in the FINAL TESTING section. Thank you!
based on your description, we believe your motor shield might be burned. please email us your order number and address to [email protected], we will send you replacement.
It seems that the UNO board has some problem. Please send your order number and address to [email protected], we will give you solution.
Hello, whenever I turn on the robot it moves forward continuously without doing anything. It also doesn’t ever stop.
Everything is plugged in the right ports the the wires are firm. What can I do to fix this?
are you talking about lesson 1 or lesson 4? check if your wires on the two sensors connect properly.