Ps2keyboard sirious problem

Status
Not open for further replies.

Ozgok

Member
High everyone
I am working on a project that is controlling 4 brushed dc motors via ps2 keyboard. Basic specifications of motors are 12V 200 rpm 2,5A stall current. Now! My problem is noisy values at keyboard outputs while dc motors are Running. If motors are stopped all keyboard values are stable. (By the way there is another problem. When i release the button same values keep going. I cant seperate if a button pressed or not pressed. ) My tries to solve this problem are:
1. Using filter capasitors at all power supplies outputs and motor connections.
2. Using different controlboards like teensy 3.6, arduino uno, mega, due
3. Using different dc motor drivers
4. Separating keyboard circuit with optocoupler from contoller
5. Separating motor driver circuit with optocoupler from controller
6. Using different keyboard libraries like Ps2KeyAdvanced( this library solves not releasing button value problem)
7. Using smaller dc motors with low current solving problem. But i must use bigger one. And this shows me the problem is because of the motor current.
8. Using different ps2 keyboards.
I hope i can tell the problem. The problem is not about codes. The code is simple:
İf (keyboard.available()
{
int c=keyboard.read();
İf (c==11) motorsforward; // 11 is up arrow
else motorsstopped;
}
Can someone help me! I cant sleep. I have less time to finish project.
 
Status
Not open for further replies.
Back
Top