Thingiverse
Arduino Robot Avoid Obstacles by Paolo_Buono
by Thingiverse
Last crawled date: 3 years ago
Materials
nr. 2 micro servi - rotation 360°
nr. 1 sensor HC-SR04
nr. 1 Arduino Uno
nr. 1 Battery 9 volt
Arduino Code:
"#include"
const int triggerPort = 11;
const int echoPort = 12;
Servo servoLeft;
Servo servoRight;
void setup(){
pinMode(triggerPort, OUTPUT);
pinMode(echoPort, INPUT);
servoLeft.attach(9);
servoLeft.write(90);
servoRight.attach(10);
servoRight.write(90);
Serial.begin(9600);
}
void loop(){
long distance = CalculateDistance();
if (distance < 15) {
Stop();
ChooseDirection();
Stop();
}
else {
Go();
}
//delay(1000);
}
long CalculateDistance(){
Serial.println("CalculateDistance");
digitalWrite( triggerPort, LOW );
digitalWrite( triggerPort, HIGH );
delayMicroseconds(10);
digitalWrite( triggerPort, LOW );
long time = pulseIn( echoPort, HIGH );
long distance = 0.034 * time / 2;
return distance;
}
void Go(){
Serial.println("Go");
servoLeft.write(120);
servoRight.write(60);
}
void Stop(){
Serial.println("Stop");
servoLeft.write(90);
servoRight.write(90);
delay(2000);
}
void ChooseDirection(){
Serial.println("ChooseDirection");
int randomChoose = random(1, 4);
switch (randomChoose) {
case 1:
Serial.println("Right 2sec");
servoLeft.write(90);
servoRight.write(120);
delay(2000);
break;
case 2:
Serial.println("Left 2sec");
servoLeft.write(60);
servoRight.write(90);
delay(2000);
break;
case 3:
Serial.println("Right 4sec");
servoLeft.write(90);
servoRight.write(120);
delay(4000);
case 4:
Serial.println("Left 4sec");
servoLeft.write(60);
servoRight.write(90);
delay(4000);
break;
}
}
nr. 2 micro servi - rotation 360°
nr. 1 sensor HC-SR04
nr. 1 Arduino Uno
nr. 1 Battery 9 volt
Arduino Code:
"#include"
const int triggerPort = 11;
const int echoPort = 12;
Servo servoLeft;
Servo servoRight;
void setup(){
pinMode(triggerPort, OUTPUT);
pinMode(echoPort, INPUT);
servoLeft.attach(9);
servoLeft.write(90);
servoRight.attach(10);
servoRight.write(90);
Serial.begin(9600);
}
void loop(){
long distance = CalculateDistance();
if (distance < 15) {
Stop();
ChooseDirection();
Stop();
}
else {
Go();
}
//delay(1000);
}
long CalculateDistance(){
Serial.println("CalculateDistance");
digitalWrite( triggerPort, LOW );
digitalWrite( triggerPort, HIGH );
delayMicroseconds(10);
digitalWrite( triggerPort, LOW );
long time = pulseIn( echoPort, HIGH );
long distance = 0.034 * time / 2;
return distance;
}
void Go(){
Serial.println("Go");
servoLeft.write(120);
servoRight.write(60);
}
void Stop(){
Serial.println("Stop");
servoLeft.write(90);
servoRight.write(90);
delay(2000);
}
void ChooseDirection(){
Serial.println("ChooseDirection");
int randomChoose = random(1, 4);
switch (randomChoose) {
case 1:
Serial.println("Right 2sec");
servoLeft.write(90);
servoRight.write(120);
delay(2000);
break;
case 2:
Serial.println("Left 2sec");
servoLeft.write(60);
servoRight.write(90);
delay(2000);
break;
case 3:
Serial.println("Right 4sec");
servoLeft.write(90);
servoRight.write(120);
delay(4000);
case 4:
Serial.println("Left 4sec");
servoLeft.write(60);
servoRight.write(90);
delay(4000);
break;
}
}
Similar models
thingiverse
free
3DX TRAFFIC LIGHT
...digitalwrite(ledg, low);
digitalwrite(ledy, high);
delay(3000);
digitalwrite(ledr, high);
digitalwrite(ledy, low);
delay(1000);
}
grabcad
free
Automatic Slide Gate Maket
...lwrite (dcl,low);
}
if(limitkanan==1 && hasilkiri==1){
digitalwrite (dcr,low);
digitalwrite (dcl,high);
}
}
thingiverse
free
A Tracking Platform for Astrophotography by alex16
...delay(dl);
digitalwrite( in1, low );
digitalwrite( in2, low );
digitalwrite( in3, high );
digitalwrite( in4, high );
delay(dl);
}
thingiverse
free
Wheel of Fortune by WillemvD
...yservo.write(pos); delay(15); }
delay(2000);
for (pos = 180; pos >= 0; pos -= 1) { myservo.write(pos); delay(15); }
}
}
thingiverse
free
3D printed induction motor controller with arduino by robogio
...write(b, high);
digitalwrite(c, high);
digitalwrite(d, low);
digitalwrite(e, high);
digitalwrite(f, low);
delaymicroseconds(t);
}
thingiverse
free
Touchless WC Flush Unit ultrasound IFÖ IFO toilett button conversion replacement servo by spaceengineer
...); //servo position 90 degree
delay(2000);
myservo.write(180); //servo position 180 degree
delay(1000);
myservo.detach();
}
}
thingiverse
free
Touch free straw dispenser by jackwidman
...al.println(distanceinch);
delay(dt);
if(distanceinch<=5.0){
myservo.write(90);
delay(500);
myservo.write(180);
delay(500);
}
}
thingiverse
free
Easy Pump arduino stepper by mochr
...delaymicroseconds(300); // wait 1/2 a ms
}
delay(1000); // pause one second
}
else {
digitalwrite(6, high); // set enable low
}
}
grabcad
free
Easy Pump arduino stepper
...aymicroseconds(300); // wait 1/2 a ms
}
delay(1000); // pause one second
}
else {
digitalwrite(6, high); // set enable low
}
}
thingiverse
free
LikeYouPartyPin by WillemvD
..., low); delay(200);digitalwrite(eye, high);delay(200);
digitalwrite(mouthlow, low); digitalwrite(mouthhigh, low); delay(500); }}}
Buono
3ddd
$1
Mobella / Buono
...mobella / buono
3ddd
mobella
mobella / buono
design_connected
$9
Buono Kettle
...buono kettle
designconnected
hario buono kettle computer generated 3d model.
turbosquid
$1
Buono Hario Kettle
...3d model buono hario kettle for download as max, fbx, and obj on turbosquid: 3d models for games, architecture, videos. (1556224)
3d_sky
$8
Mobella / Buono
...mobella / buono
3dsky
mobella / buono
thingiverse
free
Hario V60 Drip Kettle Buono
...hario v60 drip kettle buono
thingiverse
needed a 3d model of the kettle couldn't find any online so made one
thingiverse
free
Flow restrictor for Hario Buono drip kettle by ReinaldsMcDeinalds
... drop wise flow rate.
it is similar to this thing https://www.amazon.sg/brewista-kettle-flow-restrictor-bkv12s02fr/dp/b075j1y2q9.
thingiverse
free
BMW X3 stand tablet poggiatesta by Pigrizio
...estive mi sono trovato ad ingegnarmi per far stare buono il bimbo durante il viaggio.... quindi ho disegnato questo...
thingiverse
free
Filament Spool Holder Anet A8 by Jack092
...che vi consiglio invece di stampare in quanto veramente buono credo vada ugualmente bene , tuttavia nel caso basta...
thingiverse
free
Tavola rotante per fotogrammetria (turntable for photogrammetry) Meshroom by mbellucci
...manopola. l'ho usato con meshroom (https://alicevision.org/#meshroom). il risultato è buono è inoltre possibile applicare uno schermo bianco posteriore, utilizzando...
grabcad
free
Buono Mug
...buono mug
grabcad
prepare directly in the mug hot chocolate,milk, latte macchiato and more...
Paolo
3ddd
$1
Paolo Luccetti
... журнальный , круглый
столик из коллекции paolo luccetti
3ddd
free
Paolo Lucchetta
...paolo lucchetta
3ddd
paolo lucchetta
итальянский диван paolo lucchetta
3ddd
free
Paolo Lucchetta
...paolo lucchetta
3ddd
paolo lucchetta
итальянское кресло paolo lucchetta
3ddd
$1
Paolo Luccetti
...ti , paolo lucchetta
кресло из коллекции paolo luccetti, к ранее загруженному диванчику.
3ddd
$1
Paolo Lucchetta
...tta , журнальный , круглый
стол paolo lucchetta
3ddd
free
Paolo Lucchetta
...o lucchetta
3ddd
paolo lucchetta , кушетка
кушетка paolo lucchetta.текстуры в комплекте.
3ddd
free
paolo lucchetta
... капитоне , угловой
диван, paolo lucchetta, в архиве фото дивана
3ddd
$1
Paolo Luchcheta
... luchcheta , капитоне
paolo luchchetahttp://www.mebel-mr.ru/content/16125.html
3ddd
$1
Paolo Lucchetta
... lucchetta , капитоне
paolo lucchettahttp://www.mebel-mr.ru/content/16042.html
3ddd
free
Paolo Lucchetta
... lucchetta , капитоне
paolo lucchettahttp://www.mebel-mr.ru/content/19511.html
Obstacles
3d_export
$10
Obstacle lane
...obstacle lane
3dexport
obstacle lane
turbosquid
$40
Game Obstacle
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$40
Game Obstacle
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$30
Anti-tank Obstacle
...
royalty free 3d model anti-tank obstacle for download as fbx on turbosquid: 3d models for games, architecture, videos. (1438196)
turbosquid
$6
Obstacle [road signal]
...oyalty free 3d model obstacle [road sing] for download as max on turbosquid: 3d models for games, architecture, videos. (1195086)
turbosquid
$49
Obstacle for ropes course
...el obstacle for ropes course for download as ma, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1167253)
turbosquid
$8
Horse Jumping Obstacles
...jumping obstacles for download as 3ds, max, dxf, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1343049)
turbosquid
$8
Horse jump obstacle
...rse jump obstacle for download as 3ds, max, dxf, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1342838)
turbosquid
$55
3d Desert for game with obstacles
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$9
Czech hedgehog Obstacle WWII
...g obstacle wwii for download as 3ds, obj, fbx, blend, and dae on turbosquid: 3d models for games, architecture, videos. (1405303)
Avoid
turbosquid
free
Free eyes of avoided fate
...
free 3d model free eyes of avoided fate for download as max on turbosquid: 3d models for games, architecture, videos. (1669413)
3d_export
$20
telescopic stacker belt conveyor
...cema c idler cema c impact roller dodge bearing avoid tension bearing abb 75 hp motor abb shaft...
3d_ocean
$4
Blue/Purple Brick
...is perfectly tile able and high enough resolution to avoid repetition on large surfaces. diffuse, bump and specular map...
3d_export
$150
Pets Furniture
...where the architecture looking amazing and delightful for the avoidnce and the required material for the construction is very...
3d_ocean
$4
Random Red Brick
...is perfectly tile able and high enough resolution to avoid repetition on large surfaces. diffuse, bump and specular...
3d_export
$19
pilot helmet hgu 56p
...an nice topology also the surface was tested for avoid distortion on glossiness and reflects<br>the main file is 3ds...
vizpark
$15
HDRI Skydome 40
...filters and a professional lens to ensure sharpness and avoid lens distortion. the skydome includes backplate images of the...
vizpark
$15
HDRI Skydome 34
...filters and a professional lens to ensure sharpness and avoid lens distortion. the skydome includes backplate images of the...
vizpark
$15
HDRI Skydome 35
...filters and a professional lens to ensure sharpness and avoid lens distortion. the skydome includes backplate images of the...
vizpark
$15
HDRI Skydome 31
...filters and a fisheye lens to ensure sharpness and avoid lens distortion. the skydome includes backplate images of the...
Arduino
turbosquid
$7
Arduino
...turbosquid
royalty free 3d model arduino for download as max on turbosquid: 3d models for games, architecture, videos. (1197165)
turbosquid
$3
Arduino
...turbosquid
royalty free 3d model arduino for download as c4d on turbosquid: 3d models for games, architecture, videos. (1305484)
3d_export
$5
arduino satellite
...rt
this model is the exact arduino based satellite model with some basic sensors and camera modules and also includes batteries.
turbosquid
$1
Arduino UNO
...alty free 3d model arduino uno for download as , stl, and wrl on turbosquid: 3d models for games, architecture, videos. (1515932)
3d_export
$5
esp8266 box arduino
...esp8266 box arduino
3dexport
box for esp8266 module with wire hole. inside dimensions: 49x26 mm. height 15 mm.
3d_export
$60
Arduino Uno Rev3 Microcontroller 3D Model
...mega328p circuit board spark cable wire 5v 74v 9v 111v
arduino uno rev3 microcontroller 3d model danielgarnier4403 97237 3dexport
3d_export
free
arduino rover kit
...no!!! materials: no!!! rigged: no animated: no uv mapped: no it is not an exact copy of the original! not subject to 3d printing!
3d_ocean
$7
The housing for the 3d Printer
...the housing for the 3d printer 3docean arduino device housing stl the housing consists of two portions:...
3d_export
$5
arm 4 axis
...uno -4 servo motor 180° -3 joystick (x,y) for arduino -mdf wood -some wires -cnc laser cut...
3d_export
$5
solar tracker
...machine for the frame . list of material : -arduino uno -2 step motor with driver -4 ldr sensor...
Robot
3d_ocean
$20
Robot
...robot
3docean
character metal robot robot robotic white
robot model for 3dsmax 2009 and greater
3d_ocean
$45
Robot
...robot
3docean
fighing machine robot
a fighting robot from the scrapyard.
3d_ocean
$18
Robot
...robot
3docean
machin robot science fiction
high poly robot.
3d_export
$7
Robot
...robot
3dexport
robot
3d_export
$5
robot
...robot
3dexport
robot
3d_export
free
Robot
...robot
3dexport
robot
turbosquid
$10
Robot/ Alien Robot
...
royalty free 3d model robot/ alien robot for download as max on turbosquid: 3d models for games, architecture, videos. (1442828)
3d_export
$5
robot
...robot
3dexport
robot in blender
3ddd
$1
robot
...robot
3ddd
робот
robot
3ddd
$1
Robot
...robot
3ddd
робот
robot