 | | Re: NQC programming guide
|
|
(...) If you want to perform the same operation (or sum) on multiple variables, you can use a loop. As long as you use the same variable that controls the loop to control the array, then each successive iteration through the loop will perform the (...) (19 years ago, 5-Dec-06, to lugnet.robotics)
|
| |
 | | Re: NQC programming guide
|
|
(...) You'll know when you need it, probably. (...) It's a style thing. (...) There are a number of 'Beginner's Guide to C' style books, buy one. :-) (19 years ago, 5-Dec-06, to lugnet.robotics)
|
| |
 | | Re: NQC programming guide
|
|
I think you need to learn to program in text-based languages in general, first. Since NQC stands for "Not Quite C," you should learn the basics of programming in C or C++. (URL) sure someone will come in here and decry that approach and tell you to (...) (19 years ago, 5-Dec-06, to lugnet.robotics)
|
| |
 | | Re: NQC programming guide
|
|
(...) So why use an array with say 5 values and not 5 variables? (...) so it's always +1, not like my pocket calculator which will keep adding the original value of x if I use a double + (5++ =10, 15, 20, etc.) (...) (19 years ago, 5-Dec-06, to lugnet.robotics)
|
| |
 | | Re: NQC programming guide
|
|
(...) I wouldn't say I was a great programmer either. An array is simply a sequence of memory variables (say 1-10) that can be accessed via their numeric position. x++ If you write x++ in your code and x=1, once used, one will be added to it so it (...) (19 years ago, 5-Dec-06, to lugnet.robotics)
|
| |
 | | NQC programming guide
|
|
I've been lurking on the forum for some time now, and it's about time I asked a few questions. I've read Mark Overmars' "Programming Lego Robots and using NQC" and am going through Dave Baum and John Hansen's "NQC Programmer's Guide". both are (...) (19 years ago, 5-Dec-06, to lugnet.robotics)
|
| |
 | | Re: nxt + i2c sp03 Text-To-Speech?
|
|
(...) There are chips available to convert ASCII text to allophones, although this would increase the power requirements. One example: (URL) actually used such a combination (many years ago) to build a simple speech synthesizer board for my apple (...) (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | Re: nxt + i2c sp03 Text-To-Speech?
|
|
(...) That is pretty much exactly what I was talking about. Of course, such a chip cannot increase the available power, it can only tweak the ratio between voltage and current. So this might work for some applications, but perhaps not in this (...) (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | Re: nxt + i2c sp03 Text-To-Speech?
|
|
(...) If I'm understanding things correctly, could something like this work? (URL) appears to be able to take 2.5 - 5.5v in and give up to 5v out at up to 90mA. It would be great if it could be powered from the sensor port directly instead of having (...) (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | Re: nxt + i2c sp03 Text-To-Speech?
|
|
(...) I'd say its worth a try from the 4.3v supply from the NXT. I note that the SP03 spec. says it has a 3v regulator onboard, so its not really running from 5v anyhow. The I2C signals are open drain, so they should be ok unless their inputs won't (...) (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | Re: nxt + i2c sp03 Text-To-Speech?
|
|
(...) It sounds like the NXT probably doesn't have enough power available to run that chip, but you might look at using a BUC (Boost-Up Converter) component to bring the 4.3V supply up to a higher level? I've only been peripherally involved with (...) (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | Re: nxt + i2c sp03 Text-To-Speech?
|
|
(...) Yes, but unfortunately the 9V sensor supply is limited to 15mA just like the RCX sensor supply. Not easy to power a module that consumes 80mA... Philo (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | Re: nxt + i2c sp03 Text-To-Speech?
|
|
(...) That would be the LOWSPEED_9V flag? (...) I just might do that. (...) The chip used in the book I have is the SpeakJet (URL) It's a LOT cheaper than the sp03, however, it uses a serial interface and would be a lot more complicated. I'd have to (...) (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | Re: NXT with C#
|
|
Hi Alex, I know of two tools presently available that enables you to control the NXT with C#: (...) (19 years ago, 5-Dec-06, to lugnet.robotics)
|
| |
 | | RE: nxt + i2c sp03 Text-To-Speech?
|
|
The NXT can also optionally apply 9V to I2C sensors on the same input/wire that is used for reading the analog values. There's a flag to set this up. I know it is accessible in RobotC and I think you should also be able to set it up via NBC. SO (...) (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | Re: nxt + i2c sp03 Text-To-Speech?
|
|
Hi Tony, (...) Nice little beast! (...) Most probably it should work. I am a bit more concerned about current consumption (80mA - not 80mAH as shown in documentation!), since the 4.3V supply can deliver 180mA for ALL seven NXT ports. You may also (...) (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | nxt + i2c sp03 Text-To-Speech?
|
|
I'm a software guy, not a hardware guy. I have very little experience designing circuits. To show how little I know, I'm actually reading through Electronics Projects for Dummies at the moment. ;) Well in this book they describe a simple (...) (19 years ago, 5-Dec-06, to lugnet.robotics.nxt)
|
| |
 | | Re: NXT with C#
|
|
(...) I'm just starting out with the NXT, myself, but it should be a straightforward process to wrap the (URL) fantom SDK library> as either a DLL or an ActiveX control. I've got about three other programming projects going on at the moment, but (...) (19 years ago, 4-Dec-06, to lugnet.robotics, FTX)
|
| |
 | | NXT with C#
|
|
Hi All, Is there any COM object or DLL that I can use to access NXT unit with C#? Alex (19 years ago, 4-Dec-06, to lugnet.robotics)
|
| |
 | | Re: NBC-NCX Experiences
|
|
(...) The simple answer is that NXC does not yet expose that functionality. I am feverishly working on implementing that API. I apologize for the compiler problems. John Hansen (19 years ago, 3-Dec-06, to lugnet.robotics.nxt)
|