So I want to see the motor temperature on either my controller or my V5 brain’s screen because sometimes the motor overheats during competition because I have no idea what the temperature is, so I’m wondering is there a way to show my motor temperature somewhere I can see?
Well, the command to get temperature is in the VEXcode API (linked above), temperature units are
Some good forum searches can find plenty of threads about displaying motor temperature or other values. For instance:
Here’s how our code does it: (EDIT: this is for printing to the brain)
Brain.Screen.printAt(2, 40 ,"Motor Temp %f " , Motor.temperature(percentUnits: :pct));
First number is x position on the screen, second is y, %f is placeholder that allows the second number to print.
Edit: just realized you said controller, my bad. Here is how you would print to the controller display. Note that the controller only has a maximum of 40 ms (iirc) update rate on the screen.
Here’s a quick program in Python to display the battery state and motor temp (for motor_15, one of my drive motors). It prints the motor temp, runs for 30 seconds, then prints the ending motor temp:
brain = vex.Brain()
motor_15 = vex.Motor(vex.Ports.PORT15, vex.GearSetting.RATIO18_1, True)
motor_16 = vex.Motor(vex.Ports.PORT16, vex.GearSetting.RATIO18_1, False)
# main thread
brain.screen.print_line(2, 'Battery capacity plus motor temp…
I am trying to write code that will display an error message on the controller and the brain preemptively before a motor overheats, the problem being that I cannot find the threshold. Does anyone have information on the temperature when overheating, or even just normal use?
Hi, does anyone know how to display motor input and output power data to the brain using V5 text? I want to display these values and then download them to an SD card to graph the data.
thank you so much