Re: [Emc-users] lost in the transcendental math again

2018-12-17 Thread Gene Heskett
Greetings all; I have one last problem, I can't get a G42 to "take" despite the fact that the next move is 2x+ the tool diameter. I would like to run most of a while loop using g42 as that, when I've made it work, draws a red line in the backplot on the climb cutting side of the tool. But as I

Re: [Emc-users] SPI

2018-12-17 Thread Gene Heskett
On Monday 17 December 2018 06:09:51 andy pugh wrote: > Not as on-topic as I would like, but I suspect that some of you here > might know something useful. > > I am trying to interface an ADS1256 board to an Arduino. > https://www.ebay.co.uk/itm/19242863594 > > Sometimes it almost works... > It

Re: [Emc-users] SPI

2018-12-17 Thread andy pugh
On Mon, 17 Dec 2018 at 14:18, Charles Steinkuehler wrote: > That sounds like a floating signal. And you were right. It appears to work now. I hadn't read the docs properly and thought that SPI.beginTransaction was the new SPI.begin(). Not so! So my SPI pins were not in the correct pin modes.

Re: [Emc-users] SPI

2018-12-17 Thread John Dammeyer
Andy, Of course a scope here is your friend. If you don't have one do some simple tests. 1. Make sure /RESET and /PDWN are both pulled to +3.3V or 5V with a resistor. The data sheet says these are 5V tolerant to 6V. 2. Make sure the /CS signal is pulled low before you start clocking. 3.

Re: [Emc-users] lost in the transcendental math again

2018-12-17 Thread Gene Heskett
On Monday 17 December 2018 05:05:18 Roland Jollivet wrote: > Hi Gene > You seem to be making a real meal out of a DB9 slot 1, its a db25, 2, it lays horizontally, and 3. I'm done except for tweeking the bottom, narrower run, I've a greater than 10 degree angle for the tapered ends. This isn't

[Emc-users] lost in the transcendental math again

2018-12-17 Thread Roland Jollivet
Hi Gene You seem to be making a real meal out of a DB9 slot Why not just make the cutout this shape; https://www.aliexpress.com/item/10PCS-Full-Height-serial-port-Bracket-for-DB9-DB15-DB25-interface-Computer-Case-PCI-slot-baffle/32880851198.html easier to assemble can invert plug later if you

[Emc-users] SPI

2018-12-17 Thread andy pugh
Not as on-topic as I would like, but I suspect that some of you here might know something useful. I am trying to interface an ADS1256 board to an Arduino. https://www.ebay.co.uk/itm/19242863594 Sometimes it almost works... It will often sit there reading all-zeros then suddenly appear to work,

Re: [Emc-users] SPI

2018-12-17 Thread andy pugh
On Mon, 17 Dec 2018 at 11:09, andy pugh wrote: > I am trying to interface an ADS1256 board to an Arduino. > https://www.ebay.co.uk/itm/19242863594 Bad URL https://www.ebay.co.uk/itm/192428635947 -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial

Re: [Emc-users] SPI

2018-12-17 Thread andy pugh
On Mon, 17 Dec 2018 at 14:18, Charles Steinkuehler wrote: > Double-check your wiring and the data sheets, paying particular > attention to the direction of the data signals. I have found the data > line labeling (MISO/MOSI, DIn/DOut, etc) to be somewhat haphazardly > applied, and your symptoms

Re: [Emc-users] SPI

2018-12-17 Thread Charles Steinkuehler
On 12/17/2018 5:09 AM, andy pugh wrote: > Not as on-topic as I would like, but I suspect that some of you here > might know something useful. > > I am trying to interface an ADS1256 board to an Arduino. > https://www.ebay.co.uk/itm/19242863594 > > Sometimes it almost works... > It will often sit

Re: [Emc-users] SPI

2018-12-17 Thread Marius Liebenberg
Andy, sofar I know the Master must pull the bus high with a pull-up resistor -- Original Message -- From: "andy pugh" To: "Enhanced Machine Controller (EMC)" Sent: 2018-12-17 13:09:51 Subject: [Emc-users] SPI Not as on-topic as I would like, but I suspect that some of you here

Re: [Emc-users] SPI

2018-12-17 Thread Charles Steinkuehler
On 12/17/2018 9:26 AM, andy pugh wrote: > On Mon, 17 Dec 2018 at 15:06, Bruce Layne > wrote: > >> Generally speaking, there are four modes of transmission >> > > Looking at http://www.ti.com/lit/ds/symlink/ads1256.pdf (figure 1) and > https://en.wikipedia.org/wiki/Serial_Peripheral_Interface I

Re: [Emc-users] SPI

2018-12-17 Thread andy pugh
On Mon, 17 Dec 2018 at 15:06, Bruce Layne wrote: > Generally speaking, there are four modes of transmission > Looking at http://www.ti.com/lit/ds/symlink/ads1256.pdf (figure 1) and https://en.wikipedia.org/wiki/Serial_Peripheral_Interface I am not 100% clear which mode is being described, but

Re: [Emc-users] O subroutines limited to 4 parameters, not 30?

2018-12-17 Thread Kenneth Lerman
Hi Ted, What is the meaning of "fail" in this context? Do you get some sort of error message? Or does smoke come out of the machine? :-) Ken On Sat, Dec 15, 2018 at 6:00 PM Ted Hyde wrote: > Greets - I'm calling an o sub from python and need to pass 8 parameters > to it. Per the docs, I'm

Re: [Emc-users] SPI

2018-12-17 Thread Bruce Layne
When I've had problems similar to those you described when interfacing SPI devices to a microcontroller, it was usually caused by some violation of the timing diagram.  I was writing my own SPI communications routines in assembler on a PIC microcontroller.  I did a quick search and it looks