Show Posts
Pages: 1 2 [3] 4 5 ... 67
31  Using Arduino / Networking, Protocols, and Devices / Re: Help with Heartbeat client code on: February 22, 2013, 08:00:39 pm
Can you find where in the library code the timeout is processed?
32  Using Arduino / Networking, Protocols, and Devices / Bit Bang SPI question on the receiving part. on: February 22, 2013, 05:27:31 pm
The code below works fine for a mode 0 device.  The device wants an idle byte between sending a read command and reading the result.
What puzzles me is that I have to start reading the result on miso BEFORE sending the 1st clock pulse for the third byte transmitted.  If I were using hardware spi I would just send the three bytes and the result would be in spdr.  i.e. the slave clocks out its 1st data bit on the falling edge of the 16th clock(the last clock of the 2nd byte).

Does this make sense and I'm over-thinking it?  Maybe the way to think about it is that the avr reads miso on the rising edge of the 17th clock (for hardware spi)?

  for(i=0;i<8;i++){//first write the command
    digitalWrite(mosi,(temp&0x80));      //by setting mosi for each bit
    digitalWrite(sck,HIGH);              //then pulsing the clock
  for(i=0;i<8;i++){  //now we send 8 clock pulses while the enc thinks
  for(i=0;i<8;i++){  //now we read the data back
    result=(result<<1)|digitalRead(miso); //by grabbing miso for each bit
    digitalWrite(sck,HIGH);                //then pulsing the clock
33  Community / Bar Sport / Re: Where to get a Due or Raspberry Pi for Xmas gift on: November 30, 2012, 05:17:46 pm
I successfully ordered another Raspberry Pi from Newark (USA) yesterday. I have a tracking number so it's on its way.
Thanks a bunch - ordered one from newark canada.
34  Community / Bar Sport / Re: Where to get a Due or Raspberry Pi for Xmas gift on: November 30, 2012, 08:14:20 am
Unless there's a special reason that it HAS to be a  Due, or (shudder), Pi....
I dunno, I was assuming the relative had asked for a Due or Pi.

The relative in question is an experienced arduino user and a gadget freak.  He doesn't need another processor, this is a "for fun" thing - the Pi and the Due are the "ooh shiny" of the moment. 
35  Community / Bar Sport / Where to get a Due or Raspberry Pi for Xmas gift on: November 29, 2012, 07:52:28 am
As a christmas gift I'd like to get a relative either a due or a raspberry pi but everywhere I look seems to be back ordered.  Are these actually available or are they just trickling out?

I'm in Canada by the way.
36  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.1H for Windows (installer, drivers, etc) +SRC on: October 15, 2012, 12:08:46 pm
Is there a way to move from the beginning to end of a code block (or vice versa) matching braces?
37  Development / Other Software Development / Re: How about to create an IO API (library) for Arduino?! on: September 18, 2012, 12:37:47 am
Can you show some simple examples of code using the library?
38  General Category / General Discussion / Re: ARDUINO C on: September 12, 2012, 03:12:25 am
The arduino language is really c++. I worked my way thru a c/c++ tutorial nook running the examples on the arduino. The biggest things i noticed were the use of setup/loop instead of main and the lack of standard stream i/o on the arduino.
39  Development / Suggestions for the Arduino Project / Re: Interest in overhauling the IDE user interface? on: September 11, 2012, 02:49:32 am
Two things i would like to see:
1) the board and port settings stored kept individually to the ide window and stored with the sketch.
2) a list of recently used sketches on the file menu
Oh, and
3) the hex file kept in the sketch folder.
40  Using Arduino / Interfacing w/ Software on the Computer / Re: USB monitor package to replace simple Arduino serial monitor on: September 10, 2012, 12:59:43 am
Interesting idea. Maybe more like a debugger. The higher-end ides like visual studio do some of this.

I can recommend brey terminal as a more capable monitor but it is still a stream of text.
41  Community / Bar Sport / Re: I think I give up :) on: September 03, 2012, 08:43:13 am
42  Community / Bar Sport / Re: Designing connector between two PCBS - similar to SD card on: August 24, 2012, 12:07:39 pm
Could you reduce the number of pins dramatically by using something like spi?
43  Using Arduino / Sensors / Re: One wire RPM pickup on: August 23, 2012, 09:44:45 pm
Post a schematic and the scope trace.  What output do you get from your code and from the mini-tach.
44  Using Arduino / Displays / Re: SparkFun 5110 84x48 LCD supply voltage on: August 20, 2012, 07:25:29 am
I run mine at 3.3 using a small red led to drop the voltage. The current draw is very small so the led's barely visibly lit.
45  Using Arduino / Programming Questions / Re: External Interrupt ISR Execution Latency on: July 23, 2012, 11:39:06 am
There's an excellent writeup linked to by a thread On this site - search for interrupt latency maybe. I believe the basic answer is several microseconds but there are ways to improve it.
Pages: 1 2 [3] 4 5 ... 67