Help with rotary encoder

Hi, I am a newbie to arduino and tbh I am both clueless and hopeless at this, so I am looking for some help.

I want to build a counter using a quadrature rotary encoder. The encoder says 5V - 24V but I am just receiving 00 connected or 11 when disconnected, and nothing when I rotate it. I have been told its not code but low voltage? I am using 5V GND / 2 & 3 digital pins.

This project is important to me as its being used for work purposes, and could be the difference from having a job to not having a job in a few months. I am happy to pay for someones expertise, because I will need it to link to an LCD screen showing:-

Qty to start with (300, 400M) etc
Qty pulled (20, 30M)
Qty remaining (280, 370) and so on

I am not a programmer. I have watched a few tutorials, tried AI and its driving me mad. Where do I even begin? Very frustrating. I am not good with things I can't physically see working.

Thank you.

Can post a link to what encoder you have? Can you post any code that you have attempted to try?

The encoder library could likely help you if you have a quadrature encoder and wired it appropriately.

Sharing the specs and the code you tried is a good practice if you want quality help here… otherwise it’s just us trying to guess what you do…

Hi, 600P/R Incremental Rotary Encoder,2-Phases Photoelectric Encoder 5V-24V,Shaft 6mm Encoder Wide Voltage Power Supplies.

If you're looking for someone to build it for you, PM me and I can do that.

I am puzzled though. If it's for work why would your employer give you this project if you are not an experienced programmer? This seems to happen a lot and I'm curious how these situations arise.

Anyway, send me a message and I can help.

Are you applying to a job requiring programming experience or is it for a trainee or final school project in order to graduate ?

Paying someone to get the job done won't make you suitable for a job in that space... Even if you can fake your way in, the employer will quickly realize you don't have the skills and you'll get fired, which will look bad on your resume and you'll get a poor reference...

So I join @cedarlakeinstruments - I'm curious about your context and what you are trying to achieve.

It takes a great deal more effort than that to gain the skills required to solve the posted problem. Ask your employer for tasks that fit with your capabilities, or at least ones that don't require a year or two of preparatory study beforehand.

No, its a one time device for a Kaizen project.

Thanks, Its a Kaizen project which arisen from a significant stock loss. The concept is simple, but the programming is my issue, I have designed the chassis, but need the engine and having looked at Arduino / Raspberry PI they looked like solutions.

I was going to use a meter wheel and redesign the gearing, but I would like it to be more bespoke than general.

Thanks for the life coaching. Its simple, pay someone for the parts you cant do.

Can't DM you. I don't have a retina scan level clearance or whatever else is required on here.

Click on his avatar and you should see a :envelope:Message button

I think I found what you have on ebay HERE

I also agree with **J-M-L**Jackson, the encoder library should do just fine for this type of encoder. There are also examples you can play around with to make sure it’s working.

Can you go into more detail on your project? **cedarlakeinstruments**Faraday did say they are willing to build it for you, but it would be better if you wrote the code yourself (we can help you with that) this way if you ever need to change something, you will know how to do it… or you pay cedar more money.

Hi Hazards, Thank you. I have just ordered some DuPont pins to ensure it connects securely to the breadboard. I have a feeling this may have been an issue when detecting the pulses.

I believe I need to be a trusted level 1 user or something, so I can't DM.

Oh and be sure to use an external 5v power supply, as the 5v from the Arduino will not be sufficient enough to power the encoder. Just make sure you connect the ground of the arduino to the ground of the power supply.

Will a 6V battery pack be sufficient?

Ill buy a 9V for the encoder.

no, go with the 6v battery pack