Seeking Guidance

This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc

Moderators: roger, 99jonathan, imaqine

Seeking Guidance

Postby Zetlin » Mon Sep 26, 2011 5:31 am

Hello I am a new user!

Let me state right of the bat that I am quite experience with Java, I have been programming for over 3 years and I have finally decided to do a little work with robotics. The problem is that while I have a solid understanding of electronics and electricity I have never set out to work with it, so I need some guidance for this project. Now I have some questions that ultimately will decide whether the NXJ is the right tool for the job so please bare with my cliche questions.

Alright so here are the specifications of what my project will do:

I want to create an "electronic head", what I mean by that is that my "robot" will be a head that sits on a surface(table), it can spin around a fix axis but it cannot move from its position. Now this head will be equipped with a camera(initially, I plan to use two cameras to play around with stereo vision), a microphone(same as the camera, I will end up adding a second microphone for the same reason), and a speaker. The "head"(the brick really) will be controlled via USB by my PC, the computer will do all the processing of information, once the computer has the processed information, it could tell the brick to spin the head, to speak something, but most importantly the brick will send a live feed(the information) to the computer from the cameras and the microphones to be processed.

With that said here are my questions!

According the tutorial on the LeJOS website I can connect the NXJ brick using a USB cable to my PC using streams. My question is: can I have multiple streams, some starting from the PC and some from the brick creating a sort of loop like cycle through a single USB cable? For example the computer telling the brick how to spin the head or what to speak, and the brick telling the computer what it "senses"(sending a live feed from the cameras and the microphones) in parallel(multithreading).

Let me make the above clear, the brick must be able to send the information from multiple cameras and multiple microphones to the PC and be able to receive information on how to behave through one USB cable.

If that is possible than regardless of price, what would be the best choice for high efficiency cameras, microphones and speakers that work best with the NXJ? What would be the best API's/Frameworks to process the feeds from the camera, microphone and speaker
Zetlin
New User
 
Posts: 3
Joined: Mon Sep 26, 2011 4:30 am

Re: Seeking Guidance

Postby gloomyandy » Mon Sep 26, 2011 12:01 pm

Hi,
I don't think you will find any cameras that will allow you to stream video images via the NXT. The available interfaces simply do not support fast enough data rates, to support a high frame rate.
The standard code that supports USB streams to the NXT only supports a single stream, if you want to allow multiple streams then you could do this yourself, but you would have to multiplex the various streams onto the USB interface.

All in all I suspect that the NXT is probably not the best platform for this project...

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3004
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Seeking Guidance

Postby bullestock » Mon Sep 26, 2011 9:41 pm

Like Andy said, the NXT is not fast enough to transfer the video data to the PC - but is that really necessary? Why not just connect the camera(s) directly to the PC, and let the NXT take care of only motors and possibly additional sensors? Most (all?) current webcams include a microphone, so I guess there is no need for separate mics.

And if you only want a single cable to the PC, just put a small USB hub inside the "head".
bullestock
New User
 
Posts: 14
Joined: Fri Mar 04, 2011 9:52 pm

Re: Seeking Guidance

Postby Zetlin » Mon Sep 26, 2011 11:27 pm

Yea I do need a feed with a high frame rate, I wouldn't mind using a USB HUB and and doing the motors and sensors with the NXT, as a matter of fact it actually sounds like a pretty good idea considering I can get around 420Mbps on a nice USB hub. So that established I still need to know where can I get cameras, microphones(I need them separate from the camera to play with acoustics), and speakers that would integrate well with Legos(they also have to be very efficient)!

Thanks a lot already guys you've been of great help!
Zetlin
New User
 
Posts: 3
Joined: Mon Sep 26, 2011 4:30 am


Return to NXJ Hardware

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff