The photo below shows a electrical thermostat controller. The upper part is the motor with a gear. The motor has two wires attached. A red and a black one for the current.
What this component does is regulation a heater. There is a little pin which will be brought in different positions by the motor and the gear. From the side it looks like this.
The pin is inside the case the the heater is at max.
Here the heater is at half temperature:
and here the heater is at zero:
You can see this pin in the following image.
This function seems to me similar to a servo. The position of the pin has a defined minimum and a defined maximum.
Edit: I do not want to damage the gear. When I use an Arduino or RaspberyPi I can use a GPIO to control it but I have no idea how I know the min, max and current position.
Edit: I got an answer from the manufacturer.
Detection is effected by means of a light barrier and reflectors which are mounted on the gears of the transmission.
Me: Meaning that that will automatically stop the engine and turn on the gearbox would not be possible, even if you are current in one direction continuously to the engine?
No, that would not be the case. The information of the light barrier be integrated into the engine control. A durable power of the engine would not be permitted.
Also I get:
The driving of the motor is realized by a so-called H-bridge. Depending on the direction in which the motor is to just turn, are either the transistors T1 and T4 are turned on or dieTransistoren T2 and T3. The base resistors R2, R3, R4 and R5 are at the transistors so dimensioned that a sufficiently large collector-emitter current can flow, but the power loss across the base-emitter path is kept low, in order here also To save power. The diodes D1 and D2 is protection diodes hervorgeru- an unacceptably high back-emf to the switching transistors, fen by the motor, avoid. To determine the position of the valve actuating section If on a gear using the Reflex Opto coupler RFK20 off the revolution pulses asks. The activation of the reflex coupler is performed using the transistor T6, which is connected across the base resistor R16 of port P2.1. As soon as the transit transistor is turned on, the transmitter diode of the reflex coupler via the emitter-collector path and R15 powered. The polled gear Berad contains three reflective markers .Once a emerges these marks before the reflection coupler, the transistor of the reflex coupler switched through and the Port P0.1 is pulled to ground, which in turn is considered a pulse.
Here are my assumptions:
- the room temperature is given from a sensor
- there is a target temperature given too
- I do not want to use the given electronics, I just want to use the gear and the motor and control the motor myself.
How can I control the motor with a GPIO or PWM pin for example to set to different positions?