Show Posts
Pages: 1 ... 61 62 [63] 64 65 ... 100
931  Development / Suggestions for the Arduino Project / Re: Interest in overhauling the IDE user interface? on: September 05, 2012, 11:52:21 am
What bugs me is the  "Screen of Custard "  when trying to select a couple of lines of text  :-(

Perhaps my mouse control isnt as good as it was :-)
932  Using Arduino / Project Guidance / Re: loop only runs once on: September 05, 2012, 11:21:19 am
Thanks Guys

It was a brain fart,  tile [16]  of course it should have been -  must get some sleep :-)

The sketch snippet was scruffy as it was just a testing scribble AWOL   :-)
933  Using Arduino / Project Guidance / Re: loop only runs once on: September 05, 2012, 11:08:14 am
I am checking 16 bytes,  the first one I was seperating for the PIN number ( address if you like ) but I am now trying to read all 16 )

I have tried for (int n = 0; n < sizeof(tile); n++ ) but doesnt work either ...

The actual system that I want to test works fine, its just this quickcheck that is messing me around.

I think I must give it a break and think afresh later

934  Using Arduino / Project Guidance / Re: loop only runs once on: September 05, 2012, 10:47:53 am
Thanks James,  it works in the main receivers of the project, but I tried as below and its the same ?

   
Code:
#include <NewSoftSerial.h>
      #define RXPIN 14 //   
      #define TXPIN 15 //   
     #define SIMBAUD 9600 
   int n = 1;
int PIN = 40;     
       NewSoftSerial SIM(RXPIN, TXPIN);
int tile [15];

  void setup ()  {
     SIM.begin(SIMBAUD);     
     Serial.begin(9600);   }
  //***************************************************************************************
  void loop()   {
 if (SIM.available() > 0) {   // get incoming byte:
  Serial.println(" something available ");   
        for (int n = 0; n <=15; n++ ){       
       tile [n] =  SIM.read (); 
          Serial.println(tile [n]); 
         }       
       }  // end of is serial avail 
   }// end of loop
935  Using Arduino / Project Guidance / loop only runs once on: September 05, 2012, 10:35:17 am
I just want to monitor an input from various remote controls, if their PIN matches it must display the 15 bytes of data.
It works fine for the first message in, it SerialPrints  the PIN and 15 bytes, then nothing..

Must I flush the incoming buffer ?   or is this another brain fart / senior moment ?

 
Code:
  #include <NewSoftSerial.h>
      #define RXPIN 14 //   
      #define TXPIN 15 //   
     #define SIMBAUD 9600 
   int n = 1;
int PIN = 40;     
       NewSoftSerial SIM(RXPIN, TXPIN);
int tile [15];

  void setup ()  {
     SIM.begin(SIMBAUD);     
     Serial.begin(9600);   }
  //***************************************************************************************
  void loop()   {
 if (SIM.available() > 0) {   // get incoming byte:
  Serial.println(" something available ");   
    int indata = SIM.read ();
    if (indata == PIN || indata == 39){  Serial.println(indata);
      for (int n = 1; n <=15; n++ ){       
       tile [n] =  SIM.read (); 
          Serial.println(tile [n]);
      }     }       }  // end of is serial avail 
   }// end of
936  Using Arduino / Project Guidance / Re: Arduino Clock Accuracy without external source on: September 02, 2012, 01:01:22 am
Quote
1) Why isnt the on board clock as accurate as the crystal that drives it?
2) What is different about a RTC chip that gives it the accuaracy?


I have an idea that the RTC is not doing anything other than counting clock pulses, whereas the board's clock is doing other work.

I dont know the internals, but when I have a free running clock using the boards xtal, and  put in a couple of interrupts and serial.Prints, I have to adjust the millis count to get the clock right again.  (  like,  if  clockMillis >= 59998 for a minute )
937  Using Arduino / Project Guidance / Re: Arduino Clock Accuracy without external source on: September 01, 2012, 09:37:40 am
I tend to use a gps module to sync the time on such projects( as long as there is reception where you want situate the clock - or you could have the GPS in a nearby window )

By the time you have buttons to initially set the time, and to reset whenever it drifts - which even a battery wall click will do , you can buy a Fastrax UP501  GPS module ( we pay about US$ 15 for here in South Africa )

I usually get it to sync a free running clock ( counting millisecs as you are doing )  every ten minutes or so, if it is locked on to the satellites.
938  Using Arduino / Project Guidance / Re: Half-mile programmable light chase possible? on: September 01, 2012, 09:23:47 am
I would envisage getting a fab house to assemble the luminaires, with transuition IDC connectors using ribbon cable, and pack it as a bandolier, to run along a trench.

Whichever way you do it, with micros along the way etc, you will still need cables between the units anyway......
939  Using Arduino / Project Guidance / Re: Half-mile programmable light chase possible? on: September 01, 2012, 03:05:30 am
OK , this is not using an arduino, but a very much older,  dirt cheap chip - the 555,  ( who's inventor died this week - RIP,  he drew the artwork for the die by hand evidently ! )

You could use the CMOS  7555 to save power if you have 5000 of them !      60 microAmps x 5000 =  300 mA  plus the 20mA for the LEDs ( you could have 3 LEDs in series in each luminaire )  means less than 500mA needed for one or up to 10 dots chasing eachother .

You just need to hook some 4 wire telephone type cable between each lamp, ( I had them in the trees for a different project. )

For the number you are suggesting, I would have a pcb made, with an IDC connector to run some 4 way ribbon cable through ( or 8 way to share the DC )  That way there is no soldering to connect them.

The drawback is that the chase can only go one way !

Heres a bit of lateral thinking



The controller generates a pulse once every 3 seconds ( or whatever ) to start the chase, and sends a negative trigger pulse to the first LED unit ( luminaire )  this time is adjustable and could be set to leave a delay between one chase and the next, or sped up to have an LED coming on every 100 feet or whatever .  You could have 3 or 4 light dots running up the drive, or just one.

The chase speed varies the time each LED stays on, and it is the LED switching off time that is passed to the next luminaire trigger, so you can have the light dot moving up the drive fast or slow.

Just an old fashioned idea, you could have an Arduino for the controller, it even comes with the right software -  Blink  !  :-)
940  Community / Bar Sport / Re: So why are there no good electronics shops? on: August 31, 2012, 05:38:01 pm
I have friends who have electronic shops, and it is such a lot of effort to sell a handful of components - i.e.  5 different resistors, a couple of chips, and a few capacitors all from a project the customer has from an old magazine .

And the counter staff have to help with looking up equivalents, and so on. 

It is far better for them to sell an amplifier or expensive speaker.
941  Community / Bar Sport / Re: A stupid mistake on: August 29, 2012, 07:27:45 pm
I must take that substitution board off the website, its way too overcomplicated.
I have a much simpler version in the pipeline, but never seem to get the time to prototype it !

Youre right, business has been really tough for the last couple of years, but I get the sales of the scoreboards from referals - its viral, every new board gets seen by the visiting teams etc. and orders trickle in.......
942  Using Arduino / Project Guidance / Re: Arduino MEGA current draw predicament on: August 28, 2012, 10:46:00 pm
That looks cool,  and very retro, it would look good in a juke box type case , well done
943  Community / Bar Sport / Re: Neil Armstrong is dead on: August 28, 2012, 05:56:58 pm
You are right Grumpy Mike, I saw this quote on a baloon blog the other day :-

"We're making space more American. We're making space more democratic. We're making space more available, approachable and real to the average American."

- James Muncy, President of Polispace

Perhaps he should have added the Governmants aims  :-

"thats why we retired the Shuttle, scrapped any  the replacement project, and pay Russia to service the ISS "
944  Community / Bar Sport / Re: Neil Armstrong is dead on: August 28, 2012, 03:00:13 pm
On the lunar photo, there is a 4th connection to Armstrong !     http://xavierthoughts.blogspot.com/2008/05/armstrong.html

There used to be Armstrong racing bikes in England when I was a kid.
945  Community / Bar Sport / Re: Your opinion on piracy? on: August 28, 2012, 11:24:33 am


Quote
haha. nice example boffin. I really like it.

though I recon you might be slightly confusing categories. The farmer is paying the guy for the work he put into positioning it, not for the design of the antenna, so no patent issues - right?

Sorry , I didnt explain it very well, the conversation went from patents on to intellectual property generally, so I was trying to expain the value of " know how "

Like the engineer knowing where to hit the ships proshaft to stop the vibration :-)
Pages: 1 ... 61 62 [63] 64 65 ... 100