6/4/2013 - Free Wallpaper (and Mini Release)
5/29/2013 - Important: GiantITP Server Compromised
2/28/2013 - Update on Thumb
12/31/2012 - There's a New Comic
Frequently Asked Questions (FAQ)

Order of the Stick 894 The Last Room
Erfworld 163 The End of Book One
Erfworld Now at Erfworld.com!
RSS Feeds: OOTS

The Duke's Wolf, Part Four by Amber E. Scott
The Duke's Wolf, Part Three by Amber E. Scott
The Duke's Wolf, Part Two by Amber E. Scott

The New World, Part 9: Barbarians by Rich Burlew
The New World, Part 8: Gnomes by Rich Burlew
The New World, Part 7: Names and Cultures by Rich Burlew
Looking for the Gaming Articles?

 



Welcome back! Be sure you have read and understand the Forum Rules.


Go Back   Giant in the Playground Forums > Discussion > Friendly Banter
Register FAQ Members List Mark Forums Read End

Friendly Banter Hellos, goodbyes, and other casual conversation goes here. Especially if it doesn't fit better into one of the other forums.

Reply
 
Thread Tools
Old 10-30-2012, 03:49 PM   Top  -  End  -  #1
Deathslayer7
Ettin in the Playground
 
 
Join Date: May 2007
Location: 
Sin City
Default Help with Arduino (stepper motor and IR)

Hey guys, I'm using an Arduino Uno to program our IR sensor to our motor. Currently I have been using these to help me out:

http://learn.adafruit.com/ir-sensor/using-an-ir-sensor

http://learn.adafruit.com/ir-sensor/reading-ir-commands

I have managed to run both of those codes successfully (including the library add-on). But when I returned to the first link to show my partner, I was getting an array without pushing buttons on the IR remote. Even worse, I took out the IR receiver itself and I was still getting an array of codes. Does anyone know what might be wrong? I used pin 1 instead of 2 if that makes a difference.

Second,

I found a working motor code (below) using a driver to run the stepper motor. I need to integrate that code with the IR code (below). My question is where exactly do I need to put each bit of code?

Please note, I realize that for the code, it rotates it twice. I have gotten rid of rotate and rotatedeg separately to still get working codes. Though I do wonder, for a stepper motor, which one would be better? I am using this Arduino to push a TV wall mount in and out from the wall.

Thanks for any help.

Below are the codes:

Motor Code
Spoiler


IR Code
Spoiler
__________________
Not wearing your seat belt? See you soon!
Thanks to Kwarkpudding for this excellent avatar.

Quote:
Originally Posted by Lady Tialait View Post
This is perhaps the most amazing idea I have heard in eons. Thank you kind slayer of Death.
Deathslayer7 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 01:04 PM.



Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Usage of this site, including but not limited to making or editing a post or private message or the creation of an account, constitutes acceptance of the Forum Rules.