EasyManua.ls Logo

Eckstein komponente KS0530 - Page 146

Default Icon
160 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
146
Start
Initialize the angle
of the servo
Press button
Read the light
intensity value
and adjust the
angle of the servo
Read Bh1750 light
intensity value
Read T&H value
LCD shows light
intensity value
and T&H value
No
Yes
Adjust the angle
of the servo
(3)Connection
In this experiment, the connection is almost the same. But we will connect
two servos to D9 and D10, 4 photoresistor modules to A0,A1,A3 and A3
and others remain unchanged.
(4)Test Code
/*
keyestudio sun_follower
lesson 11
sun_follower