Shop OBEX P1 Docs P2 Docs Learn Events
Solar Panel Project - Page 2 — Parallax Forums

Solar Panel Project

2»

Comments


  • Thanks kwinn, I take your point. My next problem is how to count these pulses into the BS2? For example the bar is 8" long with a thread pitch of 1.7mm. Pulse per turn over a length 200mm/1.7 = 118 pulses. Can I just feed these pulses into a register and simply make an instruction? (if pulses N are = to or greater than 116 then stop)? I know there is a Count instruction, but I'm not sure how to use it in this situation? Terry

    Hi Dave, Yes nice to see you on board too. I have my Solar Panel moving on a Time basis at present, but hope to add a sense of position and safety in the mix. Terry
  • kwinnkwinn Posts: 8,697
    You connect the signal from the Hall to one of the BS2 I/O pins and the program will read that input pin and increment the count variable when the pin is high.
  • Thanks Kwinn

    I'll give it a try and let you know what I come up with.

    Terry
Sign In or Register to comment.