Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Syntax & Programs / Re: Adding ON/OFF control & temp display to PID SCRIPT on: June 30, 2009, 04:58:08 pm
That code could still trigger multiple events due to contact bouncing. I would suggest setting a minimum elapsed time before letting the button trigger another event. For example:
unsigned long lastTime;
  if (lastTime+250<millis()) {

That way, you can click the button once, and it'll increase one degree, or hold it down to increase at a rate of 4 per second. With a bit more coding, you could have it count how long the button stays down, and after say, 2 seconds, have it increase the rate of change.
2  Forum 2005-2010 (read only) / Syntax & Programs / Re: Sub milli-second timing on: December 28, 2008, 09:44:45 pm
Thanks for the code! I plan to use it to control multiple servos without having to use delayMicroseconds() for each one.
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Ping-Servo problem on: June 24, 2009, 01:48:43 pm
I would suggest using a specific value for the servo based on the distance.

For example:
if (inches >= 3) {
   digitalWrite (ledPin, HIGH);
 else {
   digitalWrite (ledPin, LOW);

You might also try putting in an even longer delay than the suggested 4 ms. The servo library may react badly to having the write commands come in too quickly.
4  Forum 2005-2010 (read only) / Interfacing / Re: How to connect a Spektrum satellite receiver? on: April 16, 2009, 11:46:21 am
I trust you've grounded the receiver and the Arduino together? That's vitally important. Without that ground, you will never receive anything at all.
5  Forum 2005-2010 (read only) / News / Re: TellyMate Shield - TV output for Arduino on: June 13, 2009, 11:31:11 am
I love the idea of the TellyMate Shield. I may need to buy one, but I've got one question... What about adding an LM1881 or LMH1980 sync separator to allow the TellyMate to overlay on top of pre-existing video? I'm honestly not sure how hard that would be to do, but it would add a whole new world of useful applications to the TellyMate. For example, live GPS overlay over a video signal.
6  Forum 2005-2010 (read only) / News / Re: Processing Front-End for the PID Library on: June 13, 2009, 11:33:23 am
Wow! I've been fascinated by PID controllers ever since I found out what they were, but have been scared off by the math. This looks like a really useful piece of work. I'll have to find a project to use it in!
7  Forum 2005-2010 (read only) / News / Re: Cheap scope with LCD on: July 06, 2009, 12:50:14 pm
I bought the JYE scope from Seeedstudio a couple months ago, and I've been quite happy with it. I haven't had time to get in depth with it, but I'm planning to use it to capture IR codes. For the money, it's a great tool.
Pages: [1]