luc-github / Repetier-Firmware-4-Davinci

Repetier-Firmware-0.92 based for DaVinci printer (Beta - so far so good)
GNU General Public License v3.0
194 stars 98 forks source link

extra extruder support #306

Closed netpipe closed 6 years ago

netpipe commented 6 years ago

was wondering if it were possible to add an i2c interface for adding extra digital and analog pins for other extruders and sensors.

https://imgur.com/m5NMMYi not sure what j11 is for on this. or where to find extra io pins.

luc-github commented 6 years ago

Did you check the EEPROM cartridge pins ? they are free and connected

netpipe commented 6 years ago

1600x1400-img_3795

i had 3 wires soldered on already which pins are these here ? just need one more io pin

luc-github commented 6 years ago

VCC GND and Pin 115 ? Check https://github.com/luc-github/Repetier-Firmware-4-Davinci/blob/master/pinout.xlsx

netpipe commented 6 years ago

also are the io pins rated for 5v ? or like arduino due and only like 3.5V ?

luc-github commented 6 years ago

vcc should be 3.3v

netpipe commented 6 years ago

oh i see on the board com1 and com2 ports. awesome going to give this a whirl today hopefully.

netpipe commented 6 years ago

1600x1400-img_3796

netpipe commented 6 years ago

https://github.com/tecan/PCF8574-SWire-Arduino.git had to modify it to use new swire library and pins. works at 3.3 volts with 8 new i/o pins. works on any arduino board now.

netpipe commented 6 years ago

https://github.com/tecan/Adafruit_SSD1306-SWire-Arduino also this one for extra displays

netpipe commented 6 years ago

can confirm it working on pins 115 116

netpipe commented 6 years ago

1600x1400-img_3797

luc-github commented 6 years ago

You connected esp01 with oled ?

netpipe commented 6 years ago

esp8285 because of the powersave feature then to the i2c portion maybe. for now it just sits there unconnected. have a flashair card that just arrived i might play with first. just put some of the test code to the setup and loop for now in repetier, will be digging more into it later hopefully to add new olcd support. getting a push button rotary encoder to work with pcf8574 has been tricky. going to try some other things with it.

netpipe commented 6 years ago

https://github.com/tecan/PortExpander_I2C-SWire-Arduino there we go, turns out this is better i2c library for PCF8574. the other lib was doing the pin reads backwards it likes steady high read state then pull to ground for action,otherwise the pins could not trigger eachother. https://github.com/skywodd/pcf8574_arduino_library/issues/14

luc-github commented 6 years ago

this is the olded I use on ESP3D - easy to program

luc-github commented 6 years ago

I guess issue can be closed