Search found 4 matches
- 01 Sep 2011, 19:40
- Forum: Mindstorms Software
- Topic: [NXC] Please help me using an ADC over I2C
- Replies: 5
- Views: 6487
Re: [NXC] Please help me using an ADC over I2C
Ok, I tried it and it doesn't work, but I don't think this ADC works with registers??? I think that the datasheet means this for recieving data: 1) Send a START condition 2) Send the address WITH the write bit (in my case 0x90) 3) Recieve Acknowledge (SDA Low) 4) Send the command-byte (0x84 in my ca...
- 01 Sep 2011, 15:24
- Forum: Mindstorms Software
- Topic: [NXC] Please help me using an ADC over I2C
- Replies: 5
- Views: 6487
Re: [NXC] Please help me using an ADC over I2C
I don't know any other languages besides NXC (other than NXT-G, ofcourse). I have looked in their examples, but they are all different than the methode to access the data described in the datasheet. By the way, it's a homemade sensor (like the mindsensor's line sensor, but less advanced & cheape...
- 31 Aug 2011, 12:26
- Forum: Mindstorms Software
- Topic: [NXC] Please help me using an ADC over I2C
- Replies: 5
- Views: 6487
[NXC] Please help me using an ADC over I2C
Hello, Some time ago I've made a sensor using the ADS7828 A/D converter. It has 8 input channels. Datasheet: http://www.ti.com/lit/ds/symlink/ads7828.pdf In the datasheet is an explanation of how to use it on I2C, but I can't get it to work on NXC, because I don't know how the commands in NXC exacte...
- 30 Jun 2011, 20:41
- Forum: Mindstorms Software
- Topic: Need some help on creating a RS485 library on NXC
- Replies: 25
- Views: 30060
Need some help on creating a RS485 library on NXC
Hi, For a next robot build, I'd like to use RS485 connection, but I can't get it to work. I have never used RS485 before, so it seemed me the best to make a library so I can use it very often and easy. Here's my Lib I created: // Lego NXT RS-485 Library // Made by Robbe D void WaitForMessageToBeSent...