Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Pure VPN - Up to 27 Months
vgp
Updated:
Yesterday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Arduino Coding help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Scattered123" data-source="post: 22673741" data-attributes="member: 440759"><p>[CODE]#include <Servo.h></p><p>#include <Stepper.h></p><p></p><p>const int stepsPerRevolution = 200;</p><p></p><p>Servo myServo;</p><p>Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);</p><p></p><p>void setup() {</p><p> myServo.attach(2); //servo connected pin</p><p> myStepper.setSpeed(60); //60 rpm</p><p>}</p><p></p><p>void loop() {</p><p></p><p> //Curtain eka arinna</p><p> myservo.writeMicroseconds(1700); //me value eka wenas krl hoyaganin</p><p> //normal range eka 2000 max wage, wenas wenw eth</p><p> delay(1000); //ubata oni delay eka</p><p> myServo.writeMicroseconds(1500); //stop the servo, hama ekema 1500 ta stop wenne na try karala blnn values</p><p></p><p> //delay(100); //delay before the background change</p><p> changeBackground();</p><p></p><p> //delay(100); //delay before the objects come to stage </p><p></p><p>delay(1000000); // so the loop will be paused for seconds </p><p>}</p><p></p><p>void changeBackground(){</p><p> //Background change</p><p> myStepper.step(stepsPerRevolution); //for counterclockwise use</p><p> //-stepsPerRevolution</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Scattered123, post: 22673741, member: 440759"] [CODE]#include <Servo.h> #include <Stepper.h> const int stepsPerRevolution = 200; Servo myServo; Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11); void setup() { myServo.attach(2); //servo connected pin myStepper.setSpeed(60); //60 rpm } void loop() { //Curtain eka arinna myservo.writeMicroseconds(1700); //me value eka wenas krl hoyaganin //normal range eka 2000 max wage, wenas wenw eth delay(1000); //ubata oni delay eka myServo.writeMicroseconds(1500); //stop the servo, hama ekema 1500 ta stop wenne na try karala blnn values //delay(100); //delay before the background change changeBackground(); //delay(100); //delay before the objects come to stage delay(1000000); // so the loop will be paused for seconds } void changeBackground(){ //Background change myStepper.step(stepsPerRevolution); //for counterclockwise use //-stepsPerRevolution } [/CODE] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom