Join us in Chat. Click link in menu bar to join. Unofficial chat day is every Friday night (US time).
0 Members and 1 Guest are viewing this topic.
PID = "Proportional, Integral, Derivative".
Basically your code would look a little like this:If (speed of wheel) = 25 rotations per min then ( give 10% power to motor)If( speed of wheel)< 25 rotations per min then ( give 20% power to motor)If( speed of wheel)> 25 rotations per min then ( give 5% power to motor)
Now I am worried that these interrupts are going to be using up all my CPU power, say my wheel is turning at 100rpm and there are 10 black and white sections on my encoder,thats a lot of interrupts, not to mention all the time it takes to do functions like start timer, read timer etc.
[...] current sense using an Agilent HCPL 7520, it worked fine when doing my tests on a power supply but when it came to plugging the thing into my H bridge, it wouldn't work. I think this was due to it taking its 0V from the H bridge. It shows how to use the chip in its datasheet but it confused me loads, sharing supplies and isolation and floating supplies and whatnot. I just wanted to use it as a differential amplifier with isolation but the sharing of the 0V and Vin- just failed.
Started by Aziz
Started by Magnus
Started by greatworld
Started by miicchhii