diff options
| author | Sjory <Mgj32000@gmail.com> | 2024-12-26 20:56:28 +0100 |
|---|---|---|
| committer | Sjory <Mgj32000@gmail.com> | 2024-12-26 20:56:28 +0100 |
| commit | e3aef0f0b0dc94b021bf2534182cdc829e25dce3 (patch) | |
| tree | 2209a88d7e24548bb3feacce71c19e2e37b7f269 /Arduino2024 | |
| parent | 68d939049b37c5847de864b5dcab8d983483f8ec (diff) | |
Create Arduino2024.ino
test motor
Diffstat (limited to 'Arduino2024')
| -rw-r--r-- | Arduino2024/Arduino2024.ino | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Arduino2024/Arduino2024.ino b/Arduino2024/Arduino2024.ino new file mode 100644 index 0000000..3e48358 --- /dev/null +++ b/Arduino2024/Arduino2024.ino @@ -0,0 +1,33 @@ + +/* + simple rotation of the motor + the gear ration on the carousel is + 7/40 and there is 10 slots to rotate between + + + +*/ + + +//define Pins +#define PulPin 7 +#define dirPin 6 +int pd = 500; + +void setup() { + + pinMode(PulPin, OUTPUT); + pinMode(dirPin, OUTPUT); + +} + +void loop() { + + digitalWrite(dirPin, HIGH); + digitalWrite(PulPin, HIGH); + delayMicroseconds(pd); + digitalWrite(PulPin, LOW); + delayMicroseconds(pd); + + +} |
