Keyboard->NXT

Discussion specific to the intelligent brick, sensors, motors, and more.
fuzzball27
Posts: 103
Joined: 29 Sep 2010, 17:14
Location: US

Keyboard->NXT

Post by fuzzball27 »

I'm curious if it is possible to hook a USB keyboard to the NXT. Of course, not using the USB, I would cut the cable ;)
Please, no programming codes, I'm just curious as far as hardware goes.
Thanks
fuzzball27 >>-->
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Keyboard->NXT

Post by mightor »

Not without some additional hardware like a small microncontroller to sit between the keyboard and the NXT.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Keyboard->NXT

Post by HaWe »

could you show me where to buy that "some additional hardware"?
probably also a IIC to BT interface which mimicris also the HID BT protocol to access to a wireless BT keyboard?
(ps: and a Java class which is already implemented to that certain "ueber class" ;) )
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Keyboard->NXT

Post by mattallen37 »

I know this isn't the solution, but you can use a PS2 keyboard with just a couple ICs as an interface. Note, I have not tried this yet, but I have seen it done. Michael Gasperi (http://www.extremenxt.com/lego.htm) did it. Go to http://www.extremenxt.com/keyboard.html for details.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
gloomyandy
Posts: 323
Joined: 29 Sep 2010, 05:03

Re: Keyboard->NXT

Post by gloomyandy »

Well the Java class already exists for leJOS...
http://lejos.svn.sourceforge.net/viewvc ... iew=markup
The keyboard that this interfaces to is a Bluetooth SPP device like this one (I think, I've not got one so can't be 100% sure)...
http://www.freedominput.com/technical-s ... al-support

Andy
fuzzball27
Posts: 103
Joined: 29 Sep 2010, 17:14
Location: US

Re: Keyboard->NXT

Post by fuzzball27 »

I'm using NXC, not Java or Lejos. What is "additional hardware?"
fuzzball27 >>-->
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Keyboard->NXT

Post by mattallen37 »

fuzzball27 wrote:...What is "additional hardware?"
It is
xander wrote:...like a small microncontroller...
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
fuzzball27
Posts: 103
Joined: 29 Sep 2010, 17:14
Location: US

Re: Keyboard->NXT

Post by fuzzball27 »

Have you ever googled "microcontoller"? There are 7,510,000 results. I have no idea what it is or how to use it...is it over my head or an easily attainable skill to use them?
fuzzball27 >>-->
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Keyboard->NXT

Post by mattallen37 »

So, you looked it up. Good for you. Did you learn anything about what a "microcontoller" is? It is what is in the NXT that does processing (actually 3 of them IIRC).

If you don't have enough electronics knowledge to know how to build circuits and troubleshoot, this is not a project you should attempt. If you do have a fair amount of electronics knowledge, then using a microcontroller shouldn't be overwhelmingly hard. Using them requires a lot of electronic knowledge, logic, and at least some programming ability (if you are using NXC for the NXT, then most other languages should be fairly easy to start using, like BASIC or C++).

If/when you attempt to work on building this project, you should start by using a PS2 keyboard instead of USB. Low level USB is much more advanced than you probably want to get for this, so you should use the best alternative (PS2). PS2 keyboards just send serial commands, which can be easily interfaced to the NXT.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Keyboard->NXT

Post by HaWe »

gloomyandy wrote:Well the Java class already exists for leJOS...
http://lejos.svn.sourceforge.net/viewvc ... iew=markup
The keyboard that this interfaces to is a Bluetooth SPP device like this one (I think, I've not got one so can't be 100% sure)...
http://www.freedominput.com/technical-s ... al-support

Andy
Great. Really great. Can you add it to a Java super-class? ;)
(and nice to see that double is useful to have )

But I also liked to know something specific information about the NXT BT interface you are using - is it external (plugged by I²C) or do you just connect it to via the NXT built-in BT device control (where you connect e.g. to different NXTs)?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests