Marlin icon indicating copy to clipboard operation
Marlin copied to clipboard

12864kba_v1.2 encoder rotation and sd

Open mahdiabedi75 opened this issue 3 years ago • 7 comments

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

LCD works. But when you insert the SD card inside, it gives 'media init failed 'error. also encoder works when clicked it but when you turn it the value goes up once then goes down on the next pulse regardless of direction.

Nothing else attached to board yet. Just the LCD.

Bug Timeline

from start

Expected behavior

Should move on menu and read the SD card

Actual behavior

Can't read the SD card and rotate value only goes up once, then goes to zero with next pulse.

Steps to Reproduce

Just upload marlin with platform Io with LCD config on reprap full graphic controller and SD support. marlin.docx

Version of Marlin Firmware

bug fix 2.1

Printer model

custom

Electronics

Arduino ADK + ramps 1.4

Add-ons

marlin.docx

No response

Bed Leveling

No Bed Leveling

Your Slicer

Simplify3D

Host Software

SD Card (headless)

Don't forget to include

  • [X] A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

No response

mahdiabedi75 avatar Sep 14 '22 16:09 mahdiabedi75

No configs

attached file Marlin.docx is 0 bytes long.

ellensp avatar Sep 15 '22 07:09 ellensp

Never heard of a 12864kba_v1.2 and google is also coming up blank. Url where you got it from?

ellensp avatar Sep 15 '22 07:09 ellensp

The Arduino ADK is also not 100% compatible with the Arduino mega2560.. having and extra spi usb port device added and using D7 for that device.

ellensp avatar Sep 15 '22 07:09 ellensp

I see. It most likely the difference in pins. I will map the pins and try to match them with the program.

mahdiabedi75 avatar Sep 15 '22 13:09 mahdiabedi75

What ever it is. it is on exp2. Cause the LCD and encoder click is on exp1, and it's working. But rotation and SD card is on exp2 are having problems. The encoder pins looks correct, they work but not as intended.

mahdiabedi75 avatar Sep 16 '22 13:09 mahdiabedi75

welp. found the problem. it's the speed. Whether the bud rate or encoder pulse setting. just have to mess with it until find the right combo.

mahdiabedi75 avatar Sep 17 '22 08:09 mahdiabedi75

I feel like this getting ignored somehow. but whatever. After lowering the bud rate, the SD card does not give error anymore. but the encoder remains the same. And the problem is like the number is limited to 1 and 0 just goes back and forth When the encoder pules setting both is on 1. And when it's other than 1, encoder rotation freeze completely

mahdiabedi75 avatar Sep 18 '22 15:09 mahdiabedi75

This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 10 days.

github-actions[bot] avatar Nov 18 '22 02:11 github-actions[bot]

Hello,

I have the same issue with Aimsoar 12864KBA_V1.2 and Anet mainboard v1.7. I'm using Marlin 2.0.9.5. I didn't try the SD Card yet but the rotary knob (LS1) doesn't work when rotating, only when clicked. Also, the button left to the speaker (K1) also doesn't seem to work. The speaker (BZ1) works fine. I'm not using bed leveling at this time. The only thing attached to the board is the LCD (through as breadboard).

connections photo_5913691907123428558_y photo_5913691907123428562_y Configuration.zip

gnfpt avatar Jan 14 '23 09:01 gnfpt

The button not working does not make sense.
Its a reset button, it should be directly connected to a reset io line. when the switch is closed the reset line is pulled low and the board resets,. no firmware, no settings, nothing firmware related at all

I suspect your lcd exp2 is not wired correctly.. reset is on exp2 btn_enc1 and 2 (ie left and right) are also on exp2

ellensp avatar Jan 14 '23 10:01 ellensp

Hi,

I've just confirmed that EXP2.8 is indeed the reset. Maybe it's not working because the Anet board already has a reset button. I'll have to check that.

Thank you, Gonçalo Farias

On 14/01/23 10:11, ellensp wrote:

The button not working does not make sense. Its a reset button, it should be directly connected to a reset io line. when the switch is closed the reset line is pulled low and the board resets,. no firmware, no settings, nothing firmware related at all

I suspect your exp2 is not wired correctly.. reset is on exp2 btn_enc1 and 2 (ie left and right) are also on exp2

— Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/24763#issuecomment-1382706394, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKDCJPKYB6NIA3PFCFQVKTWSJ3U5ANCNFSM6AAAAAAQMTJOAE. You are receiving this because you commented.Message ID: @.***>

gnfpt avatar Jan 14 '23 13:01 gnfpt

Hi,

You were right. After some testing, I've confirmed that I had my cable incorrectly wired. After wiring EXP2 correctly both the reset button and rotary knob were working.

Thank you, Gonçalo Farias

On 14/01/23 10:11, ellensp wrote:

The button not working does not make sense. Its a reset button, it should be directly connected to a reset io line. when the switch is closed the reset line is pulled low and the board resets,. no firmware, no settings, nothing firmware related at all

I suspect your exp2 is not wired correctly.. reset is on exp2 btn_enc1 and 2 (ie left and right) are also on exp2

— Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/24763#issuecomment-1382706394, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKDCJPKYB6NIA3PFCFQVKTWSJ3U5ANCNFSM6AAAAAAQMTJOAE. You are receiving this because you commented.Message ID: @.***>

gnfpt avatar Jan 14 '23 15:01 gnfpt

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Mar 16 '23 14:03 github-actions[bot]