eddieprice19
Member
Hi. I am new to this forum and I wonder if someone may be able to give me a hand.
I am planing to use a wireless link to control the speed and direction of a model train and am wondering what would be the best approach. I am familiar with DCC for model trains, but this is too complicated and expensive. Anyway I would like to design my own.
I could use a potentiometer with an A/D at the transmitter plus a suitable PIC to code the Tx, and generate PWM at the receiver, again using a suitable PIC. But I have seen a controller based on a Keeloq transmitter and receiver from RF Solutions in the UK. (I live in Wales). This is based on a 3 or 4 button keyfob Tx. Thus there would be an emergency stop, forward, reverse and an auxiliary switch for something else. But I am not quite sure of the sequence of events that will have to take place in the Rx. eg press the forward switch sends a code to the Rx. I could have a built-in rate of acceleration and a maximum speed so that the motor would start running, but what if I only want to go at a slow speed. I suppose I could press the forward button again to halt the acceleration and proceed at a constant speed. Then press forward again to speed up to a new speed. It is this control of speed with one button that I am not sure about.
Any ideas for a suitable algorithm?
Eddie Price
I am planing to use a wireless link to control the speed and direction of a model train and am wondering what would be the best approach. I am familiar with DCC for model trains, but this is too complicated and expensive. Anyway I would like to design my own.
I could use a potentiometer with an A/D at the transmitter plus a suitable PIC to code the Tx, and generate PWM at the receiver, again using a suitable PIC. But I have seen a controller based on a Keeloq transmitter and receiver from RF Solutions in the UK. (I live in Wales). This is based on a 3 or 4 button keyfob Tx. Thus there would be an emergency stop, forward, reverse and an auxiliary switch for something else. But I am not quite sure of the sequence of events that will have to take place in the Rx. eg press the forward switch sends a code to the Rx. I could have a built-in rate of acceleration and a maximum speed so that the motor would start running, but what if I only want to go at a slow speed. I suppose I could press the forward button again to halt the acceleration and proceed at a constant speed. Then press forward again to speed up to a new speed. It is this control of speed with one button that I am not sure about.
Any ideas for a suitable algorithm?
Eddie Price