28-07-2015, 04:10
Hi,
I am looking for help form any body who is good with arduino, I have tried to add support to the TX software, for a rotary encoder, HRPG AS16#51c, which uses channel A, channel B, GND and 5v. I have modified a TX board using a 6 pin RJ11 socket taking a 5v and D10 feed from the expansion port, I know this mod is ok because I have compiled and uploaded a sketch for encoder which works fine on its own. Sketch used is attached.
I then tried to incorporate this sketch into the TXv1.4 ISTest b001 software which after a lot of head scratching I thought I had done, It compiled and uploaded seemingly ok. But when I used serial monitor and turned the vane all I got was " N", in which ever position I turned the vane to.
The pins I am trying to use D10 and 5v from the expansion port and A3 and GND from what would have been the original wind socket. I am wondering if the problem it has something to do with the way pins are configured in the software, especially A3.
Sketch _may24a is the sketch for rotary encoder which works fine on its on.
WeatherDuino tx v1.4 is where I have tried to implement the above sketch which compiles and uploads ok but does not give compass bearings except "N",
Please have a look and let me know what you think,
Thanks
regards
tyntop
PS, also attached datasheet for encoder
I am looking for help form any body who is good with arduino, I have tried to add support to the TX software, for a rotary encoder, HRPG AS16#51c, which uses channel A, channel B, GND and 5v. I have modified a TX board using a 6 pin RJ11 socket taking a 5v and D10 feed from the expansion port, I know this mod is ok because I have compiled and uploaded a sketch for encoder which works fine on its own. Sketch used is attached.
I then tried to incorporate this sketch into the TXv1.4 ISTest b001 software which after a lot of head scratching I thought I had done, It compiled and uploaded seemingly ok. But when I used serial monitor and turned the vane all I got was " N", in which ever position I turned the vane to.
The pins I am trying to use D10 and 5v from the expansion port and A3 and GND from what would have been the original wind socket. I am wondering if the problem it has something to do with the way pins are configured in the software, especially A3.
Sketch _may24a is the sketch for rotary encoder which works fine on its on.
WeatherDuino tx v1.4 is where I have tried to implement the above sketch which compiles and uploads ok but does not give compass bearings except "N",
Please have a look and let me know what you think,
Thanks
regards
tyntop
PS, also attached datasheet for encoder

