Show Posts
Pages: 1 [2] 3 4 ... 24
16  Using Arduino / Programming Questions / Re: help how to calibrate lm35 digitally via software to read accurately on: February 11, 2014, 03:12:42 am
Code:
delay(1000); // wait for 15 seconds

Interesting comment.
I think we have to emphases on sketch not the associated comments... Programming is universal language not the comments... delay(1000) is so simple to understand all by us ...
17  Using Arduino / LEDs and Multiplexing / Re: A Low Cost Approach to Graphical Waterfall on: February 09, 2014, 11:41:56 pm
Finally a success...We have tested 64 solenoid valves waterfall all day long in our FunFair community show for charity fund raising. Lightning and background still needs improvement however technically we have a very good response from the computer-electronics-hardware communication. The handshake protocol worked flawlessly.
Here is the video. The header is at atmospheric pressure and outlet of solenoid valve is 6mm.
18  Topics / Interactive Art / Re: Clock Hands as Input? on: February 09, 2014, 02:41:59 am
Okay.. if i was you i would have solve this on in other way. I will be using simple RTC with Arduino and will make it sure that the clock and RTC never go wild smiley... I would have used RTC to controll the environment...
19  Using Arduino / Programming Questions / Re: Bit shifting loop slows down as the bits shift out on: January 26, 2014, 01:20:03 am
Mark.. How then you handle large bit shifting without compromising speed. For example if you were in my place andyou are dealing with continuous bit shifting to run 80 solenoid valves with 10 shift registers using Arduino.
Look the video of my following program written in visual Basic.
www.youtube.com/watch?v=5fx199QESBk&feature=youtu.be
My work on this project can be seen here:

http://forum.arduino.cc/index.php?topic=60117.0

This program converts Black and White pictures into bit-pattern(binary). This then converted into Hexadecimals and sent to Arduino using USB port . A special protocol for getting the data from VB software has been implemented in the Arduino  sketch. If you read my following thread you will see how difficult is to write a protocol. This is because you are getting every type of extended ASCII character  from serial i.e. you do not have a good choice of limiter and delimiter characters.

All these character are then processed into the arduino sketch and using this built in SHIFTOUT function send to the 80 solenoid valves. I can send the VB program and the Arduino Sketch for optimization if any one interested especially the High end programmer like you. I am successfully running this with thousands of bit shifting operations without losing any character due to very refined protocol ( i accidentally made), however sometime i feel there is increase in delay after long long run the waterfall pattern has little shifting due to the delay. Shifting mean change in ASPECT RATIO of the falling pattern due to logarthimic delay (this delay i think due to this built-in SHIFOUT function as described above)
20  Development / Other Software Development / Re: FastShiftOut with Print interface (experimental) on: January 25, 2014, 01:24:36 pm
Thank you for the generosity and sharing:) I shall come back and report..
Regards
21  Using Arduino / Programming Questions / Re: Bit shifting loop slows down as the bits shift out on: January 25, 2014, 01:16:51 pm
Riva... Thanks for the information and i am really impressed. I am sorry for taking your thread a little astray or you call it hijacked.
You programmers are really talented and genius.. I can't think of writing such difficult sketches... I do programming just to achieve the goal (you can say i am bad practitioner in programming) and my sketches are worst and non-optimized... i wish i have a brain like you peoples..
Regards
22  Development / Other Software Development / Re: FastShiftOut with Print interface (experimental) on: January 25, 2014, 01:02:17 pm
Rob,
Thanks for this new approach in Shiftout. I shall check how can i utilize it in my Graphical waterfall project.
Regards
23  Using Arduino / Programming Questions / Re: Bit shifting loop slows down as the bits shift out on: January 25, 2014, 12:52:26 pm
Thanks for the link:).. I shall check it out how can i use it in place of SHIFTOUT built-in function... However, any help in this is appreciated smiley..
Should i make Header file and use that function in my sketch in similar way the built-in function been used?
Regards
24  Using Arduino / Programming Questions / Re: Bit shifting loop slows down as the bits shift out on: January 25, 2014, 12:38:38 pm
I am using the BUILT IN version (i am poor in programming).. I am amazed to see your programming skill and was attentive to read that you are using your own customized SHIFOUT function.
Regards

PS:
How you programm such a difficult function...smiley-sad How long it took you to write the above function? smiley-mr-green
25  Using Arduino / Programming Questions / Re: Bit shifting loop slows down as the bits shift out on: January 25, 2014, 12:27:06 pm
Is this also true with following  ShiftOut function?
Code:

void shiftOut(int myDataPin, int myClockPin, byte myDataOut) {
  // This shifts 8 bits out MSB first,
  //on the rising edge of the clock,
  //clock idles low

  //internal function setup
  int i=0;
  int pinState;
  pinMode(myClockPin, OUTPUT);
  pinMode(myDataPin, OUTPUT);

  //clear everything out just in case to
  //prepare shift register for bit shifting
  digitalWrite(myDataPin, 0);
  digitalWrite(myClockPin, 0);

  //for each bit in the byte myDataOut�
  //NOTICE THAT WE ARE COUNTING DOWN in our for loop
  //This means that %00000001 or "1" will go through such
  //that it will be pin Q0 that lights.
  for (i=7; i>=0; i--)  {
    digitalWrite(myClockPin, 0);

    //if the value passed to myDataOut and a bitmask result
    // true then... so if we are at i=6 and our value is
    // %11010100 it would the code compares it to %01000000
    // and proceeds to set pinState to 1.
    if ( myDataOut & (1<<i) ) {
      pinState= 1;
    }
    else {
      pinState= 0;
    }

    //Sets the pin to HIGH or LOW depending on pinState
    digitalWrite(myDataPin, pinState);
    //register shifts bits on upstroke of clock pin  
    digitalWrite(myClockPin, 1);
    //zero the data pin after shift to prevent bleed through
    digitalWrite(myDataPin, 0);
  }

  //stop shifting
  digitalWrite(myClockPin, 0);
  // delay(0);
}


 i mean when i run my graphical waterfall for long time i see delay of valve opening in long run...
26  Using Arduino / LEDs and Multiplexing / Re: A Low Cost Approach to Graphical Waterfall on: January 25, 2014, 09:40:40 am
Here is improved software interface.
http://www.youtube.com/watch?v=5fx199QESBk&feature=youtu.be
27  Using Arduino / Programming Questions / Re: Curl web page into a string for thermal printer on: January 22, 2014, 11:26:07 am
This is his greatness he answer to us..smiley
28  Using Arduino / General Electronics / Re: Circuit fails after 2nd power up on: January 16, 2014, 04:33:48 am
Check the Adapter ..might it be fried.. Is Adapter working?
29  Using Arduino / Programming Questions / Re: How to get one variable out of all values of an array on: January 13, 2014, 10:12:16 am
PaulS,
I agree to your approach of not spoon-feeding. I also appreciate your guidance though you are not writing code for us(offcourse for free of cost) but your guidance plays a major role in grooming of our programming skills and out-of-the-box analytical thinking.
I am great fan of yours.
Regards
30  Using Arduino / Interfacing w/ Software on the Computer / Re: Need help interfacing my Plotter with Processing on: January 13, 2014, 09:57:10 am
Paul,
Yes my bad.. every computer can smiley.. here is your informative reply
http://forum.arduino.cc/index.php/topic,39199.0.html
Pages: 1 [2] 3 4 ... 24