-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 6/30/2013 11:26 AM, Troy Jacobson wrote: > Hi Charles, and all, > > My BBB is making my printer move, and I'm almost to a place I can > use it to make something. The system consists of a bunch of jumper > wires from the BBB to a RAMPS board. Functional, but messy. > > The next steps are: 1) Tweaking the temperature code to match the > thermistor circutry on the RAMPS. I like that the thermistor table > Charles made is based on the resistance at a temperature. I'll > also need to add a second temperature input, but I think most of > the framework is in place for that. 2) Outputs for a fan and two > heaters (hot end and print bed). 3) Home/limit switches. I have a > good idea what needs to be done here, except that I can't find out > how to map to the pin on the BeBoPr. > > I mostly need help with #3. I see the > [PRUCONF](Driver).stepgen.00.enable type lines, but how does that > map to an actual pin on the BBB? It also looks like more pins on > the BeBoPr might need to be added in the dts file. As an > alternative, I might try to use the K9 configuration as a starting > point, since there seems to be more pins that I can use.
There are more available pins on the K9 config, because the K9 is tied to just about every available I/O. :) I have just recently started trying to support more than one ADC on my BeBoPr config (to read extruder and bed temperature), and I have had issues with the Python ADC temperature code failing (apparently, the ADC "helper" driver isn't very robust and doesn't like being pestered by multiple user-mode programs at the same time). :( As for pins, there are several different schemes in use on the BeagleBone and within my config files: The Kernel GPIO naming convention: (GPIO_Bank * 32) + bit The hal_bb_gpio HAL module convention: P8 Pin = 100 + Pin number P9 Pin = 200 + Pin number The hal_pru_generic convention, which is similar to the kernel naming convention but off by one, so "zero" results in no output: ((GPIO_Bank + 1) * 32) + bit --or-- ( 5 * 32) + PRU_bit The home/limit switches are intended to be used with the hal_bb_gpio component. It should be resonably obvious how to connect these if you poke around in HAL a bit (I have the component loaded so it should export the pins you need, you just have to hook them to something!), but holler if you have any questions or problems setting up a configuration. - -- Charles Steinkuehler [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlHQyqgACgkQLywbqEHdNFxNzQCeM/YaQFG+f6IB8xrvUM1b7zYo racAoJBlSOV1J+Mt1T1q4yuVxmNeXfwI =KtTt -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
