Show Posts
Pages: [1]
1  General Category / General Discussion / Re: Please help me with building a paper tape reader (punched tape) on: March 23, 2012, 11:06:12 am
I've done a scan by hand, so it's not very aligned, but if I decide to do it via image decoding, I will build some kind of rail to scan it alligned.
This is the scanned image,
http://cdn.anonfiles.com/1332518421172.jpg
although I still don't understand how to decode images with processing after I read through the site.

Please tell me guys, how would it be easier to write the program, via the arduino or via processing?
Even if I do it with the arduino, I think that the mechanical way is easier, because I read digital input, without the need to multiplex the analog inputs.
2  General Category / General Discussion / Re: Please help me with building a paper tape reader (punched tape) on: March 22, 2012, 09:54:14 am
Here's the picture, sorry for the quality, but I couldn't find my camera.


@hellonearthis
Yes, the 9th hole is the timing hole, the tape is 2,5cm wide
I want to build a reader.
I could scan the tape, but I don't know how to decode the picture.

@cr0sh
It's a CNC programm tape.
I think, the data is encoded in 7 bit ASCII with the 8th bit being parity, based on my small research about punched tapes, however I don't really understand the encoding until now, I will have to search for it.
The problem with scanning is the same thing: how?
I found somebody who has built a paper tape reader, but he is selling it quite expensive:
http://retropcdesign.com/forums/showthread.php?threadid=6
I have asked some people who worked with tapes, what they are encoded in but they haven't replied yet.
Until then, I would want to build the hardware.

@retrolefty
It is a way to do it, but I think it is overcomplicated, to use IR diodes, because of the need to pulsate IR diodes.

@justone
Yes, it is a one-time read, and used readers are expensive too.
I do not know any cnc shop located nearby.
I live in Satu Mare, Romania: http://g.co/maps/z2x24
Every Company that used paper tape readers, has either sold them or they were thrown away.

@MartinH
It is a possibility to make it via metal surface contact, but I don't know how to write the code, so that It reads characters indifferent from speed, because I want to move it by hand.
Buying a used printer would cost...

@Grumpy_Mike
It would be really great to make it as cheap as possible, because I need only a one-time scan.
I don't know how I could decode the video feed.

Thanks guys for the quick answers smiley
3  General Category / General Discussion / Please help me with building a paper tape reader (punched tape) on: March 20, 2012, 03:32:57 pm
Hi,
I was in desperate search for a circuit diagram, to build a paper tape reader until I thought, the best way to do it was with the Arduino.
I need to read a paper tape of 8+1 holes(I'll explain in a minute).
I have been experimenting with my Arduino Diecimila, but nothing serious.
My problem is, that I need to decode this paper tape, that is around 980 characters long, to enter the program in a CNC machine via a laptop; actually I need to have a text document with the decoded text.
The Arduino needs to read the 8 holes (coded character) and has one more hole, that could show the stability of the data while reading it,
I mean if you read it (via light) you have data if the sensor is between two holes, these being close to each other.
This means that the algorithm has to verify if the data is stable, then decode the bits into letters, and write it in the serial monitor.
I really don't know how I should read the bits from the paper tape, and how to read the characters, if i pull the tape through the reader.
If it checks for the last letter not to be the same as the read one, it will ignore the repeated characters in the program.
Thank you!
4  Using Arduino / Displays / Re: problem with connecting 20x4 LCD to arduino on: October 22, 2011, 04:06:10 am
how can I wire it up with 8 lines?
5  Using Arduino / Displays / Re: connecting 20x4 LCD to arduino on: October 21, 2011, 12:41:57 pm
I checked the connections 10 times. Everything is ok. The potentiometer was connected fine, but even with Vo connected to ground does not work. Without the backlight I can't see anything, but with backlight I can see hardly the the boxes(caracter) but they are very light grey.
6  Using Arduino / Displays / problem with connecting 20x4 LCD to arduino on: October 21, 2011, 07:21:42 am
Hi,
I'm new to programming and yesterday I began with LCD-s.
I have a 20x4 LCD: http://www.powertipusa.com/pdf/pc2004a.pdf
I connected it via the guide at http://arduino.cc/en/Tutorial/LiquidCrystal
I changed in
Code:
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}
the
Code:
lcd.begin(16, 2);
to 20,4
When I powered it up it does not dispay anything. The backlight is working fine, but no text.
Do I have to change anything else?

Please help me.

Thanks, Kevin.
7  Topics / Robotics / Re: 1 photoresistor 2 leds (sorry for my english) on: March 09, 2011, 08:08:01 am
I need somethig like this:


Code:
int photoIn = 1;
int led1 = 11;
int led2 = 12;
int value = 0;
int setPoint = 350;

void setup()
{
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
}
void loop() {
  value = analogRead(photoIn);

  if (value < setPoint){
    delay(500);
    if (value < setPoint){
      digitalWrite(led1,HIGH);
      digitalWrite(led2,LOW);
      delay(1000);
      digitalWrite(led1,LOW);} 
   
    else{digitalWrite(led2,HIGH);
      digitalWrite(led1,LOW);
      delay(1000);
      digitalWrite(led2,LOW);}
 
     }
else{
      digitalWrite(led1,LOW);
      digitalWrite(led2,LOW);
       }
   
}
8  Topics / Science and Measurement / Re: 1 photoresistor 2 leds (sorry for my english) on: March 05, 2011, 12:11:57 pm
is still not working...
9  Topics / Science and Measurement / Re: 1 photoresistor 2 leds (sorry for my english) on: March 05, 2011, 11:10:33 am
I gave an example i don't know how to programm it right...
10  Topics / Science and Measurement / 1 photoresistor 2 leds (sorry for my english) on: March 05, 2011, 06:35:16 am
Hi,
I am making a school project until the 14th, but i am new with programming.
A photoresistor controlls the leds. If i place my hand over the photoresistor, led2 goes on.
If I cover it, but then remove my hand, led1 goes on.

PLEASE HELP ME!

task:
1.read the photoresistor
2.wait 0,5 seconds
3.read the photoresistor again

a)if the light that reaches the photoresistor is interrupted for a short time, set led1 high;delay(1000);set led1 low
b)if the light that reaches the photoresistor is interrupted for a long time, set led2 high;delay(1000);set led2 low

=>that means: a)if i move my hand once over it, set led 1 high
b)if i cover it, set led 2 high

I need a programm that looks like this:

Quote
int photoIn = 1;
int led1 = 11;
int led2 = 12;
int setPoint = 350;

void setup()
{
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
}
void loop() {
  Value = analogRead(photoIn);
  
  if (Value < setPoint;
       delay(500);
      Value > setPoint;)
  {
    digitalWrite(led1, HIGH);
     delay(1000)
    digitalWrite(led1, LOW);
  }

  if (Value < setPoint;
       delay(500);
      Value < setPoint;)
  {
    digitalWrite(led2, HIGH);
     delay(1000)
    digitalWrite(led2, LOW);
  }


11  Topics / Robotics / 1 photoresistor 2 leds (sorry for my english) on: March 05, 2011, 06:34:36 am
Hi,
I am making a school project until the 14th, but i am new with programming.
A photoresistor controlls the leds. If i place my hand over the photoresistor, led2 goes on.
If I cover it, but then remove my hand, led1 goes on.

PLEASE HELP ME!

task:
1.read the photoresistor
2.wait 0,5 seconds
3.read the photoresistor again

a)if the light that reaches the photoresistor is interrupted for a short time, set led1 high
b)if the light that reaches the photoresistor is interrupted for a long time, set led2 high

=>that means: a)if i move my hand once over it, set led 1 high
b)if i cover it, set led 2 high

I need a programm that looks like this:

Quote
int photoIn = 1;
int led1 = 11;
int led2 = 12;
int setPoint = 350;

void setup()
{
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
}
void loop() {
  Value = analogRead(photoIn);
  
  if (Value < setPoint;
       delay(500);
      Value > setPoint;)
  {
    digitalWrite(led1, HIGH);
     delay(1000)
    digitalWrite(led1, LOW);
  }

  if (Value < setPoint;
       delay(500);
      Value < setPoint;)
  {
    digitalWrite(led2, HIGH);
     delay(1000)
    digitalWrite(led2, LOW);
  }


Pages: [1]