- SF800 Solar Speicher Tutorial         
Ergebnis 1 bis 10 von 11

Thema: Ansteuerung eines Magnet statt über PWM über Analogspannung

Baum-Darstellung

Vorheriger Beitrag Vorheriger Beitrag   Nächster Beitrag Nächster Beitrag
  1. #3
    Neuer Benutzer Öfters hier
    Registriert seit
    21.10.2004
    Beiträge
    8
    Das wäre eine Superlösung - danke für den Hinweis!
    Wie geht das beim Arduino? Gerade gegoogelt: geht das so einfach?
    Nach dem Artikel schreibt man diese eine Zeile einfach ins setup. (http://arduino-info.wikispaces.com/Arduino-PWM-Frequency)
    Hat das einen Nachteil?
    //or Arduino Uno, Nano, Micro Magician, Mini Driver, Lilly Pad and any other board using ATmega 8, 168 or 328**
    //---------------------------------------------- Set PWM frequency for D5 & D6 -------------------------------
    //TCCR0B = TCCR0B & B11111000 | B00000001; // set timer 0 divisor to 1 for PWM frequency of 62500.00 Hz
    //TCCR0B = TCCR0B & B11111000 | B00000010; // set timer 0 divisor to 8 for PWM frequency of 7812.50 Hz
    TCCR0B = TCCR0B & B11111000 | B00000011; // set timer 0 divisor to 64 for PWM frequency of 976.56 Hz (The DEFAULT)
    //TCCR0B = TCCR0B & B11111000 | B00000100; // set timer 0 divisor to 256 for PWM frequency of 244.14 Hz
    //TCCR0B = TCCR0B & B11111000 | B00000101; // set timer 0 divisor to 1024 for PWM frequency of 61.04 Hz
    //---------------------------------------------- Set PWM frequency for D9 & D10 ------------------------------
    //TCCR1B = TCCR1B & B11111000 | B00000001; // set timer 1 divisor to 1 for PWM frequency of 31372.55 Hz
    //TCCR1B = TCCR1B & B11111000 | B00000010; // set timer 1 divisor to 8 for PWM frequency of 3921.16 Hz
    TCCR1B = TCCR1B & B11111000 | B00000011; // set timer 1 divisor to 64 for PWM frequency of 490.20 Hz (The DEFAULT)
    //TCCR1B = TCCR1B & B11111000 | B00000100; // set timer 1 divisor to 256 for PWM frequency of 122.55 Hz
    //TCCR1B = TCCR1B & B11111000 | B00000101; // set timer 1 divisor to 1024 for PWM frequency of 30.64 Hz
    //---------------------------------------------- Set PWM frequency for D3 & D11 ------------------------------
    //TCCR2B = TCCR2B & B11111000 | B00000001; // set timer 2 divisor to 1 for PWM frequency of 31372.55 Hz
    //TCCR2B = TCCR2B & B11111000 | B00000010; // set timer 2 divisor to 8 for PWM frequency of 3921.16 Hz
    //TCCR2B = TCCR2B & B11111000 | B00000011; // set timer 2 divisor to 32 for PWM frequency of 980.39 Hz
    TCCR2B = TCCR2B & B11111000 | B00000100; // set timer 2 divisor to 64 for PWM frequency of 490.20 Hz (The DEFAULT)
    //TCCR2B = TCCR2B & B11111000 | B00000101; // set timer 2 divisor to 128 for PWM frequency of 245.10 Hz
    //TCCR2B = TCCR2B & B11111000 | B00000110; // set timer 2 divisor to 256 for PWM frequency of 122.55 Hz
    //TCCR2B = TCCR2B & B11111000 | B00000111; // set timer 2 divisor to 1024 for PWM frequency of 30.64 Hz
    Geändert von GeorgB (28.12.2017 um 22:29 Uhr)

Ähnliche Themen

  1. Problem: Ansteuerung eines LCD über I2C
    Von Olli08 im Forum Asuro
    Antworten: 21
    Letzter Beitrag: 10.06.2010, 22:42
  2. Direkt Flashen statt über IR
    Von iBot im Forum Asuro
    Antworten: 20
    Letzter Beitrag: 09.09.2008, 17:37
  3. Ansteuerung über USB ?
    Von Bura.Tino im Forum Elektronik
    Antworten: 24
    Letzter Beitrag: 14.12.2007, 10:42
  4. Ansteuerung eines Gleichstrommotors über PC
    Von motornoob im Forum Motoren
    Antworten: 1
    Letzter Beitrag: 23.03.2007, 08:58
  5. magnet statt servo, bauformen.
    Von seifenfisch im Forum Elektronik
    Antworten: 6
    Letzter Beitrag: 22.10.2004, 14:09

Stichworte

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

Labornetzteil AliExpress