Herunterladen Inhalt Inhalt Diese Seite drucken
Joy-it MotoDriver2 Anleitung
Vorschau ausblenden Andere Handbücher für MotoDriver2:
Verfügbare Sprachen

Verfügbare Sprachen

3
MotoDriver2
Inhaltsverzeichnis
loading

Inhaltszusammenfassung für Joy-it MotoDriver2

  • Seite 1 MotoDriver2...
  • Seite 2: Inhaltsverzeichnis

    MotoDriver2 INHALTSVERZEICHNIS Einführung Geräteübersicht Verwendung mit einem Arduino Anschluss Beispiel-Code Verwendung mit einem Raspberry Pi Anschluss Beispiel-Code Sonstige Informationen Support Veröffentlicht: 16.04.2019 Copyright by Joy-IT...
  • Seite 3: Einführung

    Dank, dass Sie sich für unser Produkt entschieden haben. Im Folgenden haben wir aufgelistet, was bei der Inbetriebnahme zu beachten ist. GERÄTEÜBERSICHT Der MotoDriver2 ist eine Erweiterungsplatine, die die Ansteuerung und Verwendung von bis zu zwei Gleichstrommotoren ermöglicht. Die Gleichstrommotoren können dabei mit einer konstanten Spannung zwischen 5V und 35V gesteuert werden.
  • Seite 4 Entfernen Sie den Jumper an Steckplatz 3, falls die Stromversorgung über 12V liegt. Dies aktiviert die Stromversorgung zum Onboard 5V Regulator. Der 5V Ausgang ist ideal, um z.B. die Stromversorgung für einen Arduino zu ermöglichen. Dieser ist nur aktiv, wenn der Jumper an Steckplatz 3 gesetzt wurde. Veröffentlicht: 16.04.2019 Copyright by Joy-IT...
  • Seite 5: Verwendung Mit Einem Arduino

    ANSCHLUSS MotoDriver 2 Arduino Input 1 Input 2 Input 3 Input 4 Die Stromversorgung für den MotoDriver2 (PIN 4) sollte zwischen 5V und 35V liegen. Dies ist abhängig von Ihrer Konfiguration und den verwendeten Bauteilen. Veröffentlicht: 16.04.2019 Copyright by Joy-IT...
  • Seite 6: Beispiel-Code

    //Motor Control A in both directions analogWrite(motorPin1, speed); delay(2000); analogWrite(motorPin1, 0); delay(200); analogWrite(motorPin2, speed); delay(2000); analogWrite(motorPin2, 0); //Motor Control B in both directions analogWrite(motorPin3, speed); delay(2000); analogWrite(motorPin3, 0); delay(200); analogWrite(motorPin4, speed); delay(2000); analogWrite(motorPin4, 0); void loop(){ Veröffentlicht: 16.04.2019 Copyright by Joy-IT...
  • Seite 7: Verwendung Mit Einem Raspberry Pi

    VERWENDUNG MIT EINEM RASPBERRY PI ANSCHLUSS MotoDriver 2 Arduino Input 1 GPIO26 Input 2 GPIO20 Die Stromversorgung für den MotoDriver2 (PIN 4) sollte zwischen 5V und 35V liegen. Dies ist abhängig von Ihrer Konfiguration und den verwendeten Bauteilen. Veröffentlicht: 16.04.2019 Copyright by Joy-IT...
  • Seite 8: Beispiel-Code

    RPi.GPIO GPIO mode=GPIO.getmode() GPIO.cleanup() Forward=26 Backward=20 GPIO.setmode(GPIO.BCM) GPIO.setup(Forward, GPIO.OUT) GPIO.setup(Backward, GPIO.OUT) forward(x): GPIO.output(Forward, GPIO.HIGH) print("Moving Forward") time.sleep(x) GPIO.output(Forward, GPIO.LOW) reverse(x): GPIO.output(Backward, GPIO.HIGH) print("Moving Backward") time.sleep(x) GPIO.output(Backward, GPIO.LOW) while (1): forward(5) reverse(5) GPIO.cleanup() Veröffentlicht: 16.04.2019 Copyright by Joy-IT...
  • Seite 9: Sonstige Informationen

    Möglichkeit Rückgabe in Ihrer Nähe: Wir senden Ihnen eine Paketmarke zu mit der Sie das Gerät kostenlos an uns zurücksenden können. Hierzu wenden Sie sich bitte per E-Mail an Service@joy-it.net oder per Telefon an uns. Informationen zur Verpackung: Verpacken Sie Ihr Altgerät bitte transportsicher, sollten Sie kein geeignetes Verpackungsmaterial haben oder kein eigenes nutzen möchten kontaktieren Sie uns, wir lassen Ihnen dann eine geeignete...
  • Seite 10: Support

    Wir sind auch nach dem Kauf für Sie da. Sollten noch Fragen offen bleiben oder Probleme auftauchen stehen wir Ihnen auch per E-Mail, Telefon und Ticket-Supportsystem zur Seite. E-Mail: service@joy-it.net Ticket-System: http://support.joy-it.net Telefon: +49 (0)2845 98469 – 66 (9:30 - 17:00 Uhr) Für weitere Informationen besuchen Sie unsere Website: www.joy-it.net Veröffentlicht: 16.04.2019 Copyright by Joy-IT...
  • Seite 11 Arduino + Stepper (L298N) Description Bipolar stepper motors always have only 4 wires. Bipolar stepper motors always have 2 coils. By driving the current in seperate directions through each of the coils, we can have a total of 4 different states: •...
  • Seite 15 Pinout 1. DC motor 1 “+” or stepper motor A+ 2. DC motor 1 “-” or stepper motor A- 3. 12V jumper – remove this if using a supply voltage greater than 12V DC. When the jumper is in place, the onboard voltage regulator is active (12V max to 5V). 4.
  • Seite 16 Circuit...
  • Seite 17 Code Example 1 Stepper Motor Control - one revolution This program drives a unipolar or bipolar stepper motor. The motor is attached to digital pins 8 - 11 of the Arduino. The motor should revolve one revolution in one direction, then one revolution in the other direction.
  • Seite 18 Use this also to count the number of steps per revolution of your motor, if you don't know it. Then plug that number into the oneRevolution example to see if you got it right. Created 30 Nov. 2009 by Tom Igoe #include <Stepper.h>...
  • Seite 19 // initialize the stepper library on pins 8 through 11: Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11); int stepCount = 0; // number of steps the motor has taken void setup() { // nothing to do inside the setup void loop() { // read the sensor value: int sensorReading = analogRead(A0);...

Inhaltsverzeichnis