Show Posts
Pages: 1 ... 19 20 [21] 22 23 ... 30
301  Using Arduino / Project Guidance / Re: Read five rotary encoders on: September 21, 2011, 01:09:46 pm
Ok, I see my issue. That makes much more sense. However still that shift in function took a good couple tenths of a second or so, so it still seems like it would have been a problem. Is that where interrupts come in?
302  Using Arduino / Project Guidance / Re: Read five rotary encoders on: September 21, 2011, 01:01:03 am
Hmmm... maybe I just don't really know what I'm doing well enough. I would use a blink without delay sort of thing to multiplex, so it would spend some amount of time just scanning through digits, in this case, then every so often jump out to do whatever else, like check time or something. Is that not the correct way of doing it? My problem would be that every time I took a pause from multiplexing, it would literally pause long enough to be noticeable.

Pseudo code:
Code:
loop{
   if(100 milliseconds has gone by){
   call shiftin fucntion;
   do whatever else;
   }
display number for 1st digit;
delayMicroseconds(50);
display number for 2nd digit;
delayMicroseconds(50);
etc;
}

I would get a pause every 100 milliseconds. I have not worked with interrupts, is that the key i am missing here? Here is my original thread about it.


Anyway, I'm still interested in the rotary encoders. I would like to save pins by multiplexing them, will that create additional issues with filtering out the bouncing?
303  Using Arduino / Project Guidance / Re: Looking for circular bar graph on: September 20, 2011, 07:48:23 pm
Nope, they emailed back and the only info they would give me was that they don't have them in stock, they would need to fabricate them if I bought them.

I think I'll just go with a regular 10seg bar graph or maybe attempt to fashion my own... Probably just go with the rectangular one though : /

Any additional help is still appreciated!
304  Using Arduino / Project Guidance / Re: Read five rotary encoders on: September 20, 2011, 07:41:48 pm
The shiftin function took a long time. So whenever I chose to call it, all my multiplexing would halt for a fraction of a second. Just long enough for it to be noticeable. It was even more of an issue with momentary buttons because I had to call it so often. I wasn't using SPI so maybe that was my problem.
305  Using Arduino / Project Guidance / Re: Read five rotary encoders on: September 20, 2011, 06:16:40 pm
Ok cool I just have a few questions... It looks to me that this method will read all the encoders at once, even if moving at the same time. Which is good. Correct me uf that isn't the case.

Next, I will be multiplexing the bar graphs that correspond to each encoder/pot so I can't have any lag when reading them. Will that be an issue? I don't have a ton of experience but fir instance I found that shiftIN registers mess up multiplexing a lot. Will I have this issue with the 74HC138?

What is a 74HC138? Is it anything like a 595? And again, will I have lag issues?

They will be hand turned so I can't imagine more than two at a time being turned. What are my options for dealing with bounce?

Thanks
306  Using Arduino / Project Guidance / Read five rotary encoders on: September 20, 2011, 05:08:25 pm
I'm working on a project where I'd like to read five rotary encoders at once. Is that's going to cause a lot of trouble? How can I do this?

This is the encoder I wish to use:
http://www.bourns.com/data/global/pdfs/PEL12D.pdf

For my project, I will be using the five encoders to control five of the pots on one of those six channel digital pots. The reason I need digital is that there will be presets to create and load. This is pretty much the entire point of the project.

Thanks
307  Using Arduino / Project Guidance / Re: Looking for circular bar graph on: September 20, 2011, 03:38:14 am
Good idea. I sent them an email to see if they could help me locate a place to buy from. In the mean time I'd appreciate any more advice.
308  Using Arduino / Project Guidance / Looking for circular bar graph on: September 19, 2011, 11:17:13 pm
I'm looking for a circular bar graph to go around a rotary encoder. I've seen this sparkfun one, and it's nice and all, but it's too expensive as I need five. Plus I don't even need it to be so elaborate.

So then I found this one(Hi-Eff Red). And it's absolutely perfect. I emailed them and it's only $3.50 each. But I have to order 500. And I can't find them anywhere else. Nor can I find anything even similar anywhere else.

It's like the two I linked are the only ones in existence. I even found a datasheet for one of those claiming there's a blue one, but I haven't seen it. I've tried Newark, Mouser, Digikey, Tayda, eBay, Sparkfun and Google, but no more circular bar graphs. I know I could just stick a bunch of LED's in whatever configuration I want but I want my final product to look nice and I don't really have any way to form my own housing beyond holes in a project box. Can anyone help me out?

Thanks.
309  Using Arduino / Project Guidance / Re: Sending High/Low over radio on: September 15, 2011, 02:41:43 pm
So with those wireless light switches, or a wireless doorbell they have to be sending a tone for low all the time they aren't sending high? Or am I not understanding right. Forgive me, I'm just trying to understand.

oh it's sending a code of high and low... I get it. thanks.
310  Using Arduino / Project Guidance / Sending High/Low over radio on: September 15, 2011, 01:56:02 am
I want to send a high low signal over radio waves... Or I guess just a high. Whenever I ask about it I get referred to sparkfuns radio transmitter and receivers. The thing is I don't need to send any fancy info. Just a default to Low and send a High signal when needed. Can I do this more simply than with one of those sparkfun transmitters?

I'm thinking for example those remote outlet switchers that you plug a lamp into and they have a one button remote than simply toggles it on and off. That's how simple im looking for.

Thanks.
311  Using Arduino / Sensors / Re: Detecting human presence - LMI 878 IR detector on: September 13, 2011, 05:29:16 pm
I ended up getting a panasonic pir sensor that has everything integrated into the tiny lens package. It works perfectly but im a little bummed they are $10 each. I was going to look into building it myself with just the sensor, lens, and try to make or buy the board myself for cheaper but I don't know how much that would save me in the long run. I might just deal with the price tag for this massive amount of convinience.
312  Using Arduino / Project Guidance / Re: Need Help With Stage Lighting Set Up! on: September 03, 2011, 03:03:36 am
I'm a newb myself but I've put a bit of thought into an idea very similar. Your first problem is that each bulb acting independently(trailing to the end) would need it's own relay. Even if you made each strand match eachother that's still a lot if relays. You might want to consider how you could do it with LEDs and make things immensely easier on yourself.
313  Using Arduino / Project Guidance / Re: Resistors for this PIR sensor on: September 01, 2011, 03:18:15 pm
I just figured hooking it up to the analog would tell me how high the high was and how low the low was so I could be sure it wasn't giving me a signal that could become confused.

The resistor to the digital pin was just because I was afraid to fry something and they showed it on the data sheet.

I'll use the 20k to ground if you say that's how it should be done. Thanks.
314  Using Arduino / Project Guidance / Resistors for this PIR sensor on: September 01, 2011, 03:43:11 am
So I got this Panasonic PIR sensor(EKMC1601113) and I was super relieved at how easy it was to get working but now I want to be sure I'm doing it as well as possible. As a digital input it works perfectly and as analog it seems to go between 0 and 1000. That seems pretty close to both ends like I would imagine it should be but I still want to be sure I'm doing it right. I'm using a 100kohm resistor to pull down to ground and a 10kohm resistor to connect to the arduino inputs. I pretty much just guessed there, is there a more efficient way of deciding those values?

thanks
315  Using Arduino / Project Guidance / Re: Slow discharge, bad for atmega328? on: July 27, 2011, 03:50:05 am
Excellent, thank you
Pages: 1 ... 19 20 [21] 22 23 ... 30