All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lejos.hardware.Power Maven / Gradle / Ivy

Go to download

leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.

The newest version!
package lejos.hardware;

/**
 * Interface used to access information about the EV3 battery and current usage.
 * @author Brian Bagnall, Lawrie Griffiths Andy Shaw
 *
 */
public interface Power {
		
	/**
	 * The NXT uses 6 batteries of 1500 mV each.
	 * @return Battery voltage in mV. ~9000 = full.
	 */
	public int getVoltageMilliVolt();

	/**
	 * The NXT uses 6 batteries of 1.5 V each.
	 * @return Battery voltage in Volt. ~9V = full.
	 */
	public float getVoltage();

	/**
	 * Return the current draw from the battery
	 * @return current in Amps
	 */
	public float getBatteryCurrent();

	/**
	 * return the motor current draw
	 * @return current in Amps
	 */
	public float getMotorCurrent();
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy