Hi,
Language: NXT-G 2.0
Situation: I have a motor (to drive a vehicle robot) with power control on, and want to read the the power level (because it dynamically changes due to the power control). I would like to simply just make a small program that plots power level against time on the NXT display as the car moves along.
Issue: Whenever I try connect a data wire from the motor data hub power level output, the wire breaks when it connects to anything. Just to test, I tried dragging it to the sound data hub volume input, but again, the wire breaks. Note that nothing is connected to the motor power level input as that would defeat the purpose of the motor control.
Any advice is appreciated. I'm just a beginner so excuse any ignorance!
Thanks
Help - Motor power output
-
- Posts: 346
- Joined: 27 Sep 2010, 03:05
- Contact:
Re: Help - Motor power output
That connector is an INPUT, not an output. You can only connect an output wire there, if there is a wire coming in.
There's not really a way to read the motor power. I suggest when you set it, you also store that value for later use.
Steve
There's not really a way to read the motor power. I suggest when you set it, you also store that value for later use.
Steve
---> Link to lots of MINDSTORMS stuff under my picture --->
Re: Help - Motor power output
Hi, thanks for your reply.
Yeah, by experiment, I found, as you said, that it will only allow an output motor power value if there is an input. But that defeats the purpose because I want to read the changing motor power, whereas the output will read the same as the input right?
Is there another method in NXT-G of reading the (dynamic) motor power level when motor power control is activated? Perhaps through use of the variable block reading and/or writing or something?
Thanks
Yeah, by experiment, I found, as you said, that it will only allow an output motor power value if there is an input. But that defeats the purpose because I want to read the changing motor power, whereas the output will read the same as the input right?
Is there another method in NXT-G of reading the (dynamic) motor power level when motor power control is activated? Perhaps through use of the variable block reading and/or writing or something?
Thanks
-
- Posts: 346
- Joined: 27 Sep 2010, 03:05
- Contact:
Re: Help - Motor power output
No, I don't think there is a way to read the motor power, only set it.
---> Link to lots of MINDSTORMS stuff under my picture --->
-
- Posts: 26
- Joined: 04 Dec 2011, 12:12
Re: Help - Motor power output
Take a look to third party block: Moter Power Meter:
http://box.com/mindboards#/mindboards/% ... D/79073752
Peter.
http://box.com/mindboards#/mindboards/% ... D/79073752
Peter.
Re: Help - Motor power output
That suggested block is perfect! Thank you very much. It is exactly what I'm after. I thought my problem would have been encountered by many other people too, but found nothing about it on google. Glad to see someone has come across it too and made a fix!
Best regards,
Samuel
Christchurch, NZ
Best regards,
Samuel
Christchurch, NZ
Who is online
Users browsing this forum: Ahrefs [Bot] and 6 guests