Where did you discover it?
sparkfun has 'em. [url]http://www.sparkfun.com/products/9374[/url]
heck, i thought everybody knew about this glitch! it seems now almost part of the arduino mythos… and is the most frequent (and annoying, i hear) question the arduino team gets asked - “are ya gonna fix it?” The answer is a resounding NO!
I should’ve recognized the image. Sparkfun uses quarter a lot for size comparison. Thanks
I’m a little confused… So, this glitch exists in Arduino but not in FEZ yet FEZ uses the Arduino shield layout??? I created a shield this past weekend using .1 perfboard for a Panda-II and had no problems at all with alignment. I used plain old Arduino headers from adafruit.
Fez uses the same flawed layout. Depending on tolerances of your connection methods, you might find it works OK on perfboard; then again you may find it doesn’t fit too well; thank you Arduino.
My technique was to poke the headers through the perfboard and into a Panda-II to get perfect alignment during soldering. I guess there was just enough tolerance in the perfboard to allow the pins to shift enough to make a perfect fit.
Nice sandwich! ;D
Thx. It’s a little chewy but it goes well with a side of quadcopter
I finally got my hands on that SPI shield that was mentioned on this thread a while back. It only took like forever, but now I think I can turn on the eval6470. Here’s hoping it doesn’t catch fire
So I got the shield and the cable, unfortunately the cable doesn’t fit in the eval board, because the cable is 6 pin and the eval is 10. So I’m making due with some old pc jumper cables that I found. It’s missing 2 of the 10 wires but I hope that is not a problem.
How is your project coming along? are you doing any work on g-code parsing? in between everything else i should get done im working on a g-code parser for netMF. but if yours is better i could borrow it
this is my router - it just needs a little love
Nah, I haven’t gotten that far yet. My biggest problem has been in the mechanics. I’ve had to start over. My G-Code parser is intended “compile” g-code into instructions that are specific to the individual cnc, so it should be adaptable.
The L6470 chip that I need for my project will only come in batches of 1K; wear-as I need 8 of them to continue my prototyping.
Can anyone recommend a replacement chip?
You should be able to get them in singles
http://search.digikey.com/us/en/products/L6470HTR/497-10812-1-ND/2469160
Thanks Rajesh, Digikey has not known to be kind to me but I’ve placed the order and we’ll see how it turns out.
Hi,
I am working on a similar project - and industrial DIN rail mount stepper controller. Did you have any luck with the L6470? How did you set up the SPI interface? I am having trouble connecting to it. What instructions did you send? Any code snippets?
Much Appreciated,
Tom
@ tommyvdp,
I had to purchase a rare shield that exposes the SPI interface of a Fez Domino in a neat form factor:
[url]http://www.tinyclr.com/images/uploads/42706_large.jpg[/url] (see some of the earlier posts on this topic)
The SPI port does all the hard work for you its a matter of setting it up. Still working on a driver that will encapsulate all the functionality of the chip, including the ability to daisy chain. That will prob end up in the code wiki once finished.
Hi,
Thanks for the reply. How did you set up the port in the software for this chip?
I have:
SPI.Configuration MyConfig = new SPI.Configuration((Cpu.Pin)FEZ_Pin.Digital.UEXT10, false, 0, 0, true, true, 5000, SPI.SPI_module.SPI1);
SPI MySPI = new SPI(MyConfig);
byte[] tx_data = new byte[1];
byte[] rx_data = new byte[2];
rx_data = new byte[2] { 0,0 };
tx_data = new byte[1] {0xD0};
while (true)
{
MySPI.WriteRead(tx_data, rx_data);
Debug.Print("Status 1: = " + rx_data[0].ToString());
Debug.Print("Status 2: = " + rx_data[1].ToString());
Thread.Sleep(1000);
}
I am trying to send ‘0xD0’ to receive the status bytes, but am not getting correct data.
Also, do you have the daisy chain termination jumper closed? Or do you only need this with multiple units?
Thanks for you response,
Tom
@ Tommy,
I believe that the first byte back is always status; also I believe that you have to write 2 bytes and expect back 3.
Further which device are you using?
Hi,
I am using the L6470 chip with a FEZ Mini. What I really want to know is how you have the SPI set up as far as the L6470 parameters go - ActiveState, SetupTime, HoldTime, IdleState, ClockEdge, Clock_Rate.
Second, if I send two bytes, what is the other one? The one I am sending is the ‘GetStatus’ bit (0xD0).
Thanks,
Tom