Show Posts
|
|
Pages: [1]
|
|
1
|
Using Arduino / Project Guidance / Re: What to use for a Light Barrier ?
|
on: October 08, 2012, 07:23:20 pm
|
|
This is a red laser, it's only the casing that is purple. Also, you can just buy them from a dollar store or whatever... I think that the photoresistor you got is perfect, there is still a difference between a laser beam shining on it and the ambient room light. If you didn't know, a photoresistor just changes the resistance of the current that passes through it depending on the lightning. So if you plug it in +5 volts, and measure the current that is exiting on the other side, by hooking it up to an Analog Input, you can get the quantity of light that is shining of it with digitalRead() function, which outputs a number from 0 (0v of 5v, lot of resistance = lot of light), to 1023 (5v of 5v, no resistance = no light at all) so you can set a threshold, so it takes a lot of light to trigger. To pull this value off, you can either:
-Hook up a pot that sets that threshold, so you turn it until it only detects the light from the laser beam, ideal if you plan to take it to different places, with more or less lightning for easy adjustment
or,
-Hardcode that value in your code, so it's kind of "permanent" (until you change it in the program). To do so, you send the photoresistor values thru serial and you listen to them while playing around to write down your values.
|
|
|
|
|
5
|
Using Arduino / Project Guidance / Re: Dymo LetraTag XR Interfacing w/ Leonardo
|
on: October 01, 2012, 08:40:28 pm
|
|
Now, I plan on having 19 N Channel mosfets, gate wired to my arduino, collector to a com and source to a pin on the keypad, so I would just have to trigger two outputs simultaneously to connect them, like a keypress.
My only concern is: is there a two-way flow capability on the drain-source when voltage is applied to gate (is it acting like a diode, the current can only go from d to s ? or it can go from s to d too?) ? I don't know that much on transistors, so a little help would be appreciated. Thanks!
EDIT: Got my answer, it acts like a diode.
|
|
|
|
|
7
|
Using Arduino / Project Guidance / Re: Dymo LetraTag XR Interfacing w/ Leonardo
|
on: October 01, 2012, 01:54:14 pm
|
can Analog inputs serve as outputs?
Yes, or with some diodes and charlieplexing, or with a serial->parallel chip  I don't think I am advanced enough for that... can Analog inputs serve as outputs?
Yes, all the I/O pins can be used as normal (i.e. non-PMW) digital inputs and outputs on all Arduino boards. Sorry for not specifying that in my initial reply. That's nice to know, so I could have a 20th pin that controls the servo to cut the paper, and use for example pin 19 and 20 to control the sevo. That seems good, thanks for your help!
|
|
|
|
|
9
|
Using Arduino / Project Guidance / Re: Dymo LetraTag XR Interfacing w/ Leonardo
|
on: October 01, 2012, 01:08:03 pm
|
|
ok, thanks for your reply, so I could note which keypress affect which pins, and build an array, buy 19 octocouplers and wire them to each pin and a com, when I activate two simultaneously, they get in contact and simulate the key. But how could I have 19 inputs on my leonardo? Charles
PS: I could also wire the thermal head and the stepper motor to the arduino like you said, which is a good idea, but I will be fine with only the default chip to handle the font and everything
|
|
|
|
|
10
|
Using Arduino / Project Guidance / Dymo LetraTag XR Interfacing w/ Leonardo
|
on: September 30, 2012, 10:44:07 pm
|
Hi, my name is Charles, I am a 15 years old guy who loves electronics. I own an Arduino Leonardo board, and I got the idea to interface it with a Dymo LetraTag XR label printer that I found for 20 bucks. So here is the main idea: 1-Connect the keypad with the Arduino, 2-Have software to make arduino issue keypresses to the LetraTag (for example: "H E L L O PRINT SHIFT+DELETE") 3-I'll have a little servo to push the blade to cut the paper, but that's not the deal now Here's my problem: I don't know anything about interfacing matrix keyboard and programming a clock to scan presses and etc.... So, If anyone has done that with a similar keyboard, or anyone that knows the principe and could explain it to me, You are welcome! Thanks, Charles Here are pictures of the device and the keypad: http://i.imgur.com/O3wCe.jpg http://i.imgur.com/bDyAa.jpg http://i.imgur.com/lhWHO.jpg
|
|
|
|
|