Can you please explain how you do the synchronisation? I understand the concept that we synchronise by the colour on the encoder and the concept of synchronising by using the transition between the colours. However I don't understand how you implement the synchronisation in the controller. I imagine that you measure the time difference between the transition on the one encoder with the transition on the other and then what? Do you apply some gain proportional to that to the wheel that is behind?
@dpowerfool Ok, I will try to explain the synchronization by the color transition. I am not saying that this is the best algorithm, but it works. What I am doing is very simple. Before I start rotating the wheels, I am checking the IR receiver status for both wheels. This may be different. Suppose the receiver of the left wheel is facing a white strip and to the right a black strip (I keep that in memory). I start rotating the wheels and constantly I am checking the status of the receivers.
If the status of one receiver changes before the other, then I stop rotating this wheel. I am stopping the wheel but I keep rotating the other, until the status of the receiver changes (I mean the status of the receiver of the rotating wheel). When this happens I start rotating the wheel I stopped, and I repeat the procedure.
Basically that is what the code does. Very simple (I hope my explanation helped you).
You have Very Very Good English, compared to other Youtubers, You are on top of the literary pyramid of being capable to actually write correctly, and even post a proper description on their videos. Keep up the Good Work!
Can you please explain how you do the synchronisation? I understand the concept that we synchronise by the colour on the encoder and the concept of synchronising by using the transition between the colours. However I don't understand how you implement the synchronisation in the controller. I imagine that you measure the time difference between the transition on the one encoder with the transition on the other and then what? Do you apply some gain proportional to that to the wheel that is behind?
dpowerfool 1 year ago
@dpowerfool Ok, I will try to explain the synchronization by the color transition. I am not saying that this is the best algorithm, but it works. What I am doing is very simple. Before I start rotating the wheels, I am checking the IR receiver status for both wheels. This may be different. Suppose the receiver of the left wheel is facing a white strip and to the right a black strip (I keep that in memory). I start rotating the wheels and constantly I am checking the status of the receivers.
arximidisxeno 1 year ago
If the status of one receiver changes before the other, then I stop rotating this wheel. I am stopping the wheel but I keep rotating the other, until the status of the receiver changes (I mean the status of the receiver of the rotating wheel). When this happens I start rotating the wheel I stopped, and I repeat the procedure.
Basically that is what the code does. Very simple (I hope my explanation helped you).
arximidisxeno 1 year ago
Good Video!
You have Very Very Good English, compared to other Youtubers, You are on top of the literary pyramid of being capable to actually write correctly, and even post a proper description on their videos. Keep up the Good Work!
NiftyProductionz 1 year ago
@NiftyProductionz Thank you!!!
arximidisxeno 1 year ago
Nice job and video!
ercost60 2 years ago