Академический Документы
Профессиональный Документы
Культура Документы
com)
Infinity Mirror Music VU Meter Electronics Project using LM3915 IC (http://howtomechatro...
TRENDING
1.1k
Shares
(https://www.youtube.com/user/DejanNedelkovski)
(https://plus.google.com/+Howtomechatronics)
(https://www.facebook.com/howtomechatronics/)
92
81
Follow me on: ()
25
Home (http://howtomechatronics.com)
Projects (http://howtomechatronics.com/category/projects/)
In this Arduino TutorialI will show you how you can make this cool looking radar using the Arduino Board and the
Processing Development Environment. You can watch the following video or read the written tutorial below for
more details.
Overview
Overview
All you need for this Arduino Project is an Ultrasonic Sensor for detecting the objects, a small hobbyist Servo Motor
for rotating the sensor and an Arduino Board for controlling them.You can watch the following video or read the
written tutorial below.
Componentsneeded for thisArduino Project
You
1.1kcan get these componentsfrom any of the sites below:
Shares
1.1k
Shares
92
81
25
Also I attached a pin header on which I soldered 4 jumper wires for connecting the sensor.
Finally I secured the servo motor to the Arduino Board using an elastic band.
1.1k
Shares
92
81
25
There are also somespecial mount bracket for the ultrasonic sensor from Banggod.You can get them from the
following links:
Cartoon Ultrasonic Sensor Mounting Bracket For HC-SR04
(http://howtomechatronics.com/recommends/cartoon-ultrasonic-sensor-mounting-bracket-hc-sr04-bg/)
Acrylic Ultrasonic Sensor Mounting Bracket For HC-SR04 Module
(http://howtomechatronics.com/recommends/acrylic-ultrasonic-sensor-mounting-bracket-hc-sr04-module/)
HC-SR04 Ultrasonic Module Distance Measuring Mount Bracket
(http://howtomechatronics.com/recommends/hc-sr04-ultrasonic-module-distance-measuring-transducer-sensorbg/)
Circuit Schematics
I connected the Ultrasonic Sensor HC-SR04 to the pins number 10 and 11 and the servo motor to the pin number
12 on the Arduino Board.
1.1k
Shares
92
81
25
Source codes
Now we need to make a code and upload it to the Arduino Board that will enable the interaction between the
Arduino and the Processing IDE. For understanding how the connection works click here to visit my Arduino and
Processing Tutorial (http://howtomechatronics.com/tutorials/arduino/processing/).
Heres the Arduino Source Codewith description of each line of the code:
2.
//IncludestheServolibrary
#include<Servo.h>.
3.
4.
//DefinesTirgandEchopinsoftheUltrasonicSensor
constinttrigPin=10
1.
5.
6.
constintechoPin=11
7.
//Variablesforthedurationandthedistance
8.
longduration
9.
intdistance
10.
11.
ServomyServo//Createsaservoobjectforcontrollingtheservomotor
12.
13.
voidsetup(){
1.1k
14.
Shares
15.
16.
17.
92
18.
19.
20.
81
21.
22.
23.
25
24.
25.
26.
pinMode(trigPin,OUTPUT)//SetsthetrigPinasanOutput
pinMode(echoPin,INPUT)//SetstheechoPinasanInput
Serial.begin(9600)
myServo.attach(12)//Definesonwhichpinistheservomotorattached
}
voidloop(){
//rotatestheservomotorfrom15to165degrees
for(inti=15i<=165i++){
myServo.write(i)
delay(30)
distance=calculateDistance()//Callsafunctionforcalculatingthedistancemeasuredbythe
Ultrasonicsensorforeachdegree
Serial.print(i)//SendsthecurrentdegreeintotheSerialPort
27.
Serial.print(",")//Sendsadditioncharacterrightnexttothepreviousvalueneededlaterin
theProcessingIDEforindexing
28.
Serial.print(distance)//SendsthedistancevalueintotheSerialPort
Serial.print(".")//Sendsadditioncharacterrightnexttothepreviousvalueneededlaterin
theProcessingIDEforindexing
}
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
//Repeatsthepreviouslinesfrom165to15degrees
for(inti=165i>15i){
myServo.write(i)
delay(30)
distance=calculateDistance()
Serial.print(i)
Serial.print(",")
Serial.print(distance)
Serial.print(".")
}
}
//FunctionforcalculatingthedistancemeasuredbytheUltrasonicsensor
intcalculateDistance(){
digitalWrite(trigPin,LOW)
delayMicroseconds(2)
//SetsthetrigPinonHIGHstatefor10microseconds
digitalWrite(trigPin,HIGH)
delayMicroseconds(10)
digitalWrite(trigPin,LOW)
51.
duration=pulseIn(echoPin,HIGH)//ReadstheechoPin,returnsthesoundwavetraveltimein
microseconds
52.
53.
distance=duration*0.034/2
returndistance
54.
Now we will receive thevalues for the angle and the distance measured by the sensor from the Arduino Board into
the Processing IDE using the SerialEvent() function which reads the data from the Serial Port and we will put the
values of the angle and the distance into the variables iAngle and iDistance. These variable will be used for drawing
the radar, the lines, the detected objects and some of the text.
1.1k
Shares
92
For drawing the radar I made this function drawRadar() which consist of arc() and line() functions.
81
1.
2.
25
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
voiddrawRadar(){
pushMatrix()
translate(960,1000)//movesthestartingcoordinatstonewlocation
noFill()
strokeWeight(2)
stroke(98,245,31)
//drawsthearclines
arc(0,0,1800,1800,PI,TWO_PI)
arc(0,0,1400,1400,PI,TWO_PI)
arc(0,0,1000,1000,PI,TWO_PI)
arc(0,0,600,600,PI,TWO_PI)
//drawstheanglelines
line(960,0,960,0)
line(0,0,960*cos(radians(30)),960*sin(radians(30)))
line(0,0,960*cos(radians(60)),960*sin(radians(60)))
line(0,0,960*cos(radians(90)),960*sin(radians(90)))
line(0,0,960*cos(radians(120)),960*sin(radians(120)))
line(0,0,960*cos(radians(150)),960*sin(radians(150)))
line(960*cos(radians(30)),0,960,0)
popMatrix()
}
For drawing the line that is moving along the radar I made this function drawLine(). Its center of rotation is set with
the translate() function and using the line() function in which the iAngle variable is used the line is redrawn for each
degree.
1.
voiddrawLine(){
2.
3.
pushMatrix()
strokeWeight(9)
4.
stroke(30,250,60)
4.
5.
stroke(30,250,60)
translate(960,1000)//movesthestartingcoordinatstonewlocation
6.
line(0,0,950*cos(radians(iAngle)),950*sin(radians(iAngle)))//drawsthelineaccordingtothe
angle
7.
popMatrix()
}
8.
1.1k
Shares
92
81
25
For drawing the detected objects I made this drawObject() function. It gets the distance from ultrasonic sensor,
transforms it into pixels and in combination with the angle of the sensor draws the object on the radar.
1.
voiddrawObject(){
2.
pushMatrix()
translate(960,1000)//movesthestartingcoordinatstonewlocation
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
strokeWeight(9)
stroke(255,10,10)//redcolor
pixsDistance=iDistance*22.5//coversthedistancefromthesensorfromcmtopixels
//limitingtherangeto40cms
if(iDistance<40){
//drawstheobjectaccordingtotheangleandthedistance
line(pixsDistance*cos(radians(iAngle)),
pixsDistance*sin(radians(iAngle)),950*cos(radians(iAngle)),950*sin(radians(iAngle)))
}
popMatrix()
}
For the text on the screen I made the drawText() function which draws texts on particular locations.
All of these functions are called in the main draw() function which repeats all the time and draws the screen. Also
here I am using this ll() function with 2 parameters for simulating motion blur and slow fade of the moving line.
1.
voiddraw(){
2.
fill(98,245,31)
3.
4.
5.
6.
7.
8.
9.
textFont(orcFont)
//simulatingmotionblurandslowfadeofthemovingline
noStroke()
fill(0,4)
rect(0,0,width,1010)
11.
fill(98,245,31)//greencolor
//callsthefunctionsfordrawingtheradar
12.
drawRadar()
13.
drawLine()
drawObject()
10.
14.
15.
drawText()
}
16.
1.1k
Shares
92
81
25
1.
importprocessing.serial.*//importslibraryforserialcommunication
2.
3.
importjava.awt.event.KeyEvent//importslibraryforreadingthedatafromtheserialport
importjava.io.IOException
4.
5.
SerialmyPort//definesObjectSerial
//defubesvariables
6.
7.
8.
Stringangle=""
Stringdistance=""
10.
Stringdata=""
StringnoObject
11.
floatpixsDistance
12.
intiAngle,iDistance
13.
intindex1=0
14.
intindex2=0
15.
PFontorcFont
16.
17.
voidsetup(){
18.
size(1920,1080)
9.
19.
20.
21.
smooth()
myPort=newSerial(this,"COM4",9600)//startstheserialcommunication
23.
myPort.bufferUntil('.')//readsthedatafromtheserialportuptothecharacter'.'.So
actuallyitreadsthis:angle,distance.
orcFont=loadFont("OCRAExtended30.vlw")
24.
25.
26.
voiddraw(){
27.
28.
fill(98,245,31)
29.
textFont(orcFont)
//simulatingmotionblurandslowfadeofthemovingline
22.
30.
31.
32.
noStroke()
fill(0,4)
32.
fill(0,4)
33.
rect(0,0,width,1010)
34.
35.
36.
37.
38.
39.
1.1k
Shares
40.
fill(98,245,31)//greencolor
//callsthefunctionsfordrawingtheradar
drawRadar()
drawLine()
41.
drawObject()
drawText()
}
42.
92
43.
44.
81
45.
46.
47.
25
48.
voidserialEvent(SerialmyPort){//startsreadingdatafromtheSerialPort
//readsthedatafromtheSerialPortuptothecharacter'.'andputsitintotheString
variable"data".
data=myPort.readStringUntil('.')
data=data.substring(0,data.length()1)
index1=data.indexOf(",")//findthecharacter','andputsitintothevariable"index1"
49.
angle=data.substring(0,index1)//readthedatafromposition"0"topositionofthevariable
index1orthatsthevalueoftheangletheArduinoBoardsentintotheSerialPort
50.
distance=data.substring(index1+1,data.length())//readthedatafromposition"index1"to
theendofthedataprthatsthevalueofthedistance
51.
52.
//convertstheStringvariablesintoInteger
53.
iAngle=int(angle)
54.
iDistance=int(distance)
55.
56.
57.
voiddrawRadar(){
58.
pushMatrix()
translate(960,1000)//movesthestartingcoordinatstonewlocation
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
noFill()
strokeWeight(2)
stroke(98,245,31)
//drawsthearclines
arc(0,0,1800,1800,PI,TWO_PI)
arc(0,0,1400,1400,PI,TWO_PI)
arc(0,0,1000,1000,PI,TWO_PI)
arc(0,0,600,600,PI,TWO_PI)
//drawstheanglelines
line(960,0,960,0)
line(0,0,960*cos(radians(30)),960*sin(radians(30)))
line(0,0,960*cos(radians(60)),960*sin(radians(60)))
line(0,0,960*cos(radians(90)),960*sin(radians(90)))
line(0,0,960*cos(radians(120)),960*sin(radians(120)))
line(0,0,960*cos(radians(150)),960*sin(radians(150)))
76.
line(960*cos(radians(30)),0,960,0)
popMatrix()
77.
78.
79.
voiddrawObject(){
80.
pushMatrix()
translate(960,1000)//movesthestartingcoordinatstonewlocation
75.
81.
82.
83.
strokeWeight(9)
stroke(255,10,10)//redcolor
85.
pixsDistance=iDistance*22.5//coversthedistancefromthesensorfromcmtopixels
//limitingtherangeto40cms
86.
if(iDistance<40){
87.
88.
//drawstheobjectaccordingtotheangleandthedistance
line(pixsDistance*cos(radians(iAngle)),
pixsDistance*sin(radians(iAngle)),950*cos(radians(iAngle)),950*sin(radians(iAngle)))
89.
84.
91.
popMatrix()
}
92.
93.
voiddrawLine(){
94.
pushMatrix()
95.
99.
92
100.
strokeWeight(9)
stroke(30,250,60)
translate(960,1000)//movesthestartingcoordinatstonewlocation
line(0,0,950*cos(radians(iAngle)),950*sin(radians(iAngle)))//drawsthelineaccordingtothe
angle
popMatrix()
}
101.
81
102.
voiddrawText(){//drawsthetextsonthescreen
103.
pushMatrix()
90.
96.
1.1k
Shares
97.
98.
104.
25
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
if(iDistance>40){
noObject="OutofRange"
}
else{
noObject="InRange"
}
fill(0,0,0)
noStroke()
rect(0,1010,width,1080)
fill(98,245,31)
textSize(25)
text("10cm",1180,990)
text("20cm",1380,990)
text("30cm",1580,990)
text("40cm",1780,990)
123.
textSize(40)
text("Object:"+noObject,240,1050)
text("Angle:"+iAngle+"",1050,1050)
text("Distance:",1380,1050)
124.
if(iDistance<40){
125.
text(""+iDistance+"cm",1400,1050)
}
120.
121.
122.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
textSize(25)
fill(98,245,60)
translate(961+960*cos(radians(30)),982960*sin(radians(30)))
rotate(radians(60))
text("30",0,0)
resetMatrix()
translate(954+960*cos(radians(60)),984960*sin(radians(60)))
rotate(radians(30))
text("60",0,0)
resetMatrix()
translate(945+960*cos(radians(90)),990960*sin(radians(90)))
rotate(radians(0))
text("90",0,0)
resetMatrix()
translate(935+960*cos(radians(120)),1003960*sin(radians(120)))
rotate(radians(30))
text("120",0,0)
resetMatrix()
translate(940+960*cos(radians(150)),1018960*sin(radians(150)))
148.
rotate(radians(60))
text("150",0,0)
popMatrix()
149.
146.
147.
/*ArduinoRadarProject
2.
*
*Updatedversion.Fitsanyscreenresolution!
*Justchangethevaluesinthesize()function,
*withyourscreenresolution.
923.
4.
5.
816.
10.
*
*byDejanNedelkovski,
*www.HowToMechatronics.com
*
*/
11.
12.
14.
importprocessing.serial.*//importslibraryforserialcommunication
importjava.awt.event.KeyEvent//importslibraryforreadingthedatafromtheserialport
importjava.io.IOException
15.
16.
SerialmyPort//definesObjectSerial
//defubesvariables
Stringangle=""
7.
8.
259.
13.
17.
18.
22.
Stringdistance=""
Stringdata=""
StringnoObject
floatpixsDistance
23.
intiAngle,iDistance
24.
intindex1=0
25.
intindex2=0
26.
PFontorcFont
27.
28.
voidsetup(){
29.
size(1920,1080)//***CHANGETHISTOYOURSCREENRESOLUTION***
19.
20.
21.
30.
31.
32.
smooth()
myPort=newSerial(this,"COM4",9600)//startstheserialcommunication
35.
myPort.bufferUntil('.')//readsthedatafromtheserialportuptothecharacter'.'.So
actuallyitreadsthis:angle,distance.
orcFont=loadFont("OCRAExtended30.vlw")
}
36.
37.
voiddraw(){
38.
39.
fill(98,245,31)
textFont(orcFont)
//simulatingmotionblurandslowfadeofthemovingline
noStroke()
33.
34.
40.
41.
42.
43.
44.
45.
46.
fill(0,4)
rect(0,0,width,heightheight*0.065)
fill(98,245,31)//greencolor
51.
//callsthefunctionsfordrawingtheradar
drawRadar()
drawLine()
drawObject()
drawText()
52.
53.
47.
48.
49.
50.
53.
54.
voidserialEvent(SerialmyPort){//startsreadingdatafromtheSerialPort
55.
//readsthedatafromtheSerialPortuptothecharacter'.'andputsitintotheString
variable"data".
data=myPort.readStringUntil('.')
56.
57.
58.
1.1k
Shares
59.
60.
61.
92
62.
63.
81
64.
65.
25
66.
data=data.substring(0,data.length()1)
index1=data.indexOf(",")//findthecharacter','andputsitintothevariable"index1"
angle=data.substring(0,index1)//readthedatafromposition"0"topositionofthevariable
index1orthatsthevalueoftheangletheArduinoBoardsentintotheSerialPort
distance=data.substring(index1+1,data.length())//readthedatafromposition"index1"to
theendofthedataprthatsthevalueofthedistance
//convertstheStringvariablesintoInteger
iAngle=int(angle)
iDistance=int(distance)
}
67.
68.
voiddrawRadar(){
69.
pushMatrix()
translate(width/2,heightheight*0.074)//movesthestartingcoordinatstonewlocation
noFill()
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
strokeWeight(2)
stroke(98,245,31)
//drawsthearclines
arc(0,0,(widthwidth*0.0625),(widthwidth*0.0625),PI,TWO_PI)
arc(0,0,(widthwidth*0.27),(widthwidth*0.27),PI,TWO_PI)
arc(0,0,(widthwidth*0.479),(widthwidth*0.479),PI,TWO_PI)
arc(0,0,(widthwidth*0.687),(widthwidth*0.687),PI,TWO_PI)
//drawstheanglelines
line(width/2,0,width/2,0)
line(0,0,(width/2)*cos(radians(30)),(width/2)*sin(radians(30)))
line(0,0,(width/2)*cos(radians(60)),(width/2)*sin(radians(60)))
line(0,0,(width/2)*cos(radians(90)),(width/2)*sin(radians(90)))
line(0,0,(width/2)*cos(radians(120)),(width/2)*sin(radians(120)))
88.
line(0,0,(width/2)*cos(radians(150)),(width/2)*sin(radians(150)))
line((width/2)*cos(radians(30)),0,width/2,0)
popMatrix()
}
89.
90.
voiddrawObject(){
91.
pushMatrix()
92.
translate(width/2,heightheight*0.074)//movesthestartingcoordinatstonewlocation
strokeWeight(9)
stroke(255,10,10)//redcolor
pixsDistance=iDistance*((heightheight*0.1666)*0.025)//coversthedistancefromthesensor
fromcmtopixels
//limitingtherangeto40cms
if(iDistance<40){
85.
86.
87.
93.
94.
95.
96.
97.
98.
99.
//drawstheobjectaccordingtotheangleandthedistance
line(pixsDistance*cos(radians(iAngle)),pixsDistance*sin(radians(iAngle)),(width
width*0.505)*cos(radians(iAngle)),(widthwidth*0.505)*sin(radians(iAngle)))
102.
}
popMatrix()
}
103.
104.
voiddrawLine(){
105.
pushMatrix()
strokeWeight(9)
stroke(30,250,60)
100.
101.
106.
107.
108.
109.
translate(width/2,heightheight*0.074)//movesthestartingcoordinatstonewlocation
line(0,0,(heightheight*0.12)*cos(radians(iAngle)),(heightheight*0.12)*sin(radians(iAngle)))
//drawsthelineaccordingtotheangle
110.
//drawsthelineaccordingtotheangle
popMatrix()
111.
112.
113.
voiddrawText(){//drawsthetextsonthescreen
114.
1.1k
Shares
115.
116.
pushMatrix()
if(iDistance>40){
119.
noObject="OutofRange"
}
else{
120.
81
121.
noObject="InRange"
}
122.
fill(0,0,0)
noStroke()
rect(0,heightheight*0.0648,width,height)
fill(98,245,31)
117.
92
118.
123.
25
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
textSize(25)
text("10cm",widthwidth*0.3854,heightheight*0.0833)
text("20cm",widthwidth*0.281,heightheight*0.0833)
text("30cm",widthwidth*0.177,heightheight*0.0833)
text("40cm",widthwidth*0.0729,heightheight*0.0833)
textSize(40)
text("Object:"+noObject,widthwidth*0.875,heightheight*0.0277)
text("Angle:"+iAngle+"",widthwidth*0.48,heightheight*0.0277)
text("Distance:",widthwidth*0.26,heightheight*0.0277)
if(iDistance<40){
text(""+iDistance+"cm",widthwidth*0.225,heightheight*0.0277)
}
textSize(25)
fill(98,245,60)
translate((widthwidth*0.4994)+width/2*cos(radians(30)),(heightheight*0.0907)
width/2*sin(radians(30)))
rotate(radians(60))
text("30",0,0)
resetMatrix()
translate((widthwidth*0.503)+width/2*cos(radians(60)),(heightheight*0.0888)
width/2*sin(radians(60)))
rotate(radians(30))
text("60",0,0)
resetMatrix()
translate((widthwidth*0.507)+width/2*cos(radians(90)),(heightheight*0.0833)
width/2*sin(radians(90)))
rotate(radians(0))
text("90",0,0)
resetMatrix()
translate(widthwidth*0.513+width/2*cos(radians(120)),(heightheight*0.07129)
width/2*sin(radians(120)))
rotate(radians(30))
text("120",0,0)
resetMatrix()
translate((widthwidth*0.5104)+width/2*cos(radians(150)),(heightheight*0.0574)
width/2*sin(radians(150)))
rotate(radians(60))
text("150",0,0)
popMatrix()
}
(https://easyeda.com/order)
(https://easyeda.com/order)
Free CircuitSimulationSoftware-EasyEDA (https://easyeda.com/)
Powerful
circuit design, mixed-mode circuit simulation and PCB design (https://easyeda.com/)
1.1k
Shares
Arduino (http://howtomechatronics.com/tag/arduino/)
92
Demo (http://howtomechatronics.com/tag/demo/)
25
Example (http://howtomechatronics.com/tag/example/)
radar (http://howtomechatronics.com/tag/radar/)
SHARE ON:
Share
221
Like
221
888
25
Tweet
StumbleUpon
RELATED POSTS
(http://howtomechatronics.com/projects/arduino-game-controller/)
1.1k
Shares
92
81
25
(http://howtomechatronics.com/projects/diy-led-heart-photo-frame-arduino-project/)
(http://howtomechatronics.com/projects/mechatronics-student-project/)
1.1k
Shares
92
81
25
(http://howtomechatronics.com/projects/how-to-make-a-compass-using-arduino-and-processing-ide/)
225 RESPONSES
Jai me
D e ce m be r 16, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 30 7 )
AD23
De ce mbe r 2 9, 2 01 5 (ht tp:// how tom e cha t ron i cs. c om/ p roj e ct s / a r d u i no -r ad ar -p ro je ct /# co mm en t- 35 1 )
Dear sir
The code that you have written is not getting compiled in my arduino IDE. Its showing Missing author
can you help me out.. I d k where i am going wrong..
1.1k
Shares
92
81
25
Did you try to compile the right code, because there are to codes, one for Arduino IDE and one for
De ce mbe r 2 9, 2 01 5 (ht tp:// how tom e cha t ron i cs. c om/ p roj e ct s / a r d u i no -r ad ar -p ro je ct /# co mm en t- 35 5 )
Processing IDE and did you copy it the whole code properly. I have never seen such an error. Try it again
please.
ma yur
Fe br uar y 7, 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o -r ad ar -p ro je ct /# co mm en t- 54 2 )
hello sir, my radar line is not moving from initial point its gets stuck after 60 degree every time.can u
please help me out that whats exactly the error and how can i solve it
Try dierent speed for the servo, change the delay time in the for loop for the servo.
Waqar Al i
Ap ri l 2 , 20 16 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 76 4 )
sir your code is not working can would you please give me your email adress i will send you the error
message for solution
It is working, you are probably doing something wrong. Go through the previous comments you might
nd the answer of your problem.
1.1k
Shares
sai k um ar
92
Hello sir,
81
25
Well this question has already been answered in the comments below.
You should always check the comments before asking something, because usually there is an answer to
most of the problems people might face.
Ray
Ju ne 28 , 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 10 3 5 )
Thank you for the great project. Everything worked perfectly. The only thing I would add to your page is a
section where you talk about the creation of the OCRAExtended-30.vlw font so that the processing code
works without issue. It would be better than having people dig through the comments section for
answers.
Thanks again for an awesome project.
Vi c
M a rc h 1 0 , 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 68 0 )
cant I just copy and paste, hit run and have it work?
REPLY
92
81
25
He nr y
A p ri l 1 9 , 2 016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 83 4 )
MO H AM MA D
M a y 26, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 96 7 )
Q1.
what is the time taken to send signal and receive signal if we do not have any object facing the ultrasonic ?
Q2.
why you put delay(30) in your code and not more or less ?
REPLY
A1: You might be able to nd this answer in the datasheet of the ultrasonic sensor.
A2: This delay is used to regulate the motor speed of rotation.
1.1k
Shares
92
Hi sir.
81
Actually
were doing this project in our high school, so we need the link of the original project. We havent got
much time for do it, so please, try to repair it as soon as you can.
25
It is working now.
REPLY
ale
D e ce m be r 17, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 31 8 )
I tried to copy the code, but I get errors from all sides, you may
put a link where anyone can copy all the code
REPLY
What kind of errors. The complete source codes for both Arduino IDE and Processing IDE can be found on
this post.
REPLY
1.1k
Shares
Raki b Anam
De ce mbe r 1 8, 2 01 5 (ht tp:// how tom e cha t ron i cs. c om/ p roj e ct s / a r d u i no -r ad ar -p ro je ct /# co mm en t- 32 2 )
92
Dear sir,
please help me understand what is the problem with my project.
81
25
Ma rc G.
D e ce m be r 18, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 32 3 )
Hi. Im building this Radar for an experiment for school. Is the code compatible with Arduino UNO too? And
then , the last code , must be put into Processing IDE , and not other languages , right?
Thank you
REPLY
Yes, you can use the UNO and the last code is for Processing IDE.
REPLY
Ma rc G .
Ma rc G .
De ce mbe r 2 0, 2 01 5 (ht tp:// how tom e cha t ron i cs. c om/ p roj e ct s / a r d u i no -r ad ar -p ro je ct /# co mm en t- 32 8 )
1.1k
Shares
Thank you so much. Can I upload directly the Arduino code in my Arduino UNO? Or theres something I
must adapt to make it compatible?
92
81
Eu ge ne
25
D e ce m be r 21, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 32 9 )
Thanks for the comment! Well yes you are right. My tutorials and projects are free so everyone can use
them, but if someone use them on other website, just like you said, hi should provide links to the original
article. Whats more, he is even using my photos with blurring my logo.
REPLY
AM RANi
D e ce m be r 22, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 33 3 )
You dont have to use that font. If this problem occurs when running the Processing sketch this could help
you:
The problem could be that you should rst generate the font in the Processing IDE. Tools > Create Font
1.1k and here select that font and size. This will generate appropriate font le in the working directory so that you
Shares
92
REPLY
81
25
Ha mz a
D e ce m be r 23, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 33 7 )
Well if you use the updated processing code, which can be found at the bottom of the post, it can t any
screen resolution. You just have to change the parameters for the screen resolution to your screen
resolution.
REPLY
Wally
D e ce m be r 25, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 34 0 )
Abu T aj
D e ce m be r 26, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 34 1 )
Hey.. I done what you have shown. But Im not getting the output. In processing windows the scale o radar
sticks in ZERO. It doesnt move any where. Can you help me to x this.
REPLY
1.1k
Shares
92
81
deon
J a nu ary 8, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 41 3 )
25
Jim M .
D e ce m be r 26, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 34 2 )
I didnt realize the Processing code needed to be executed in a download from processing.org. Other than that,
my son and I very much enjoyed this build. Thank you.
REPLY
Dus tonred
M a rc h 9 , 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 67 6 )
Same here ! took me a while to gure out what was processing IDE , but i have nished it and it was a real
pleasure to build it !
REPLY
1.1k
Shares
D e ce m be r 27, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 34 3 )
92
Can
81
you use a Ultrasonic range sensor from radio shack? it has 3 pins un like the one you are using
REPLY
25
Cole
M a y 4, 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 88 6 )
Dejan,
Thank you for sharing these tutorials. This radar project was very helpful for learning Arduino & Processing
IDE. Now that my radar is up and running, its time to tackle the TFT touch shield! Thanks again buddy.
REPLY
Ha ns
D e ce m be r 27, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 34 4 )
Hello sir. Great project. Ive a question. Theres a way to make the lines in the function drawObject () , likes
points? I mean , is possible to cut the red line to the initial distance , and not to proceed behind?
Something like this:
http://i.ytimg.com/vi/wNN1CtOuEIM/maxresdefault.jpg (http://i.ytimg.com/vi/wNN1CtOuEIM/maxresdefault.jpg)
Thanks
1.1k
Thanks
1.1k
Shares
REPLY
92
81
25
Well yes, it is possible. You will have to modify that part of the code and instead of using line(), use ellipse(a,
b, c, d). a,b x,y coordinates of the ellipse, c,d width and height of the ellipse.
REPLY
Ale x
D e ce m be r 27, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 34 9 )
Thanks!
REPLY
He m ant
D e ce m be r 29, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 35 8 )
Hey.. I followed your steps and have completed the project . After uploading the sketch on arduino im getting
output on the serial monitor but i am not able to get any output on processing ide. The radar sticks to a xed
point (at zero) , it doesnt move in sync with the motor. Any solutions for this?
REPLY
1.1k
1.1k
Shares
92
81
25
He mant
De ce mbe r 3 1, 2 01 5 (ht tp:// how tom e cha t ron i cs. c om/ p roj e ct s / a r d u i no -r ad ar -p ro je ct /# co mm en t- 37 1 )
No error message at all. The radar screen shows up but everything is still, no movement is shown in the
radar even though the setup is working ne.
He mant
De ce mbe r 3 1, 2 01 5 (ht tp:// how tom e cha t ron i cs. c om/ p roj e ct s / a r d u i no -r ad ar -p ro je ct /# co mm en t- 37 2 )
I have one more question. I am using an arduino uno r3 board so is there any possibility that this might
be the reason why it is not working. I have cross checked every connection and now the servo is also not
moving .
He mant
De ce mbe r 3 1, 2 01 5 (ht tp:// how tom e cha t ron i cs. c om/ p roj e ct s / a r d u i no -r ad ar -p ro je ct /# co mm en t- 37 3 )
servo started moving .Actually it was the wight of the support i made for the sensor because of which it
was not moving. Also i am not using a breadboard for connections.The servo is connected to the 5v pin of
arduino and the sensor is connected to 9v battery.
Ale x
D e ce m be r 30, 201 5 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 36 9 )
i dont understand what i have to put in arduino IDE and what i have to put in processing
REPLY
1.1k
1.1k
Shares
92
81
The rst code is for Arduino IDE and it is stated! The last code is work Processing IDE and it is stated!
REPLY
Mi cha el J uan
J a nu a r y 4, 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 38 4 )
Hi man i need your help you here. What if i want to add some active buzzer and LED to your code, i tried once
and the servo turn really slow. Can you teach me the code so i can add the buzzer and LED?
REPLY
Mi cha el J uan
J a nu ary 4, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 38 5 )
Looks like a managed to x the problem in arduino and now i can works normally. The problem now is with
the processing. if i use you code, its ne processing draw the sonar, but when i add the buzzer and LED the
processing wont draw the sonar
REPLY
Vi nay
J a nu a r y 8, 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 40 4 )
sir
the code is not working on my macbook pro
due to some port not available error
please provide me a solution for that
REPLY
1.1k
Shares
Shares
92
81
25
vin ay
Ja nu ary 8, 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 40 9 )
Great!
Dejan,
A very good project.
I have been having a great time setting it all up and learning some of the ner details of Processing.
Well done!
I did notice that the serial communication would fail sometimes when stopping and starting Processing. It is
likely to be a problem with the string handling if a part message is received and the resulting string length is 0.
I modied the code so that it looks for a string of at least 4 characters before the . (ie 15,0.)
1.1k
Shares
data = myPort.readStringUntil(.);
92
if (data.length()>4)
existing code
81
25
}
Thats a great remark! People experiencing this kind of problem would nd this comment useful.
Thanks!
REPLY
sal owa
J a nu a r y 8, 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 41 2 )
C:\Users\User\Documents\Arduino\libraries\sketch_jan09a
92
REPLY
81
25
You should be getting that kind of error. Try it again, did you copy the right codes to the right places
properly?
REPLY
He nr ik
J a nu a r y 9, 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 42 3 )
Hi, is it possible to use a USB as a serial port, and rewrite the code? Im pretty amateur when it comes to coding.
REPLY
b agu s
J a nu a r y 10, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 43 3 )
sir ..i have a problem and it is java.awt.event.keyEvent; its does not exist.you might be missing a library..
REPLY
1.1k
Shares
92
81
That library is default for Processing IDE so you cant be missing it. Try again with the latest version of
J a nu ary 10, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 44 1 )
Processing IDE.
25
REPLY
b o ris
J a nu a r y 10, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 43 4 )
I dont know why these errors occurs to you. You are probably doing something wrong, retry again the exact
same procedure as described, with the latest version of the two software.
1.1k
Shares
REPLY
92
81
Aks ha y Agarw al
J a nu a r y 13, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 44 7 )
25
Sir,i am new in the ground of arduino and after surveying many videos and website i decided to choose yours
project though i was feeling satised and was very exited of making myself one and i did it bt the issue i am
facing is everything works great only the radar which is appearing in the screen is not moving and functioning
please sir help me
REPLY
Give me some more details about your problem. It can be anything. Did you upload the Arduino sketch to
Arduino properly, check if its working properly with the Serial Monitor. Also, did you use the updated
version of the Processing IDE code which is at the bottom of the post.
REPLY
Akshay Agarw al
Ja nu ary 14, 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 45 9 )
thank u sir for your concern it really helped me as u said to check i just again started from the very
begnning and used the new processing sketch and now it is working thank you sir
vin ay
J a nu a r y 13, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 45 1 )
Dear sir,
My sensor is showing 0 distance in any way.
And the radar is showing red due to the zero reading
can you please nd the problem
1.1k
Shares R E P L Y
92
81
25 J a nu ary 14, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 45 6 )
Maybe your sensor isnt working. Check my particular tutorial for the ultrasonic sensor, and see if the sensor
is working with that code.
REPLY
Lap e nta
J a nu a r y 13, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 45 2 )
Thank you very much for sharing your project! very neat!
REPLY
Er ne st o
J a nu a r y 13, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 45 3 )
sorry can you tell me how can I do a code to turn on a led with this same example but turn on the led to any
distance you want to???
CAN YOU HELP ME PLEASE????
REPLY
You can do that. Check my Arduino and Processing IDE tutorial for that.
REPLY
1.1k
Shares
Er nest o
Er nest o
92
Ja nu ary 14, 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 46 5 )
ok but if I dont wanna use processing just the servo and the sensor to turn on the LED can you help me to
81
25
L G re ene
J a nu a r y 13, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 45 4 )
Hello, I would like to try this for a school project, but I was wondering if this works on Arduino Yun as well?
REPLY
Yes, if the microcontroller is ATmega32U4, and the pins of the Arduino Yun are 5V. Because if the are at 3.3V
you might have problem with the Ultrasonic sensor, as it works at 5V.
REPLY
L G re ene
Ja nu ary 14, 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 46 1 )
I tried some things, but I when I tried to upload the rst code, I got the following error:
Arduino: 1.6.6 (Mac OS X), Board: Arduino/Genuino Uno
92
81
25
L G re ene
J a nu ary 14, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 46 6 )
Never mind the other comment, I gured it out and everything works ne now! Thank you for putting up this
wonderful tutorial!
REPLY
Er ne st o
J a nu a r y 14, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 46 4 )
Please can u help me I got this problem Error opening serial portCOM4:port not found when I try to copilet, do
u know the problem???
REPLY
To m
J a nu ary 16, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 47 6 )
Ernesto, We have the same problem. We are working with a MAC. Now we will try on a Windows machine. Ill
let you know if it works.
REPLY
To m
J a nu ary 17, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 47 9 )
1.1k
Shares
Nila va
92
Nila va
92
Sir i want a led to light up or a buzzer to beep when an object comes in range, could u please tell me how to do
81
it?
25
REPLY
It can be done, but sorry I cannot do custom codes. This tutorial and all my other tutorials are here to help
you learn about Arduino and some coding, so you are able to achieve the level needed to make your own
code for your own project.
REPLY
Ob r eli x
J a nu ary 19, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 48 8 )
Hi mate !
You have to add a piezo to your circuit
select a pin of your choise to connecti it
then add these lines to your code
const int piezoPin = 8;
int notes[] = {262, 462, 862, 1662, 3262}; // Enter here the notes you like
and call this function whenever you want to make noise your piezo
void beep(){
if(distance > 40){
noTone(piezoPin);
delay(10);
noTone(piezoPin);
delay(30);
}
else if (distance 30){
1.1k
tone(piezoPin, notes[1]);
Sharesdelay(10);
noTone(piezoPin);
92
delay(30);
}
92
}
else if (distance 20){
81
25
tone(piezoPin,notes[2]);
delay(10);
noTone(piezoPin);
delay(30);
}
else if (distance 10){
tone(piezoPin,notes[3]);
delay(10);
noTone(piezoPin);
delay(30);
}
else {
tone(piezoPin,notes[4]);
delay(10);
noTone(piezoPin);
delay(30);
}
}
i hope this will help you
REPLY
Obr eli x
Ja nu ary 19, 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 48 9 )
i just saw that the code change when i posted due to specic symbols
you can nd the code here
https://drive.google.com/open?id=0B7thj0Y_jJNRMXhfN1k0eTF5STA ()
SAI K RI SHN A
Ma rc h 1 6 , 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 70 3 )
Sir i want to add hall sensor for detecting magnetic elds if the object is magnetic material and when an
object comes in range, could u please tell me how to do it?
cha ran
1.1k
Shares
i want a ultrasonic sensor covering a range of 10mts or above 10meters so please give the details of the sensor
92
what
i have to use in order to cover 10mts range and as well as the layout of the connections we we have to
build on arduino board awating for your reply and thankful for seeing
81
REPLY
25
MJ
J a nu a r y 21, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 49 2 )
You should change the name of the COM port according to the one your Arduino is connected to you pc.
REPLY
MJ
Ja nu ary 21, 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 49 5 )
Sir Dejan , I did realize that the COM was on 5. But I did change the com now to 4. But same thing
occurred as if I did nothing what is the issue here Sir Dejan?
Adam
1.1k
Shares
Hi Dejan. While Uploading the Processor to the board I got this error Could not load font OCRAExtended92
30.vlw. Make sure that the font has been copied to the data folder of your sketch What does it mean sir thank
you.
you.
81
REPLY
25
sple ndor
J a nu a r y 26, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 50 6 )
hello Sir
can you share how to change the radar distance, i want to change 1 meter
in your project use 40cm.
thank you sir..
REPLY
hello
i used srf05
how i Increase distance of detection up to 3meter???
thanksele
REPLY
1.1k
Yas h
Shares
T hak k ar
Is their any changes required in Ardunio Uno ? or the same procedure we need to follow, any pin changes or
92
program
changes ?
Thank
81
25
you in advance ..
REPLY
Yash T hak k ar
Ja nu ary 30, 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 51 5 )
Hey Dejan sir, nice project i was so excited to do and i started doing it but once i compiled code in both
ardunio and proc it dont gave error, but my servo doesnt move once ardunio is compiled and once if i
compile proc then it opens the Graph and that too moving can u x it out.
Thank You for wonderful share.
Yas h T hak k ar
J a nu a r y 30, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 51 6 )
And i tried to change the pin to 8 9 and 10 in my uno but the program was same then it should create the error
but though no error and no movement. please help solving my problem.
REPLY
sple ndor
F e br u ar y 4, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 53 0 )
1.1k
Shares
sir
where code for change the distance?
i search but didnt nd.. can you help me show where code i must change?
92
REPLY
25
Va saG
F e br u ar y 5, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 53 5 )
Hello Sir!
We have followed your video for a test in school and we enjoyed it very much. But when we try it ourselves we
can get all the programs working and the code into the arduino Mega, but the servo motor turns very slowly
and the sensor is not working like it should. The Processing screen is just showing red all the time but is going
in the same speed as the servo. Do you have any advice?
Thank you for answers!
REPLY
Make sure your servo motors works properly using dierent codes just for the servo, as well as make sure
your Ultrasonic sensor works properly (you can check that through the codes of my tutorials for the
particular topic). As for the servo motor you can also try to change the speed of rotation by changing the
delay time in the Arduino code in the for loop for the servo. As for the Processing IDE part, make sure you
use the last (latest) updated version of the code which is at the bottom of the post.
REPLY
1.1k
Shares
92
JS
F e br u ar y 6, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 54 0 )
81
REPLY
En es h Fe rnan d o
F e br u ar y 8, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 55 3 )
Can some one please mention a download link for the above libraries for this project. Thank you. Libraries are
not available.
REPLY
You dont need any extra libraries for this project. Just make sure you have the latest versions of Arduino IDE
and Processing IDE.
REPLY
En esh Fe rnan do
Fe br uar y 11, 2016 (ht tp:// how tom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o -r ad ar -p ro je ct /# co mm en t- 57 1 )
1.1k
Shares
Processing IDE is not working. I think there might be a problem with the screen resolution. I amended the
resolution, but still processing is not working. No problem with the Arduino code. Problem arises with the
processing code. Can you please clarify.
92
Thank you
81
81
25
And r ea s La ngberg
F e br u ar y 11, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 57 0 )
Nice guide! Made one myself and it works perfectly. In Linux, however, you get nullpointexceptions regularly
from the tyyACM port. This isnt a problem as long as you throw the exception away and let it continue, which in
your current version it does not. Simplest x is to surround your serialEvent() function with a trycatch
should
make it skip less in windows as well.
REPLY
hello DEJAN i got a radar half screen what could be the problem i need help
REPLY
1.1k
Shares
92
nk g
81
REPLY
nk g
81
REPLY
Du an
F e br u ar y 18, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 61 4 )
Hi Dejan, rst I have to say that I saw your other projects and I am glad to see that we also have succesful
arduino developers in our neighborhood.
distance to use max range of 6m.What part of .pde code I need to modify ( I know I have to modify pixsDistance
but dont know how). I was hoping that you could help me.
Wish you good luck with your projects
REPLY
Thanks!
Heres the point with the range:
pixsDistance = iDistance*((height-height*0.1666)*0.025); // covers the distance from the sensor from cm to
pixels
This line corresponds to 40cm range. iDistance is distance from the sensor in cm and (heightheight*0.1666) is the size of the radar in pixels depending on your screen resolution and these two things
require no change. What you need to change is the 0.025 coecient according to your desire range.
Lets say you want 2 meters range which is 5 times bigger then 40cm, so in that case the coecient would be
0.025 / 5 = 0.05.
Let me know if this worked for you.
REPLY
1.1k
Shares
Ma ria
F e br u ar y 21, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 62 0 )
92
hi sir good day thank for the amazing project I like it . but im not experience , I want to ask u about 1 thing i
upload
81
the arduino code its good done uploading but at the prociccing i get the error :
COULD not load Font OCRAExtened-30.vlw. Make sure that the font has been copied to the data folder of your
25
sketch
REPLY
alaa
Ap ri l 1 0 , 2 01 6 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 79 1 )
sir my processing shows a message could not load font OCRAExtended-30.vlw. make sure that the font
has been copied to the data folder of your sketch. what does that mean?
S ande ep
F e br u ar y 22, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 62 4 )
Greetings sir.
I have copied and pasted the code of Processing IDE as said before, but i am unable to get any of the
background that was shown before each code.
For sample, I had tried the program you have given to generate arcs(the rst processing IDE program).
1.1k
I am not getting any display when I hit play.
Shares
But
Is it necessary for the arduino to be connected to get the display in the processing IDE?
92
81
REPLY
25
Of course, rst you need to upload the Arduino Sketch and have everything connected and then run the
Processing program.
REPLY
Ryuzak i
Fe br uar y 28, 2016 (ht tp:// how tom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o -r ad ar -p ro je ct /# co mm en t- 63 6 )
ma ro ih
F e br u ar y 27, 2016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 63 4 )
hello thanks for ur eort i just wanna ask if i must realise radar but with elecromagnetic waves how i can ??
REPLY
1.1k Deja n
Shares
F e br uar y 27, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 63 5 )
Well that would be a completely dierent project and I cant see how I can help you.
92
REPLY
81
25
jack po t
M a rc h 2 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 64 2 )
Too long program that does not work, what a waste of time, bogus programmer
REPLY
Read the other comments of this tutorial and you will see that the most of the people have managed to get it
working. So the program is working, the problem has to be with you, you are probably doing something
wrong.
REPLY
Abdul rau f
M a rc h 3 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 65 2 )
Hello sir!!
i want to try your project but i have a question that can i use two ultrasonic sensors instead of one to make my
Radar at 360 degree?
REPLY
It can be done but modications of the both Arduino and Processing source codes will be required.
1.1k
Shares
REPLY
92
81
Abdul rau f
Abdul rau f
Ma y 10, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 90 3 )
25
thanks for your reply sir, can you please guide me a little bit about the modications.?
ill be very grateful to you.
Abdul rau f
Ma y 10, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 90 4 )
void drawObject() {
pushMatrix();
translate(960,1000); // moves the starting coordinats to new location
strokeWeight(9);
stroke(255,10,10); // red color
pixsDistance = iDistance*22.5; // covers the distance from the sensor from cm to pixels
// limiting the range to 40 cms
if(iDistance<40){
// draws the object according to the angle and the distance
line(pixsDistance*cos(radians(iAngle)),pixsDistance*sin(radians(iAngle)),950*cos(radians(iAngle)),-950*sin(radians(iAngle)));
}
popMatrix();
}
i've copied all the code before proccesing into the arduino ide and it gives the below error while verifying
the code.
error= ''pushMatrix is not declared in this scope''
please help.
thnx for the project it worked for me thnx again this is the video https://youtu.be/N9FxTwBmWCk
(https://youtu.be/N9FxTwBmWCk)
REPLY
1.1k
Shares
REPLY
REPLY
25
Joh n
M a rc h 5 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 66 3 )
Hi, if i want to make the radar full screen how can i do? Thank you.
REPLY
De Al on
M a rc h 6 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 66 8 )
Albin G eor ge
M a rc h 1 0 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 67 9 )
Hello sir,
While im trying to run the processing code the processing window get hanged and these errors are shown.
Could not run the sketch (Target VM failed to initialize).
1.1k
For more information, read revisions.txt and Help ? Troubleshooting.
Shares
REPLY
81
25
25
ab hi las h ( ht tp :/ / no ne)
M a rc h 1 2 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 68 5 )
how to over come the problem of import does not name a type
REPLY
Vi ne et
M a rc h 1 6 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 69 7 )
S AI K RIS HN A
M a rc h 1 6 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 69 9 )
Can anyone tell the code by adding hall sensor to this program?
REPLY
1.1k
Shares
92
Fran co
81
Hi,
25
Hi,
25
You can nd more info for the Processing IDE drawing function at its ocial website.
REPLY
gir isa nk ar
M a rc h 2 4 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 72 1 )
1.1k
Shares
gir isa nk ar
92
25
gir isa nk ar
Ma rc h 2 5 , 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 73 4 )
sir my processing shows a message could not load font OCRAExtended-30.vlw. make sure that the font
has been copied to the data folder of your sketch. what does that mean? im new in this eld pls help me
gir isa nk ar
M a rc h 2 6 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 73 6 )
gir isa nk ar
M a rc h 2 6 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 73 7 )
no lines are appearing in the display and now no errors are showing in processing
REPLY
o mA NG o
M a rc h 2 6 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 73 8 )
1.1k
Shares
92
81
25
Yes.
REPLY
omAN G o
Ma rc h 2 8 , 2016 (ht tp:// howtom e cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r ad ar -p ro je ct /# co mm en t- 74 6 )
thanks, and also, if i use pro mini do i have to change any of source code you made?
Hello.
My console window in processing is not showingno matter how many times i press runwhat should i do?
REPLY
Provide some more info about the problem. I cannot say anything with just this being sad.
REPLY
I have copied the 2 programs for arduino and processing as given..but after connecting the arduino uno to
my laptop and running the code in processing the console window is not appearing.the program is
uploaded in the arduino and the connections are ne.i am getting the output on the serial monitor.i am
a beginner so i am not sure where i am going wrong..
1.1k
Shares
REPLY
92
81
Nar asi mh a
M a rc h 2 9 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 74 8 )
25
THANKS FOR YOUR CODE AND IT WORKS VERY WELL .COULD WE INTERFACE THIS ANRDUINO AND
PAR T H
M a rc h 3 1 , 2016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p ro je ct /# co mm en t- 75 9 )
hello sir !!
There is error opening serial portCOM3:port is busy
and blank window is appeared. what should i do ??
REPLY
Can the given processing code work on Processing 3.0.2.for some unknown reason i am not getting any
output after i run the code because or is there any additional steps i need to take before/after uploading the
arduino code and then immediately running the processing code
REPLY
1.1k
Shares
Im tia z A hm ed
92
i m not getting any output on screen of ide processing it does not show anything
can you please tell do i need anyother java software install in pc???
java.lang.NullPointerException
25
REPLY
Im tia z A hm ed
A p ri l 7 , 20 16 (h t tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 77 9 )
R am ashi sh V erm a
A p ri l 9 , 20 16 (h t tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 78 7 )
Sure, but you will have to modify the schematics and the code.
REPLY
Pe ter
A p ri l 9 , 20 16 (h t tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 78 8 )
1.1k
Shares
How to make your processing code to draw more range than 40?I cant make it correctly(It will be nice to show
,how to make it to show 60cm and more)
92
REPLY
81
25
p ank aj si ngh
A p ri l 1 3 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 80 0 )
hello sir, when i am uploading my arudino uno code into arduino software program is uploaded but my servo
motor is not rotated why sir.
REPLY
Recheck your connection. Make sure you have everything connected properly and the pins match with the
code.
REPLY
R KS
A p ri l 1 4 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 80 3 )
we have used your code word to word and even worked out the font and screen resolution errors. But in the
end we are facing a problem. when we disconnect the sensor, the green line shows but as soon as we connect
the sensor the green lines disappear and only the red lines are visible. The sensor doesnt detect anything as
the distance is always 0 but the red lines move from 15-165 degrees. we thought there was something wrong
with the sensor so we changed it but that didnt help. so please help.
1.1k
Shares
REPLY
92
81
25
Well do you get correct values in the Arduino Serial Monitor from the sensor or its 0 all the time?
Well do you get correct values in the Arduino Serial Monitor from the sensor or its 0 all the time?
REPLY
RKS
Ap ri l 1 5 , 2 01 6 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 81 5 )
In the serial monitor we get 15,0.16,0.17,0.18 and so on. So I guess the distance is always zero. What does
this mean? How do we x this problem?
Thankyou
Check my ultrasonic sensor tutorial and see whether that one will work. If not probably your sensor isnt
working.
RKS
Ap ri l 2 4 , 2 01 6 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 85 0 )
yes, our sensor wasnt working. After replacing it, the project has been working perfectly now. Thanks a
lot!
92
81
Ahm e d Mo ust af a
25
A p ri l 1 4 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 80 4 )
Hello Sir,
How can I use this code to drive my robot for the nearest object ?
How can I use this code to drive my robot for the nearest object ?
I have the nearest object angel and distance, but I dont know how to control the motors for this position
REPLY
Nau sikaa
A p ri l 1 5 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 81 6 )
I tried to use this code but it seems that the bottom half is in Javascript instead of c++ or any other compatible
code, so it wont work with my Arduino. How could I x this?
REPLY
p ank aj si ngh
A p ri l 1 6 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 82 1 )
hi sir, how to connect the processing code through arduino uno code.
REPLY
1.1k
Shares
moh cine
92
81
25
REPLY
Os car Davi d
A p ri l 2 1 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 83 6 )
Hello
I need the range is 1 meter, where in the processing code must be congured to have that scope?
REPLY
ab del adem
A p ri l 2 1 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 83 8 )
Dear Dejan
thank you so much for your great projet ,so to make it works ive changed :
1.1k
COM4 to COM12 in Pocessing code.
Shares
OCRAExtended-30.vlw to OCRAExtended-48.vlw wich already exist in my computer.
and since im not familier with IDE Processing i still trying to change the resolution wich comes for (1920, 1080)
92
screen
81
25
REPLY
There is another code at the bottom of the post which is for a custom resolution.
REPLY
Gi lle s
A p ri l 2 1 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 84 0 )
R ick ey Si ngh
A p ri l 2 1 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 84 1 )
Hello Sir, for the updated display code I am getting an error which reads:
1.1k
exit
Shares
status 1
92
This
81
REPLY
25
You are messing things up. You are using an Arduino code in Processing IDE.
REPLY
RS
Ma y 3, 2 016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 88 1 )
I gured out what I was doing wrong and the project is working well.
Can I integrate the display on an LCD?
I have a 3.2 TFTLCD Shield for Arduino Mega2560.
Also, do you have any advise on the code and pin connections for this LCD display?
It might be done but you need to create your own code which wouldnt be that simple.
Joh n
A p ri l 2 7 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 86 7 )
Hello
Should I use mini servo for this procect? If I use a bigger servo,do I need to modify anything in the code?
REPLY
1.1k
Shares
92
81
25
Well it depends whether the servo is driven in the same way as the mine.
REPLY
haz iq
A p ri l 2 8 , 2 016 (ht tp:// howtomechat ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 86 8 )
hello sir dejan, how do we connect the ultrasonic sensor with the laptop screen? which code should i modify?
REPLY
hazi q
Ap ri l 2 9 , 2 01 6 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 87 2 )
sir dejan, i still blurred on the step.. can you please show me in detail? i am still new with arduino ..
hazi q
Ap ri l 2 9 , 2 01 6 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 87 3 )
sir dejan, or maybe you just give me the lines for arduino code to connect the ultrasonic sensor with
laptop screen.. thankyou
1.1k
Shares
Ma rc T ran
92
Hello
81
dejan,
25
partial screen of the scanning radar. Changing the display resolution does not x the problem. I also change to
dierent font. Please help.
Thanks in advance.
REPLY
Did you use the updated code at the bottom of the article?
REPLY
Ma rc
Ma y 4, 2 016 (ht tp:// howtomecha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r -p ro je ct /# co mm en t- 89 0 )
Vi nay Bhat
M a y 8 , 2 016 (h tt p:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o j e ct /# co mm en t- 89 4 )
Sir im using ubuntu and i have problem with that processing code. Its says port error!!
Help!!
REPLY
1.1k
Shares
Well yes, the line for dening the port should should be modied. Each OS needs dierent denition.
81
REPLY
25
Ub er nez
M a y 1 3, 2016 (h t tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 91 3 )
Hi, My daughter is about to do this project with her weekend Science group (all 12 years old).
I just wanted to say that the code and the video and the explanations are excellent, and I think this will be an
excellent project for them.
I am also going to use it to introduce the concept of Radians to them, as a side note.
Many thanks for your all your eorts and explanations and tutorials. A truly inspirational site.
REPLY
Uber nez
Ma y 19, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 92 4 )
My daughter has done the project, and it worked perfectly rst go!
Excellent.
(Did not use the updated code version, just the original).
Many thanks again.
1.1k
Shares
92
81
25
Cip r ian
M a y 2 4, 2016 (h t tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 95 4 )
Hello Sir,
I have a problem with Processing. Last time I used this app everything functioned. Now the radars drawing is
broke. I cant attach a picture to show you what is happening. Radar appear regular when I open Processing but
it doesnt scan the near environment. It just draw a bold red line from the center to the begining degree of
scanning.
REPLY
You might be having a problem with the ultrasonic sensor not giving the correct values. Check them via the
Arduino Serial Monitor rst.
REPLY
Cipri an
Ma y 24, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 95 6 )
Cipri an
Ma y 24, 2016 (ht tp:// howtome cha t ron i cs. c om/ p roj e ct s / a r d u i n o - r a d ar -p ro je ct /# co mm en t- 95 7 )
I tried to change pins in the testing program for the sensor with the pins 10 and 11 and the sensor is
working. do you know another software like processing?
1.1k
Shares
D Alon
92
25
REPLY
Klau s
M a y 2 6, 2016 (h t tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 96 8 )
Very cool project! Thanks for sharing! Worked great after I xed the problem with the font.
REPLY
Pie rr e
M a y 2 9, 2016 (h t tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 98 4 )
Hi Dejan,
Thanks for making this project available, its very impressive. We brought it to a group of about 60 students and
1.1k
they made it. All were very impressed with the results.
Shares
Ive done it on my computer and it works very well. On the student laptops, coming with many dierent setups,
screen resolutions and operating systems, we had issues on some. The main one was with resolution. Even
92
using your last code for all screen resolution, and changing the size (1920, 1080); line with their respective
screen resolution did not change the size of the radar graph. We can only see the top left corner of the radar,
the base and angles-distances out of the screen. This mainly happened with the lower screen resolutions,
81
with
around 1360, 768. I think other feedbacks mentioned this as well, Im trying to troubleshoot on my computer
but
25
Others were getting error messages when compiling the Arduino code, Im thinking it could be linked to their
antivirus softwares as they were getting prompts from it. Anyway well work through this one.
Thanks again for sharing this code, it made the kids very happy!
REPLY
Pie rr e
M a y 2 9, 2016 (h t tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 98 5 )
Hi again,
The resolution issue is solved. I think I had used a previous version of your code, I see that all graphics are sized
for width and height of the size() function.
Thanks!
REPLY
Great, Im so glad to hear that it worked for you and that the students had fun making it.
REPLY
REPLY
92
81
25
Thanks. Well I dont have such an code, but its probably possible to be done.
REPLY
ro z z er s
J u ne 1 0 , 2016 (ht tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 99 7 )
Hey Dejan. Great instruction. Heres a demo of a makealike with the help of one of my kids..
https://youtu.be/ny7O03J-pRE (https://youtu.be/ny7O03J-pRE)
REPLY
b uil d er 14
J u ne 1 5 , 2016 (ht tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 10 0 2 )
Great project! However I did have a problem downloading the processing sketch for the screen. Do you know
why? Thanks.
REPLY
1.1k
Shares
92
81
25
Car los
Car los
J u ne 1 8 , 2016 (ht tp:// howtomechatron i cs. c om/ p roj e ct s / a r d u i n o - r a d a r - p r o je ct /# co mm en t- 10 0 9 )
Hello
I am really new using arduino. I see that the code that you gave us is in 6 parts. How i mixed up?
thank you
REPLY
There is one Arduino code and one Processing IDE code. Everything is stated well in the post, which of them
where it needs to be used.
REPLY
LEAVE A REPLY
Comment
1.1k
Shares
92
81
Name*
25
Website
Email*
SUB MI T
1.1k
Shares
92
81
25
(http://www.cayenne-mydevices.com/arduino-beta-signup/?
utm_source=howtomechatronics&utm_medium=banner_ad&utm_campaign=howtomechatronics_ArduinoBeta)
L AT E S T
(HTTP://HOWTOMECHATRONICS.COM/TUTORIALS/ARDUINO/HOWTO-BUILD-CUSTOM-ANDROID-APP-FOR-YOUR-ARDUINO-PROJECTUSING-MIT-APP-INVENTOR/)
Dejan Nedelkovski
(http://howtomechatronics.com/author/howtom12_wp/)
March 30, 2016
15
(http://howtomechatronics.com/tutorials/arduino/how-tobuild-custom-android-app-for-your-arduino-project-usingmit-app-inventor/#comments)
(HTTP://HOWTOMECHATRONICS.COM/TUTORIALS/ARDUINO/ARDUINO(HTTP://H
AND-HC-05-BLUETOOTH-MODULE-TUTORIAL/)
Dejan Nedelkovski
(http://howtomechatronics.com/author/howtom12_wp/)
February 29, 2016
11
(http://howtomechatronics.com/tutorials/arduino/arduinoand-hc-05-bluetooth-module-tutorial/#comments)
HowToMechatronics
7,153likes
LikePage
Share
1.1k
Shares
92
HOW TO
EnterYourEmailAddress
81
Iwillnevergiveaway,tradeorsellyouremailaddress.Youcanunsubscribeatanytime.
25
POPULAR
SignUp
(http://
extend-
Dejan Nedelkovski
(http://howtomechatronics.com/author/howtom
July 28, 2015
225
(http://howtomechatronics.com/projects/ardui
radar-project/#comments)
(http://howtomechatronics.com/projects/arduino-radar-project/)
Ultrasonic Sensor HC-SR04 and Arduino Tutorial (http://howtomechatronics.com/tutorials/arduino/ultrasonic-sensor-hc-sr04/)
Dejan Nedelkovski (http://howtomechatronics.com/author/howtom12_wp/) July 26, 2015
52 (http://howtomechatronics.com/tutorials/arduino/ultrasonic-sensor-hc-sr04/#comments)
1.1k
Shares
92
81
25
(http://howtomechatronics.com/tutorials/arduino/ultrasonic-sensor-hc-sr04/)
(http://howtomechatronics.com/tutorials/arduino/how-i2c-communication-works-and-how-to-use-it-witharduino/)
Recommended: SunFounder New Uno R3 Project Super Starter Kit - Including 73 Page Instructions Book
1.1k
Shares
92
81
25
(http://www.sunfounder.cc/?
c=146736651876 )
(https://www.facebook.com/howtomechatronics)
(https://plus.google.com/+Howtomechatronics)
(https://www.youtube.com/user/DejanNedelkovski)
HOW TO MECHATRONICS
HowToMechatronics is an education website in the area of Mechanical, Electrical and Computer Engineering.
Tutorials, Tips, Tricks, How It Works, Projects, Examples, Source Codes, Download les and much more can be
found here.
(https://www.facebook.com/howtomechatronics)
(https://plus.google.com/+Howtomechatronics)
(https://www.youtube.com/user/DejanNedelkovski)
D A I LY I N S P I R A T I O N
1.1k
Shares
92
81
25
Copyright 2016 HowToMechatronics.com. All rights reserved. Terms and Conditions (http://howtomechatronics.com/disclaimer/)