New firmware for printing directly from the Raspberry Pi's GPIO pins August 18, 2014 01:45AM |
Registered: 9 years ago Posts: 18 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins August 19, 2014 06:04PM |
Registered: 10 years ago Posts: 979 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins August 20, 2014 06:38PM |
Registered: 9 years ago Posts: 18 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins August 20, 2014 08:05PM |
Registered: 10 years ago Posts: 979 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins August 22, 2014 12:59PM |
Registered: 9 years ago Posts: 31 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins August 23, 2014 11:03PM |
Registered: 11 years ago Posts: 661 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins August 28, 2014 12:31PM |
Registered: 9 years ago Posts: 135 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins August 28, 2014 12:36PM |
Registered: 10 years ago Posts: 979 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins November 09, 2014 10:15AM |
Registered: 10 years ago Posts: 6 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins November 13, 2014 05:47PM |
Registered: 9 years ago Posts: 18 |
A4988|RpiIoPin|mitpi::V2_GPIO_P1_22>, RpiIoPin|mitpi::V2_GPIO_P1_23>, _StepperEn>, //A tower
A4988|RpiIoPin|mitpi::V2_GPIO_P1_07>, RpiIoPin|mitpi::V2_GPIO_P1_08>, _StepperEn>, //A tower
RpiIoPin|mitpi::V2_GPIO_P1_18, IoLow, mitpi::GPIOPULL_DOWN>where the second two parameters are optional. The first parameter specifies the location of the pin on the raspberry pi board. The second parameter indicates the default value it should be set to when operating in an output mode, and the third specifies if the pin should internally be tied to a HIGH or LOW value when no other logic signal is present (useful, for example, to make an endstop automatically trigger if the connection is faulty). If you see something like InvertedPin|...>, then that means that all the logic-levels for that pin are inverted - if the pin is at 0V, then that should be read as HIGH, instead of LOW, and setting the pin to a high output should entail putting it at 0 volts instead of the supply.
#define THERM_RA 665 #define THERM_CAP_PICO 2200000 #define VCC_mV 3300 #define THERM_IN_THRESH_mV 1600 #define THERM_T0 25 #define THERM_R0 100000 #define THERM_BETA 3950
#define R1000 111000 #define L1000 221000 #define H1000 467450 #define BUILDRAD1000 85000 #define STEPS_M 6265*8 #define STEPS_M_EXT 30000*16
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 08, 2014 06:22PM |
Registered: 13 years ago Posts: 106 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 08, 2014 07:09PM |
Registered: 10 years ago Posts: 14,672 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 09, 2014 08:28AM |
Registered: 13 years ago Posts: 106 |
Quote
dc42
Repraps do not need 5V tolerant controllers, in fact the more modern controller electronics (e,g, Duet electronics, or Arduino Due + RAMPS-FD) are 3.3V. That said, I am not sure that the RPi is an ideal solution, for example because it lacks ADCs.
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 09, 2014 01:09PM |
Registered: 10 years ago Posts: 14,672 |
Quote
mung
Quote
dc42
Repraps do not need 5V tolerant controllers, in fact the more modern controller electronics (e,g, Duet electronics, or Arduino Due + RAMPS-FD) are 3.3V. That said, I am not sure that the RPi is an ideal solution, for example because it lacks ADCs.
I really do not want to tell you that its wrong but there are a large number of very very reprap users that have discussed this previously e.g. [forums.reprap.org].
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 10, 2014 11:06PM |
Registered: 9 years ago Posts: 18 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 11, 2014 06:15PM |
Registered: 9 years ago Posts: 2 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 11, 2014 09:08PM |
Registered: 9 years ago Posts: 18 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 14, 2014 05:31PM |
Registered: 9 years ago Posts: 2 |
Quote
we use the Odroid U3 to control a quad-rotor (no microcontroller-based flight control, just plain Linux control code).
As a Linux distribution on the ODROID we use Gentoo, and of course our quadrotor natively compiles all of its software (kernel, userspace)
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 14, 2014 09:24PM |
Registered: 9 years ago Posts: 18 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 16, 2014 02:55PM |
Registered: 13 years ago Posts: 106 |
Quote
wallacoloo
Hi mung,
The step rate used on this implementation is 250 kHz for each individual axis. That is, if you are running 9 axes, you can still make 250k steps per second on each one. It uses DMA (a hardware peripheral that is logically separated from the CPU) to do the step control so that it uses literally 0 cpu time. If you're careful to limit network/sd access, it's possible to push 400 kHz.
I avoided LinuxCNC because it looked intimidating, and I wanted to create a solution which wasn't intimidating. I know, I could probably have gotten LinuxCNC to work in a few days, but a simple userland program that works out-of-the-box on any Linux system is easier for newcomers. Furthermore, I wanted a non-GPL solution. I did heavily consider using aprinter, but its configuration system is an absolute mess, among other things, and I think it also required a gcc version that wasn't supported on the Raspberry Pi at the time. In hindsight, I probably should have just contributed fixes for the bits of aprinter that I didn't like, but I underestimated the complexity of starting from scratch.
Of course you can use 3.3V electronics. Ramps-FD is compatible with either 3.3V OR 5V (and will even automatically detect the desired voltage based upon an Arduino's IOREF pin) and it costs $20 from Geeetech. Raspberry Pi Model A+ costs $20. That's pretty comparable to the common Arduino + RAMPS combo. Additionally, my solution is aimed specifically to people who want to network their 3d printers. Currently, those people are taking their Arduino + RAMPS and connecting it to a networked Raspberry Pi via a serial interface. If the Raspberry Pi is capable of directly driving the motors, etc, then why not ditch the unnecessary Arduino?
Yes, I admit that the Pi is not the ideal solution. I have focused on making my software as generic as possible. I can compile and even run the software out of the box on any machine that has a C++11 compiler (gcc-4.6+), with the limitation that all IO operations are dummy operations. It does not even need to be running an operating system, so it can still be run on bare metal if you're targeting an MCU where the compiler will include the proper startup sequence for you. Fixing the dummy IO operations is as simple as populating a few files under src/drivers/xxx that are automatically detected by the build system. The goal was that as more appropriate boards surface, adding support for them should be a breeze and shouldn't require a fork of the firmware.
Lastly, I hear you saying "So and so says it can't be done" when there is direct proof in front of you that it IS being done (ie a video of both the Raspberry Pi 3d printing, and using 3.3v with stepper drivers & electronics). I don't even know how to respond to this. There is SO much misinformation in these forums propagated through this kind of "so-and-so said" logic.
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 16, 2014 04:11PM |
Registered: 10 years ago Posts: 14,672 |
Quote
mung
Also as far as 3.3volt/5volt you are pushing specs outside ratings
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 17, 2014 05:50AM |
Registered: 13 years ago Posts: 106 |
Quote
dc42
Quote
mung
Also as far as 3.3volt/5volt you are pushing specs outside ratings
Mung, if you are going to make accusations like that, you need to be precise. What specs do you believe wallacoloo is pushing outside ratings?
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 17, 2014 02:05PM |
Registered: 10 years ago Posts: 14,672 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 18, 2014 10:03AM |
Registered: 13 years ago Posts: 106 |
Quote
dc42
Mung, most of the posters on these forums don't have a good knowledge of electronics. Unfortunately, a very few of them choose to display their ignorance by posting incorrect information. Unlike those people, designing electronics is something I do for a living. Going over past posts only going to tell me how ignorant a small number of the posters are, or that you have misinterpreted what they are saying - which I suspect is a large part of the problem. Consensus means nothing unless the people reaching that consensus know what they are talking about.
However, I did look at the thread you linked to, I don't see any consensus there. What I do see is a number of posts saying that you can use 3.3V electronics. I also see a post saying that you should not power a Pololu stepper driver from a 5V logic supply and then drive it with 3.3V logic signal - which is correct.
There is nothing magical about the voltage levels "5V" and "3,3V". What matters is that when the output of a digital device A is fed into another digital device B, the signal level is in the range that B can accept without (a) being damaged or (b) possibly misinterpreting the logic level. So it's all down to what devices you connect together, and how you connect them together.
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 18, 2014 07:37PM |
Registered: 10 years ago Posts: 14,672 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 20, 2014 04:51AM |
Registered: 10 years ago Posts: 14,672 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 20, 2014 11:07AM |
Registered: 13 years ago Posts: 106 |
Quote
dc42
Mung, I will happily discuss the finer points of electronic circuit design with other professional electronic engineers, but I certainly don't need to prove anything to you. As far as I am concerned, this correspondence is closed. I remain willing to discuss compatibility issues between particular 5V and/or 3.3V devices.
PS - no I do not use a RPi to control a 3D printer, however one of my 3D printers uses 3.3V electronics, and I am converting my other one to use 3.3V electronics too. But as you yourself pointed out, it is not just a case of what has been made to work by one individual, it is a case of what works and runs everything within the tolerances of the individual components. This isn't just a problem with 3.3V electronics, there is at least one open source design for 5V 3D printer electronics that runs some of the components out of spec.
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins December 21, 2014 12:57PM |
Registered: 10 years ago Posts: 14,672 |
Quote
mung
I am not sure I should reply as I worry you may find my answer annoying...
Quote
GPIO voltage levels are 3.3 V and are not 5 V tolerant. There is no over-voltage protection on the board
NOPE, you won't be able to use a Pi's GPIO without a ton of extra external electronics.
That's a serious disappointment that the Pi can't even handle 5V logic.
Quote
mung
I wish you will oneday become one of those great masters dc24 as I wish the same for myself...
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins January 14, 2015 06:46PM |
Registered: 9 years ago Posts: 14 |
Quote
dc42
Repraps do not need 5V tolerant controllers, in fact the more modern controller electronics (e,g, Duet electronics, or Arduino Due + RAMPS-FD) are 3.3V. That said, I am not sure that the RPi is an ideal solution, for example because it lacks ADCs.
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins January 18, 2015 12:45AM |
Registered: 9 years ago Posts: 18 |
Quote
MachineHum
"The Raspberry Pi has no user-accessible analog to digital (A/D) converters, meaning that it's slightly more complicated to read analog sensors, like thermistors and force-sensitive resistors (FSRs). Since both of these act as resistors, this limitation is bypassed by using an RC circuit - a capacitor of known capacitance is charged to its capacity, and the time it takes to discharge through the resistor is measured."
How well is this working? it's a very interesting concept ... is this bogging down the processor at all? running a super fast timer during CAP discharge? what's the sample rate? Have you considered using an I2C ADC as RPI supports I2C naturally (sometimes will a little tweaking)