Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

#1

Hi,

I am wondering if werk can/will help me I am trying to use a rotary encoder for wind direction, I have modified a TX board for the power supply and extra input needed by instead of using the 4pin RJ11 socket as supplied I have drilled 2 extra holes which have been countersunk as I found out that board around the wind socket acts as aground so that I can use a 6pinRJ11 socket. I have then very carefully taken feeds of the expansion socket D10 and 5V which at present are not used and soldered them to the 2 extra pins I now have in that socket. I have obtained a arduino sketch and library for encoders which when run on its own works.

My problem is that I don't understand the software well enough to incorporate them into the TX software, so please werk can/will you help please find sketch and library attached

regards
tyntop.


Attached Files
.rar tyntop's files .rar Size: 11,71 KB  Downloads: 247
Reply
#2

I find interesting that people try to develop different things or try to modify the system, but as you must understand I can not help with the changes, which each one intends to do.

Just some thoughts for you:
Noticed the code size generated by the library?
Noticed that for the encoder function quickly, it needs two pins with interrupt capability?

There are only two on the Arduino Nano, one used by the anemometer and the other by the Rain Gauge.

Anyway, everything is possible. Wish you luck.

Reply
#3

Hi,

What type of "rotary encoder" is it? Just the type with two "switches" that operate alternately? If so, how can you be sure that it will never "miss" a pulse (and the system will never lose its power) to maintain the reference direction (north)? Sad

AFAIK the usual type of digital rotary encoder for this application is based on a Grey Code disc which requires (many) more than two switches (usually optical) to decode the direction.

Cheers, Alan.
Reply




Users browsing this thread: 1 Guest(s)