I was thinking about this recently as well. I found this link below to the Arduino firmware source which contains binary representations for all values 0 to 255.
https://github.com/arduino/Arduino/blob ... o/binary.h
Search found 9 matches
- 11 Sep 2012, 04:27
- Forum: Mindstorms Software
- Topic: hard-coding binary constants
- Replies: 11
- Views: 11478
- 01 May 2011, 18:49
- Forum: Mindstorms Hardware
- Topic: NXT motor: use as an encoder with removed motor?
- Replies: 51
- Views: 40483
Re: NXT motor: use as an encoder with removed motor?
I have used an external encoder that works off the Lego Motor Port. Check out https://sites.google.com/site/encodernxt/ for a write up I did some time ago. It is a regular encoder manufactured by CUI that just happens to match up almost perfectly with Lego technic beams and axles. The best part is i...
- 27 Nov 2010, 15:47
- Forum: Mindstorms Software
- Topic: NXC direct IO pin access
- Replies: 2
- Views: 4147
Re: NXC direct IO pin access
I can say at least that the functions exist to do so. If you look at the NXC API documentation http://bricxcc.sourceforge.net/nbc/nxcdoc/nxcapi/index.html under Input Module Functions, the following functions are listed: void SetSensorDigiPinsDirection(const byte port,const byte & direction) voi...
- 05 Nov 2010, 21:58
- Forum: Mindstorms Software
- Topic: wishlist for BricxCC
- Replies: 186
- Views: 720901
Re: wishlist for BricxCC
I find it frustrating that the items on the tools menu (i.e. Diagnostics, Send Messages, Nxt Explorer, etc...) get caught behind the editor and at least for the Windows version you can't alt-tab to bring it back to the foreground. I end up having to click twice on the tools menu to get the tool back...
- 27 Oct 2010, 00:47
- Forum: Mindstorms Software
- Topic: Limited capabilities of NXC
- Replies: 10
- Views: 14909
Re: Limited capabilities of NXC
... no arrays in structs are the first things that hit me. Unless I've written an example that somehow works and shouldn't, I don't believe this is true any longer. I am using BricxCC Version 3.3.8 and enhanced firmware 1.28. This example program will write the results to a csv file so you can see ...
- 20 Oct 2010, 03:46
- Forum: Mindstorms Projects
- Topic: RS-232 to RS-485 converter
- Replies: 3
- Views: 5458
Re: RS-232 to RS-485 converter
nxtreme -- 1. If memory severs me correct, most laptops and pc's manufactured recently (past 10 years or so) will accept 5V RS232 signals just fine 2. Your idea seems possible and mostly reasonable. You could probably ditch the second Picaxe controller and do that processing with the NXT.... 3. RS48...
- 01 Oct 2010, 19:07
- Forum: Mindstorms Hardware
- Topic: New from HiTechnic: Angle and Magnetic Sensors
- Replies: 24
- Views: 50547
Re: New from HiTechnic: Angle and Magnetic Sensors
The NXT can handle that many pulses per second without missing a few? - Xander I never had any problems... really the NXT motors turn pretty slowly (160 RPM max). Eventually at a high enough rpm, you would run into trouble. Maybe I'll dig it out and do some tests with it geared up to see when the N...
- 01 Oct 2010, 00:28
- Forum: Mindstorms Hardware
- Topic: New from HiTechnic: Angle and Magnetic Sensors
- Replies: 24
- Views: 50547
Re: New from HiTechnic: Angle and Magnetic Sensors
cghaning, How would you count the pulses that quickly on the NXT? You won't be able to do without an additional controller that has interrupts. - Xander Xander -- I wired this encoder to the normal motor tachometer (encoder) inputs of the motor port (on the connector this is pins 5 and 6) so no ext...
- 30 Sep 2010, 03:57
- Forum: Mindstorms Hardware
- Topic: New from HiTechnic: Angle and Magnetic Sensors
- Replies: 24
- Views: 50547
Re: New from HiTechnic: Angle and Magnetic Sensors
If you are willing to build your own, a company named CUI makes an encoder that very easily is adpated to Lego use and can be through axle mounted, and also is compatible with the normal motor tachometer inputs of a motor port. It also has a much higher resolution -- 2048 lines which if I remember c...