Pages: [1] 2   Go Down
Author Topic: Arduino Robot Car(with ping sensor) + Web Cam Object recognition  (Read 5540 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My and my friend ar trying to put a web cam on a robot car and make the car follow a specif color (blue) the car is working fine its avoiding all the obstacoles, we are trying to make the car using a web cam to folllow the color(blue) the color recognition is working fine. The question is : The car algoritm is in C the basic arduino programing language, and the color recognition is in MatLab, can we combine the two and uploaded on to the arduino?

for the car we are using a : Arduino uno, and 4 ping sensors
for the color recognition we are using : a leptop with a web cam and  matlab

Is there possible to combine and uploade both on the arduino and work ?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25697
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you figured out how to interface the webcam to the Arduino?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

we want to buy a small cam like this http://www.robotshop.com/eu/parallax-linescan-imaging-sensor-daughterboard-tsl1401-2.html and use on the car !

wath do you think ?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25697
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
wath do you think ?
I think reading 128 pixels at about 100us per pixel will be slow.
How are you going to distinguish colours?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

we have a code made in matlab for color recognition and the camera can select a specific color (ex: Blue) and wanth the car to follow ( ex: a blue object like a ball). is possible to introduce matlab code in my existing C++ code of arduino.  C++ and matlab or we need to crete or just matlab or C++  and uploaded into arduino ?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25697
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Let me rephrase the question:
How are you going to distinguish colours with a monochrome linescan camera?
Filter wheel?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sorry mabey that camera is not the one but with a difrent camera like this one http://www.robotshop.com/eu/CMUcam3-robot-vision-system-2.html
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25697
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, yes, using a camera that is smarter and more expensive than the Arduino, I think you'd be able to do what you want.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok but smiley-grin but can we combine the two code C++ and Matlab, and uploaded both on the arduino and work autonom ? ( matlab code to recognize the color and use C++ motor functions to drive the car toward the color ) ?
Logged

Portugal
Offline Offline
God Member
*****
Karma: 6
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Arduino doesnt have enought ram to do image processing, nor it as the power to do it.
You can convert the Matlab code, but it as a lot of complex functions that will take way more flash than the usual 32Kb that an Arduino Uno/duemilanove as.
You can process the data in a computer/laptop/netbook and then send it to Arduino via serial, the Arduino cant ever in its life do image processing.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25697
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know, I've never used the CMUcam, but I suspect that you'd be better be concentrating on your CMUcam code, and just using the Arduino to drive the motors and read the sonars.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25697
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The Arduino doesnt have enought ram to do image processing, nor it as the power to do it
Now that's just defeatist.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok if the arduino can process an image, can we strap on the car the leptop with the web cam and with the matlab software, and send the data to ardunino so the arduino know how to drive to the color ?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25697
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, but the Arduino code is almost trivial compared to the rest of the stuff.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Portugal
Offline Offline
God Member
*****
Karma: 6
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Doing bare metal things, with no C++ overhead, and using a line sensor of up to 128bits it can do something, but what data can be extracted from a simple line CCD, it cant follow or track anything, maybe it can say where is brightest or something like that, but not much more.

Using a laptop, the laptop process's all the data and then send via serial commands to drive the robot.
Logged

Pages: [1] 2   Go Up
Jump to: