Forum: Mikrocontroller und Digitale Elektronik Servo und BASCOM


von Frank (Gast)


Lesenswert?

Hallo!

Folgendes Problem:

ATtiny2313 mit BASCOM und einem Servo. Die Spannungsversorgung ist OK 
und ausreichend dimensioniert. Die Fuses richtig eingestellt und 
eigentlich läuft auch alles... aber

Sobald ich Spannung anlege dann wäre ein Zucken des Servos ja OK, aber 
das Servo läuft sofort auf Rechtsanschlag, DANN erst auf die gewünschte 
Position.

Habe das mit diversen Servotypen probiert.

So beginnt das Programm:
==========================================
$regfile = "ATtiny2313.DAT"
$crystal = 8000000

$eepromhex
Data 200 , 100 , 50
$data


Config Portb.2 = Input
Config Portb.3 = Input
Config Portd.0 = Output
Reset Portd.0

Config Servos = 1 , Servo1 = Portd.0 , Reload = 10

Config Porta.0 = Output
Config Porta.1 = Output
Config Porta.2 = Output
...
===========================================

Egal ob ich SET/RESET D.0 oder es auch weglasse. IMMER das gleiche 
Problem. Laufen bis zum Anschlag, dann in die gewünschte Position und 
problemlose Funktion....

Ach ja, Servo + und - an 5V und Signal direkt vom µC...

Kann mir da jemand helfen??? Ich verzweifel langsam...

CU Frank

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.