Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

CTC Bizer pin anomaly (no replies)

$
0
0
Hi,
I must confess to be an owner of a mighty_board_rev_e for a CTC Bizer 2(ATMEGA 2560)
Yes, I will move on I promise, its in the pipeline.
I just need help with pin configuration.
I have installed two thermistors, successfully, with a small circuits tied to adc pins.(circumvent 24V coming down the ground of the thermocouples and frying everything in sight)
The next more fractious part is using a fysetc_mini_2_1 lcd.
Thats all I want to do with this build until a board upgrade.

Configuration.h changes(copied from config examples ctc, bizer)
Did the usual uncomment IN the #define fystec_mini_2_1 lcd in cofig. And commented OUT the ff_interface_board.
Uncommented IN the #define NEOPIXEL_LED as I’m using the LCD_CONTROL_MENU in configurationadv settings.
I made a special cable to go from the 26 pin LCD/SD IDE motherboard connector to EXP1 & EXP2 of the fysetc mini.
In pins_MIGHTYBOARD_REVE.h
Reconfigured with the following results.
#define BTN_ENC 15//J0
#define DOGLCD_A0 34//C3
#define DOGLCD_CS 35//C2 72//J2
#define BTN_EN1 73//J3 31//c6
#define BTN_EN2 75//J4

DOG_LCD was originally assigned 72//J2, which previously was used as the INPUT for the LEFT button on the CTC arrow pad.
Remained as an input after compilation and programming and hence was useless to drive the LCD_CS.
Changed it to 35//C2, which previously was an OUTPUT for LCD_CLK.
The LCD and NEO_LEDs works fine.
Encoder pins
First the ENC button works fine.
Now the encoder pins EN1 and EN2 suffer from a similar problem, originally they were INPUTS for DOWN and UP. So should work. But they are not pulled up(as encoder.cpp #if BUTTON_EXISTS(EN1).
SET_INPUT_PULLUP(BTN_EN1);)should do!
I had to add two pullups.
So there is a conflict going on(obviously)
Whats more, when I rotate the encoder, it will scroll down, “sporadically” and will often scroll back up “automatically” to the top of the menu. Sometimes it stays put, when you scroll down, but one rotation will send it scrolling back up to the top.
I then rotated the encoder again until it remained stationary further down the menu and used EN1 and EN2 as up and down buttons to see if that is what was happening using crock clips!
Sure enough that is what was happening. They were NOW configured as UP/DOWN buttons
I tried using them as up and down buttons from a boot, but it would not go down the menu.
Whence I rotated the encoder, then that changed to UP/DOWN.
Removing the external pullups and using a scope I can confirm the EN1 & EN2 inputs are NEVER PULLED UP after power up.
Sorrry, that was long!

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>