Hello everyone.
I am looking for some assistance with a project that I am doing for my college class on renewable energy. I have to prove that the energy that I make with a windmill kit and hydro power kit provide electricity. Due to the very small output of the voltage on the kits <5 volts I figured I would use the Arduino to assist me in lighting up the lights depending on the input from the windmill/hydro power. I am running into issues with the board properly turning off the lights when there is no voltage input from my devices. When I provide input into one of devices all of the devices go out. I have included my source code below. Also, I have wired up the board based on the circuit for the photoresistor circuit that came with the kit. I have also included a picture of how the wiring is wired based on the guide that came with the kit, just tripled for each of the different inputs with different color LEDs.
Parts used:
Board: Uno
(3) LEDs (5mm)
(3) 330-ohm resistors
(3) 10K-ohm resistors
Windmill Kit
Hydropower Kit
Solar Panel
Does the class prescribe how you need to prove you made electricity, ie do something "useful" like light an led?
If not, you could just use a low resistance resistor to get some current flowing, with a voltmeter across it, and an ammeter in a break to show current.
mecoastie:
I am running into issues with the board properly turning off the lights when there is no voltage input from my devices. When I provide input into one of devices all of the devices go out.
You have the same variable (lightLevel) for all three pins/sensors in both Read & Write so they're all going to do the same thing. Make different variables for each resistor (eg: lightLevel, hydroLevel, windLevel) and see what happens.
mecoastie:
I am looking for some assistance with a project that I am doing for my college class on renewable energy. I have to prove that the energy that I make with a windmill kit and hydro power kit provide electricity.
Connect an LED with appropriate current limiting resistor to the output.
Thanks for the replies, I had a little bit of time to look at it this weekend, and I got the lights to be independently. It was not defining the variables correctly as surveyranger stated. Also, to answer your questions. neiklot, yes have to prove that the renewable energy would actually produce an output. wvmarle, the LDR is I started with that allowed me to ensure that it is what I wanted for the output properly. Then I just repeated the process for the other inputs. Also, it is easier to test with the LDR then connecting my other kits to the board. Thanks for the help folks.
As suggested above, just use the generators to directly power (light up) some LEDs.
Put a 1K resistor in series with the LED (being sure to orient the LED correctly), and it will light up if the generator output voltage is anywhere between about 2 and 20 V.