 | | 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)
|