Search found 14 matches

by photon-1
12 Apr 2012, 15:21
Forum: Open Discussion
Topic: multi-threading possible on nxt but not arduino; why?
Replies: 3
Views: 5690

multi-threading possible on nxt but not arduino; why?

So I just wandered why it's possible to perform multi-threading/parallel programming on the nxt (e.g. using the tasks in nxc) but this is not possible on arduino (or is it?). Has the "task" system been implemented in nxc through 'software/programming tricks' or is it to do with the hardwar...
by photon-1
20 Mar 2012, 00:40
Forum: Mindstorms Software
Topic: nxt and arduino i2c help
Replies: 7
Views: 8113

Re: nxt and arduino i2c help

aahh never mind, I think I have the answer to my question; my guess is you could have a register for different devices connected to the arduino which would make them a bit easier to manipulate.

Thanks ALOT for the help anyways.
by photon-1
20 Mar 2012, 00:27
Forum: Mindstorms Software
Topic: nxt and arduino i2c help
Replies: 7
Views: 8113

Re: nxt and arduino i2c help

thanks alot matt... after looking at your nxc library I figured out what I was doing wrong with my code. I haven't programmed in a while so I made some mistakes; in particular I didn't pass the buffer to the function i used to send the data and i didn't even design the function to recieve the buffer...
by photon-1
19 Mar 2012, 07:40
Forum: Mindstorms Software
Topic: nxt and arduino i2c help
Replies: 7
Views: 8113

Re: nxt and arduino i2c help

Thanks mattallen37. I will try to go through your library and example to try and understand it and use it, although, it would be useful if you had some nxt code to go with the arduino code. It would be easier though, if I could understand the basic operations required for the communication so that I...
by photon-1
19 Mar 2012, 00:04
Forum: Mindstorms Software
Topic: nxt and arduino i2c help
Replies: 7
Views: 8113

Re: nxt and arduino i2c help

thanks in advance for any help you can give.
by photon-1
18 Mar 2012, 23:59
Forum: Mindstorms Software
Topic: nxt and arduino i2c help
Replies: 7
Views: 8113

nxt and arduino i2c help

Hi, I was wandering if anyone could help with making an I2C connection between the nxt and arduino. I know mattallen37 already wrote a library for it but I thought it was a bit too complicated for what I think should be a simple? task of sending information from the nxt and recieving it on the ardui...
by photon-1
29 Oct 2011, 11:07
Forum: Mindstorms Software
Topic: Please help with nxc code, not sure whats wrong.
Replies: 14
Views: 14729

Re: Please help with nxc code, not sure whats wrong.

Thanks very much for the detailed explanation John. I'm sure I'll be able to get it working now.
by photon-1
29 Oct 2011, 00:44
Forum: Mindstorms Software
Topic: Please help with nxc code, not sure whats wrong.
Replies: 14
Views: 14729

Re: Please help with nxc code, not sure whats wrong.

yeh i tried to simplify the program as much as I could b4 posting it. Anyways I'm pretty sure the problem is with that localise task where I'm resetting the rotation counter continuously: task localise() { while(1) { //some calculations here ResetRotationCount(OUT_AC); // problem statement!! //some ...
by photon-1
27 Oct 2011, 13:45
Forum: Mindstorms Software
Topic: Please help with nxc code, not sure whats wrong.
Replies: 14
Views: 14729

Re: Please help with nxc code, not sure whats wrong.

just incase you missed it, the file is called "SLAM - REFINING" in the above post. Anyways my thoughts on the problem: I'm resetting the rotation counter for the motors continuously in the "localise" task so does this affect the "OnFwd" functions for moving the motors s...
by photon-1
27 Oct 2011, 13:26
Forum: Mindstorms Software
Topic: Please help with nxc code, not sure whats wrong.
Replies: 14
Views: 14729

Re: Please help with nxc code, not sure whats wrong.

hi guys, sorry for the delay, hope you're still tuned in. I've actually figured out the problem but I haven't been able to figure out WHY it is a problem. I've messed around with the program a lot trying to simplify it and find out whats wrong. at the moment as it is right now (as I've posted it); I...