DC motor / generator Jeffrey A. Meunier jeffm@engr.uconn.edu
Electric motor An electric motor is used to convert electrical energy into mechanical energy.
Electric motor An electric motor is used to convert electrical energy into mechanical energy.
Electric motor An electric motor is used to convert electrical energy into mechanical energy. Apply DC power to cause the motor to spin.
Electric motor An electric motor is used to convert electrical energy into mechanical energy. Apply DC power to cause the motor to spin. DC = Direct Current, the electricity moves in one direction only.
Electric motor An electric motor is used to convert electrical energy into mechanical energy.
Electric motor An electric motor is used to convert electrical energy into mechanical energy. 1 (1) Applying voltage in one direction
Electric motor An electric motor is used to convert electrical energy into mechanical energy. 1 2 (1) Applying voltage in one direction (2) causes the motor to spin in one direction.
Electric motor An electric motor is used to convert electrical energy into mechanical energy. 1 (1) Reversing the direction of the voltage
Electric motor An electric motor is used to convert electrical energy into mechanical energy. 1 2 (1) Reversing the direction of the voltage (2) causes the motor to spin in the opposite direction
It's actually a voltage difference Any power supply is a supply of voltage difference, which is why it has two conductors, like +5 and Gnd.
It's actually a voltage difference Any power supply is a supply of voltage difference, which is why it has two conductors, like +5 and Gnd. A battery (cell) has + and terminals.
It's actually a voltage difference There is a difference of 1.5V between + and -.
It's actually a voltage difference There is a difference of 9V between + and -.
Electric generator If you spin the shaft of a DC motor, it will generate DC power!
Electric generator If you spin the shaft of a DC motor, it will generate a voltage difference! 1
Electric generator If you spin the shaft of a DC motor, it will generate a voltage difference! 2 1
Electric generator If you spin the shaft of a DC motor, it will generate a voltage difference! 2 1 Any voltage difference can be used as a source of electrical power!
Electric generator If you spin the shaft of a DC motor, it will generate a voltage difference! Any voltage difference can be used as a source of electrical power! Reverse the motor direction to reverse the voltage direction
Measuring the power output
Measuring the power output You'll build a wind-powered generator in your project.
Measuring the power output You'll build a wind-powered generator in your project. You can measure the amount of power generated by your generator.
Measuring the power output You'll build a wind-powered generator in your project. You can measure the amount of power generated by your generator. Power = Voltage x Current
Measuring the power output You'll build a wind-powered generator in your project. You can measure the amount of power generated by your generator. Power = Voltage x Current Voltage = the energy that the electrons have Current = the quantity of electrons
Measuring voltage
Measuring voltage It's easy to measure voltage with an Arduino. Just use an analog input pin.
Measuring voltage It's easy to measure voltage with an Arduino. Just use an analog input pin. If the the voltage is in the range 0 to 5V, the analog input value will be in the range 0 to 1023.
Measuring voltage It's easy to measure voltage with an Arduino. Just use an analog input pin. If the the voltage is in the range 0 to 5V, the analog input value will be in the range 0 to 1023. But we need to know the current, too. How do you find the current?
Ohm's Law I = V / R
Ohm's Law I = V / R where I is current, V is voltage, and R is resistance.
Ohm's Law I = V / R where I is current, V is voltage, and R is resistance. If we know V and want to find I, we need an R.
Add a resistor
Add a resistor
Add a resistor If you spin the motor and generate a known voltage across a known resistance,
Add a resistor If you spin the motor and generate a known voltage across a known resistance,
Add a resistor If you spin the motor and generate a known voltage across a known resistance, then you can easily calculate the current.
Add a resistor If you spin the motor and generate a known voltage across a known resistance, If the voltage is 1 Volt then you can easily calculate the current.
Add a resistor If you spin the motor and generate a known voltage across a known resistance, If the voltage is 1 Volt then you can easily calculate the current. And the resistor is 220Ω
Add a resistor If you spin the motor and generate a known voltage across a known resistance, If the voltage is 1 Volt Then the current is 1/220 Amps, or about 4.5 ma then you can easily calculate the current. And the resistor is 220Ω
We just need to measure the voltage
We just need to measure the voltage By that, I mean: measure the voltage difference across the resistor.
We just need to measure the voltage Arduino
We just need to measure the voltage Arduino Gnd = 0V
We just need to measure the voltage Arduino Gnd = 0V By connecting the bottom wire to Gnd, the top wire will have a voltage value relative to the Gnd voltage. We call the Gnd voltage 0V.
We just need to measure the voltage Analog input Arduino Gnd = 0V
We just need to measure the voltage Arduino Analog input The top wire of the motor will have a higher voltage than the lower wire as long as you spin the motor the right way. Gnd = 0V
We just need to measure the voltage Arduino Analog input Gnd = 0V The top wire of the motor will have a higher voltage than the lower wire as long as you spin the motor the right way. You might have to reverse the wires, depending on which way your turbine blades spin.
We just need to measure the voltage Just swap the Arduino wires. Analog input Gnd = 0V The top wire of the motor will have a higher voltage than the lower wire as long as you spin the motor the right way. You might have to reverse the wires, depending on which way your turbine blades spin.
Spin the motor Arduino
Spin the motor Arduino
Spin the motor Arduino By measuring the voltage and knowing the resistance, you can calculate the current.
Build the circuit like this To an analog input To a Ground pin
Over-voltage Supplying too much voltage could damage the input pin. This will happen if your motor generates much more than 5V. It won't.
A program from arduino import * usbconnect() R = 220 # or 1000 or 10000 Determine the resistance of your resistor in Ohms. It's what the color bands are. Google it.
A program from arduino import * usbconnect() R = 220 # or 1000 or 10000 while True: V = analogread(1) / 1023.0 * 5 print('volts =', V, 'Volts')
A program from arduino import * usbconnect() R = 220 # or 1000 or 10000 while True: V = analogread(1) / 1023.0 * 5 print('volts =', V, 'Volts') P = V ** 2 / R print('power =', P, 'Watts')
A program from arduino import * usbconnect() R = 220 # or 1000 or 10000 while True: V = analogread(1) / 1023.0 * 5 print('volts =', V, 'Volts') P = V ** 2 / R print('power =', P, 'Watts') This is the one you care about
When you abort the program with ^C If you don't use the try / except statements that I showed earlier, then be sure that you enter this into the Python Shell: >>> usbdisconnect() That will allow the usbconnect() function to complete the next time you run the program.