To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxt.nxthackingOpen lugnet.robotics.nxt.nxthacking in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / NXT Firmware Hacking / *58 (-20)
  Re: pbLua PCF8574 SOLVED ?
 
(...) Hi, or was it a quirk at my brain to address the i2c-read-address and hope to receive usefull data ? Currently it works for me when using allways the i2c-write address... Are the any demos or samples for NXC, using the PCF8574 ? 1. setting (...) (17 years ago, 21-May-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  Re: pbLua PCF8574 SOLVED
 
(...) Hi, we solved the problem... Lego-Firmware has own brain and handle read/write with own mechanisms ;-( The last read/write bit is handled automatically by lowlevel routines. Reading the same address like writing solves the problem. (...) (17 years ago, 21-May-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  RE: NXT Programming with C Question
 
(...) Ralph and Brian have provided good input that parallels my experience. Here's a little more information. If you have access to the IAR tools you can compile the NXT firmware available in the NXT SDK from LEGO "out of the box". I believe there (...) (17 years ago, 20-May-07, to lugnet.robotics.nxt.nxthacking)
 
  Re: pbLua Hardware access
 
(...) All the nice IO-Ports of the ARM-CPU, which are connected to external ports :D But now I think, we did not need it any more. You are fast enough with your development and responses. Forget Peek and Poke from good old C64 times ;-) Thanks a lot (...) (17 years ago, 19-May-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  Re: pbLua PCF8574
 
(...) Hi Ralph, we are using this code: collectgarbage( "setpause", 110 ); function setupI2C(port) nxt.InputSetType(port,2) nxt.InputSetDir(port,1,1) nxt.InputSetState(port,1,1) nxt.I2CTimer(3) nxt.I2CInitPins(port) end function ReadPCF(port) (...) (17 years ago, 19-May-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  Re: NXT Programming with C Question
 
(...) Hi there, Thanks for venturing those reasons. I had been thinking that with the release of the NXT firmware that there may be options to compile code that worked directly with the firmware. Cheers (17 years ago, 19-May-07, to lugnet.robotics.nxt.nxthacking)
 
  Re: NXT Programming with C Question
 
(...) Hi Thanks for the fast response, I think I'll have a look at the pbLua firmware. What I am working towards is a method of running Haskell programs on the NXT by converting to C bytecodes first. (17 years ago, 19-May-07, to lugnet.robotics.nxt.nxthacking)
 
  Re: NXT Programming with C Question
 
(...) I suspect it could, but I'm not sure that's an approach you want to take. For one thing, there's the question of how to address and handle all the special HW that is attached to the ARM inside the NXT... and furthermore communicate with the (...) (17 years ago, 19-May-07, to lugnet.robotics.nxt.nxthacking)
 
  Re: NXT Programming with C Question
 
(...) There's no reason you can't compile straight ANSI C and run it on the NXT. I was doing it last year and ran an ATMEL sample program that turned the NXT into the world's most expensive 256K (not M) Flash drive :-) The hard part is using the (...) (17 years ago, 19-May-07, to lugnet.robotics.nxt.nxthacking)
 
  NXT Programming with C Question
 
Hi there: I've been trying to find a method of coding the NXT using C, however the existing languages available, such as RobotC, or NBC/NXC etc all seem to be C-like languages and not ANSI C. This seems to be the trend, but does anyone know why (...) (17 years ago, 19-May-07, to lugnet.robotics.nxt.nxthacking)
 
  Re: pbLua Hardware access
 
(...) There are no hidden commands, but if it's ABSOLUTELY necessary I can add peek and poke for bytes, words and longs. This may be more dangerous than it's worth :-) What hardware do you need access to? Ralph (17 years ago, 19-May-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  Re: pbLua PCF8574
 
(...) No ideas yet, Christian. I do have a Mindsensors kit here to look at over the weekend. Are you SURE you are sending the correct string to read the registers? Can you post the code you're using for the test here? Cheers, Ralph (17 years ago, 19-May-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  pbLua Hardware access
 
Hi, is there a way to access the NXT-hardware directly with pbLua ? Are there any hidden commands to allow this ? Any idea ? Thanks in advance Bye Christian (17 years ago, 18-May-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  pbLua PCF8574
 
Hi, has anybody successfully tried to read ports from I2C connected PCF8574 with pbLua (Beta-8) ? Writing and setting ports is no problem, but reading ports fails. The return value is every times 0 (not NIL) Any idea ? Thanks in advance Bye (...) (17 years ago, 18-May-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  Re: Building and downloading NXT firmware
 
(...) Thanks for trying: You need just to look at the NXTGCC project. You should probably be able to start by reading nxt.pdf at (URL) then install either the winarm or (URL) toolchains. Finally download the zip file from (URL) see if you can (...) (17 years ago, 14-May-07, to lugnet.robotics.nxt.nxthacking)
 
  Building and downloading NXT firmware
 
Hello Hackers, That's my first post to this group so I would like to introduce myself shortly: I'm a 34 year old german who has studied computer science some years ago. Being on the job for a few years I decided to go back to the university to get a (...) (17 years ago, 11-May-07, to lugnet.robotics.nxt.nxthacking)
 
  Deriving power from NXT® motor port A
 
This (URL) special cable> allows you to power external devices such as a a motor multiplexer or a wireless camera from your NXT. No need for external bulky battery box! (if your current consumption is low enough, 800mA max). Though plugged into NXT (...) (17 years ago, 25-Apr-07, to lugnet.robotics.nxt.nxthacking, FTX)
 
  Re: Using NXT Port 4 EIA-485
 
(...) Hi Juergen, Yes, I found this night the entries at Lego-Source-Code... and no line about P-NET-Protocol... My first thought was to implement a simple p-net-node at own MCU, but now I can try my own communication from NXT (master) to external (...) (17 years ago, 10-Apr-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  Re: Using NXT Port 4 EIA-485
 
Hi Christian, (...) the RS-485 interface is directly connected to the AT91SAM7S USART, so you can choose the bit rate quite freely. (...) No, it is not necessary, P-Net is just a field bus which seems to be popular in Denmark, there are others which (...) (17 years ago, 10-Apr-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)
 
  Re: Using NXT Port 4 EIA-485
 
(...) Hi, halfduplex is not the problem when connecting the NXT to an external MCU. My problem is the bitrate of 921,6 kbits/s. Simple cheap MCU like ATMega didn't support this bitrate (as far as I know). To add an external devices (e.g MCU+SD-Card (...) (17 years ago, 9-Apr-07, to lugnet.robotics.nxt, lugnet.robotics.nxt.nxthacking)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR