DIY project: homemade electronics? April 07, 2015 11:49AM |
Registered: 10 years ago Posts: 5 |
Re: DIY project: homemade electronics? April 07, 2015 12:28PM |
Registered: 11 years ago Posts: 126 |
Re: DIY project: homemade electronics? April 08, 2015 10:56AM |
Registered: 10 years ago Posts: 5 |
Re: DIY project: homemade electronics? April 08, 2015 11:48AM |
Registered: 10 years ago Posts: 119 |
Re: DIY project: homemade electronics? April 08, 2015 12:14PM |
Registered: 11 years ago Posts: 126 |
Quote
Niben
i do not use the standard motor drivers, but i use different IC motor drivers, the L293E to be precise. So what do i have to do?
Re: DIY project: homemade electronics? April 08, 2015 03:27PM |
Registered: 10 years ago Posts: 5 |
I've done that, but there I can't discover any assignments of pins, no pin number there. I have searched in the rest of the files, and for example the pins_CHEAPTRONIC.h file looks very organized and nice. I think I have to create such a file, but how do I make sure that file works with the rest of Marlin (for example with the configuration.h file)?Quote
george4657
Take a look at the pins.h file
Hm, that doesn't sound nice. I think I might be able to rebuild my board a little bit so that it does what you said it does with direction, enable and step. You have some link where this is explained a little more?Quote
JustAnotherOne
Marlin works with stepper controller chips that have a Step and Dir signal. It creates a pulse on the step signal and expects the driver IC to have the stepper move by one step. If your driver chips does not comply to this, then you will have to change that part of Marlins code.
If you are new to embedded software then that will be a hard task. You might want to reconsider your choice of driver chip,..
Re: DIY project: homemade electronics? April 08, 2015 03:39PM |
Registered: 11 years ago Posts: 126 |
Quote
Niben
Quote
JustAnotherOne
Marlin works with stepper controller chips that have a Step and Dir signal. It creates a pulse on the step signal and expects the driver IC to have the stepper move by one step. If your driver chips does not comply to this, then you will have to change that part of Marlins code.
If you are new to embedded software then that will be a hard task. You might want to reconsider your choice of driver chip,..
Hm, that doesn't sound nice. I think I might be able to rebuild my board a little bit so that it does what you said it does with direction, enable and step. You have some link where this is explained a little more?
Quote
Niben
Kind regards, and I'm sorry about my probably stupid questions, but I try to understand al these crazy new things!
Re: DIY project: homemade electronics? April 09, 2015 02:30AM |
Registered: 14 years ago Posts: 1,352 |
// for example pins for stepper motors, step/dir/enable pins, the -1 on enable means it does not use enable, although you should use that; similar for each axis including Extruder #define X_STEP_PIN 2 //change the number with your number #define X_DIR_PIN 3 #define X_ENABLE_PIN -1 //the endstop for each axis (except E), depends on what endstop are used, their configuration is in config.h instead of pins.h, you will have to figure that part out, things like configuration of pullups, and positive/negative logic #define X_STOP_PIN 16 ... //the fan and heaters are pins which basically go to mosfets to control such fans and heaters #define HEATER_0_PIN 13 #define HEATER_1_PIN -1 #define HEATER_2_PIN -1 #define FAN_PIN -1 #define HEATER_BED_PIN 4 ... //temp pins are the connections that lead to thermistors, usually these pins have a pullup of 4.7k and a 10uF cap to gnd, thats the termistor sensor: #define TEMP_0_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define TEMP_1_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define TEMP_2_PIN -1 #define TEMP_BED_PIN 10 ... //other pins like these are extra for special functions and probably you wont care so for start you can disable their function with like -1 #define SDPOWER -1 #define SDSS 53 #define LED_PIN -1 #define PS_ON_PIN 9 #define KILL_PIN -1 //other pins like those for sd card need special reading and have to be specific pins, e.g. cant just connect the hardware to any place, but if you do the hardware you will know where to put themThats basically the idea. The pins like stepper drivers step/dir/enable have this specific name on the driver or the driver documentation. The fans/heaters are pins which essentially lead to a mosfet's Gate pin to control that mosfet. Thermistors are pins which have one pullup and one cap to ground, and go into one thermistor lead, while the other thermistor lead goes to ground. IF you diy your own hardware, you will figure out all these parts, and i think you will see its basically a lot simpler than it sounds. You could check out RDB - diy electronics, which is just a simple board that takes out all these basic functions pins and exposes them for you to wire them to arduino or to headers of whatever other development board you could think of.
Re: DIY project: homemade electronics? May 16, 2015 04:39PM |
Registered: 10 years ago Posts: 5 |
Quote
Error message
Arduino: 1.6.3 (Windows 8.1), Board:"Arduino Uno"
In file included from Marlin_main.cpp:30:0:
Marlin_main.cpp: In function 'void gcode_M119()':
fastio.h:25:27: error: 'DIO67_RPORT' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
Marlin.h:72:49: note: in definition of macro 'SERIAL_PROTOCOLLN'
#define SERIAL_PROTOCOLLN(x) do{ MYSERIAL.print(x),MYSERIAL.write('\n'); }while(0)
^
fastio.h:65:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
Marlin_main.cpp:3502:25: note: in expansion of macro 'READ'
SERIAL_PROTOCOLLN(((READ(Y_MIN_PIN)^Y_MIN_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN));
^
fastio.h:25:54: error: 'DIO67_PIN' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
Marlin.h:72:49: note: in definition of macro 'SERIAL_PROTOCOLLN'
#define SERIAL_PROTOCOLLN(x) do{ MYSERIAL.print(x),MYSERIAL.write('\n'); }while(0)
^
fastio.h:25:49: note: in expansion of macro 'MASK'
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:65:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
Marlin_main.cpp:3502:25: note: in expansion of macro 'READ'
SERIAL_PROTOCOLLN(((READ(Y_MIN_PIN)^Y_MIN_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN));
^
fastio.h:25:27: error: 'DIO59_RPORT' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
Marlin.h:72:49: note: in definition of macro 'SERIAL_PROTOCOLLN'
#define SERIAL_PROTOCOLLN(x) do{ MYSERIAL.print(x),MYSERIAL.write('\n'); }while(0)
^
fastio.h:65:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
Marlin_main.cpp:3510:25: note: in expansion of macro 'READ'
SERIAL_PROTOCOLLN(((READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN));
^
fastio.h:25:54: error: 'DIO59_PIN' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
Marlin.h:72:49: note: in definition of macro 'SERIAL_PROTOCOLLN'
#define SERIAL_PROTOCOLLN(x) do{ MYSERIAL.print(x),MYSERIAL.write('\n'); }while(0)
^
fastio.h:25:49: note: in expansion of macro 'MASK'
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:65:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
Marlin_main.cpp:3510:25: note: in expansion of macro 'READ'
SERIAL_PROTOCOLLN(((READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN));
Re: DIY project: homemade electronics? May 16, 2015 05:10PM |
Registered: 10 years ago Posts: 606 |
Re: DIY project: homemade electronics? May 17, 2015 07:49AM |
Registered: 10 years ago Posts: 5 |
Re: DIY project: homemade electronics? May 17, 2015 03:53PM |
Registered: 11 years ago Posts: 14,686 |
Re: DIY project: homemade electronics? May 17, 2015 07:57PM |
Registered: 10 years ago Posts: 119 |
Re: DIY project: homemade electronics? June 07, 2015 06:50AM |
Registered: 10 years ago Posts: 210 |
Quote
Ecellent text, and really needed. What could be added is that power supplies should be unregulated with a filter/reservoir capacitor with a value of: