I actually know a few about the programming on the arduino but i’m in hurry to set the circuits and codes for my installation, may anyone who knows programing Arduino to rotate servo motor at certain temperature can give me a hand, thanks a lot!!
This is my situation,
I would like to do a design about a polar bear cup-holder, the temperature that the cup containing hot/cold water may affect the action of the polar bear by weaving its hand.
The temperature sensor i gonna use is LM35, the servo motor is SG90
I would like to use the angels 0’c, 90’c and 180’c to represent the three action of the polar bear, waving the right hand, stay hands straight(not moving two side) and waving left hand respectively.
Cold water(temperature c<15)=waving the right hand, Room temperature(temperature 20<c<30)=stay hands straight, Hot water(temperature c>40)=waving left hand.
I would like to add a photo-resistor(CDS) on the cup holder installation
when the cup have blocked the resistor, the led light strips(5 volts) may turn on;
when nothing above the resistor, the led light strips(5 volts) may turn off
p.s. The two action above(waving hands+Led light on) is happening at the same time
May someone who know about arduino can help me with the programme and the circuit , this is my final project in this semester and I am really in hurry, thank you so much!!!