Mouse Emulator using Arduino
Re: Mouse Emulator using Arduino
Hello Russ,
That sounds like only one of the phase outputs is working. I think the Arduino library still registers counts even if only one phase changes.
It may be the voltage is a bit too low. Although the spec for the encoder says 5-24V, internally it feeds into a 78M05 regulator. So really the lowest input voltage should be more like 8V to get a regulated 5V for the encoder. A low voltage could be causing one of the phases to not see the movement of the encoder disk.
Of course it might also be something simple like a shorted pin or faulty Arduino.
If you can measure the voltages on the two phase signals you should be able to see them changing between 0 and 5V.
Colin.
That sounds like only one of the phase outputs is working. I think the Arduino library still registers counts even if only one phase changes.
It may be the voltage is a bit too low. Although the spec for the encoder says 5-24V, internally it feeds into a 78M05 regulator. So really the lowest input voltage should be more like 8V to get a regulated 5V for the encoder. A low voltage could be causing one of the phases to not see the movement of the encoder disk.
Of course it might also be something simple like a shorted pin or faulty Arduino.
If you can measure the voltages on the two phase signals you should be able to see them changing between 0 and 5V.
Colin.
Re: Mouse Emulator using Arduino
Thanks for the suggestions, Colin. I will try them out tomorrow and let you know.
73, Russ
73, Russ
Re: Mouse Emulator using Arduino
As mentioned in the instructions bypassing the internal regulator may be necessary if you are running the encoder from 5V.
Colin.
Colin.
Re: Mouse Emulator using Arduino
Of course, you are quite correct. I looked again at my PIC project (now 3 yrs old) and I had the encoder fed by 9v. Silly of me! Thanks anyway.
73, Russ.
PS I should say thanks to you for the Langstone - a great project.
73, Russ.
PS I should say thanks to you for the Langstone - a great project.
Re: Mouse Emulator using Arduino
I'm building a second Langstone, mostly for QO-100. All in one small package and with built-in Dish. That compact, the cable lengths from LNB and Helical Tx Feed to Pluto and TX Final are just 2ft long or less!
So what's this to do with Langstone Mouse?
When I started building, there was a shortage of Arduino Pro Micro's so I bought a couple of DFrobot Beetles which use the same ATmega 32U4 processor and 5V 16MHz as in the Arduino Pro Micro. The small Beetle PCB has few I/O's, so I had to reassign them in the sketch to D9, D10 and D11 for the 3 push buttons and the Encoder to SDA and SCL. To program using the Arduino IDE, selected Arduino Leonardo Board. It works perfectly. I just glued the Beetle board onto the back of the Encoder!
Steve/G4MJW
So what's this to do with Langstone Mouse?
When I started building, there was a shortage of Arduino Pro Micro's so I bought a couple of DFrobot Beetles which use the same ATmega 32U4 processor and 5V 16MHz as in the Arduino Pro Micro. The small Beetle PCB has few I/O's, so I had to reassign them in the sketch to D9, D10 and D11 for the 3 push buttons and the Encoder to SDA and SCL. To program using the Arduino IDE, selected Arduino Leonardo Board. It works perfectly. I just glued the Beetle board onto the back of the Encoder!
Steve/G4MJW
Re: Mouse Emulator using Arduino
Excellent, as you have found the 32U4 processor is the critical part.
I suspect the many raspberry pi RP2040 boards could also be used with some changes to the code.
Colin G4EML
I suspect the many raspberry pi RP2040 boards could also be used with some changes to the code.
Colin G4EML
Re: Mouse Emulator using Arduino
. . . another thing Colin; I've used the OSOYOO 5" DSI touch screen (from Amazon). Again, it works perfectly. Nice and bright ans sharp. Everything works as it should.
Steve/G4MJW
Steve/G4MJW