Since our last discussion on building an electronic motor simulator a couple of weeks ago, I didn’t expect having something to write more within a short time. It turned out that experimenting with the prototype was so fun that I couldn’t wait to share it with the audience. And I did learn more about control from this baby when it started talking.
I put the module under test by connecting it to another embedded system, in this case my old dsPIC30F4011 development board (JX-dsPIC40) from Innovative Experiment Co.,Ltd . The board provides some basic components such as push-button switches and LEDs, though I solder a few more. The setup is shown in Figure 1.
From the simplified feedback diagram in Figure 2, you can see that only a couple of signals are connected between the two systems, so why such a wide ribbon cable? The only reason is I already have many IDE cables available (the one we used to connect a hard drive to PC mainboard before they migrate to SATA.)
When I start programming each day I set up a simple goal: “today I should learn something new.” This habit inherits to each article I wrote on my websites. I prefer step-by-step digestion and don’t want to overwhelm my readers with too much information all at once(even though the topic might involve a lot of things in the background.) So for this article, I intend to emphasize on implementation of a digital PID controller using quadrature encoder signals as feedback.