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
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Monday at 9:03 PM
Plan your Crypto & Forex entries before you take the trade
romeshnonis
Updated:
Monday at 3:20 AM
RHCSA, RHCE, AWS, Docker, Kubernetes Training
Sanjeewani95
Updated:
Sep 8, 2026
🛡️ Kaspersky Antivirus – 1 Year / 1 Device | Rs. 2,300 | Only 9 Left
KSPathirana
Updated:
Sep 7, 2026
Ad icon
Professional CCTV Installation Service
Techguy231
Updated:
Sep 6, 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
Awruddata maasa keeyada?
Post reply
Top
Bottom