Show Posts
Pages: 1 [2] 3 4 ... 7
16  Using Arduino / Displays / Arduino Mini Pro 3.3v LCD? on: April 10, 2014, 08:34:11 am
I'm looking into some lower voltage options from the 5v Arduino Uno. I was looking at the Arduino Pro Mini @ 3.3v however, I was wondering if anyone knows anything in regards to a compatible LCD screen it doesn't have to be 16x2, I'm really just looking for an LCD that would be able to run from 3.3v minimum, and maybe like 4.18 max. If anyone has any ideas please let me know, Thank you!
17  Using Arduino / Displays / Re: DV-20208 on: March 26, 2014, 09:28:50 am
Floresta, you're correct, I was leaving pin 3 open. I jumped it to pin 1 and I'm now displaying. Thank you very much for the help my friend! I hope you're enjoying the WNY weather as much as I! LOL!!!
18  Using Arduino / Displays / Re: DV-20208 on: March 23, 2014, 06:39:26 pm
Thank you for the help, I have to wait until my son goes to sleep for me to work on it. This is the LCD I purchased (please see the attached link).

http://www.ebay.com/itm/Data-Vision-DV-20208-HD44780-compatible-20x2-5x7-dot-matrix-character-LCD-/351022284470
19  Using Arduino / Displays / DV-20208 on: March 23, 2014, 01:38:44 pm
I'm having some issues getting this LCD screen to work and I was not able to find much about this particular model so I figured I would give it a shot on the forum.
First let me advise this is the first time working with a LCD display. I recently picked up a DV-20208 (HD44780), not really thinking much of it because I know the Arduino Uno is compatible with the HD44780. When I hook it all up to the "Hello World" sketch for testing purposes I'm not getting anything on the display what-so-ever. Has anyone picked up this model in the past? Do you know if this is in fact compatible with the Arduino? Any help or guidance with this is much appreciated. Thank you in advanced for your help.   
20  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 30, 2012, 08:24:23 am
Please tell me you're not trusting firearm safety to your programming skills

When you put it that way, you make this project sound very unsafe! HAHAHA! Well, where my lack of skills are in programing, I'm very confident in my hardware skills. I have put a lot of thought into this project in terms of safety. First of all the sides are labeled, and when the project goes live the sides that will be in the line of fire will be red, so if your able to see the red, it clearly is in the wrong position. With the servo only being able to reach 180 degrees you have 180 degrees of safety. Also, the servo that controls the trigger has a main power safety on it, where there is no power going to it at all until the safety is released, via the IR signal followed by another signal to pull the trigger. This was a thought in the event of any kind of EMS noise, or in the event the trigger button was pushed on accident. Both run off of relays that have an LED so you know the constant state of the safety and the position of the trigger servo at all times and will be clearly visible from 20 feet away where the shooter will be positioned. This clearly can be very unsafe if not used properly, and I have been shooting firearms and practicing safety since I was 8 years old, I come from a background of law enforcement and was taught at a very young age. I'm very confident in my construction and the measures of safety that I took thus far. If there is any kind of issue what-so-ever, the firing pin will never see the firearm while in the unit. This is not a toy and believe me I'm well aware of that, I'm not a kid and I know safety is a priority, this is why I'm taking my time on the project and making sure that everything is 100%. At any point I see this to be too unsafe, it will never be live. But truly, thank you for showing concern about my safety, believe me I'm much more concerned, for it's my one life I live.
21  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 30, 2012, 02:05:02 am
Well, I have always enjoyed shooting guns. Back in 2006 I had a unfortunate accident (cleaning up tree debris after hurricane Katrinain New Orleans) and I lost my right index finger so I have a problem shooting smaller handguns. I'm building this "IR turret" for a .25 caliber handgun that has been collecting dust since my accident. Honestly, the only reason why I started this is because I was loosing interest in learning how to do programming by making LEDs blink. So, I went looking around the house for something to make that would be very rewarding at the end of the project. I stubbled accross my hand gun collection and said "a turret for my. 25 would be pretty cool". Now, a month and a half later this is where I'm at. If you want to give me your email address, I will send you some pictures and or videos of my progress thus far (in the AM). I have removed the firing pin from the gun so it's safer until I get the project done and I will re-assemble the gun and bring it out to our land in the sticks, stand a good safe distance (hence the IR), and bangoff some rounds! I can't tell you how the anticipation of that day is just eating at me now. It has become an addiction, working on this with every spare moment I have. Lol! I have learned more in the month and a half, since the start of this project than I have playing with LEDs for the 3 months prior.
22  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 30, 2012, 01:49:36 am
Yea, I was viewing some tutorials and reading through some blogs, fourms and webpages while I was working hard at work today, lol. I saw something in there that I kind of liked for the math part of it. I will post it in the AM though, if you don't mind me picking your brain a little more, could you tell me if something like this would work in a sketch like this and why or why not it would or would not work. I'm trying to learn as much as I can and people that I know with the acception of one person looks at me like I have 3 eyes when I talk about anything related to my project.

Again, I can't thank you enough for all your help and patients with me. You're AWESOME and I hope to absorbe enough knowladge to be proficient in programming, to help people in the future. I have no formal background in any kind of electronics. However, due to my interests in them, I have come a long way since 2007. I find it to be very satisfying that I am self taught and people like you have been giving me the guidance in new ventures since I have started working on desktop computers back then, to BGA welding, and todays Arduino/C Programming . If it wasn't for people like you, I wouldn't be able to have a very nice extra income monthly, or extend my hobbies like this. I truly am greatful for your help, more than I can express. Thank you for everything. If you ever have any questions regarding PCs or re-flowing/ re-balling BGAs please let me know, I work on everything from Tvs to portable devices and if you ever want to run something by someone please let me help you, as payment for helping me with programming.

My 4 month old son woke up so I'm going to have to have to get at you in the AM! Thanks again!
23  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 29, 2012, 10:34:47 pm
Well, I figured out why the PanServo was not working. It wasn't getting enough power. I hooked it up to an external power supply and it works just fine now. But, with the "if" statements that I have it's going all the way to one side with a single press of a button and then all the way to the other side with the other button, single pressed. I'm going to try and get the math down right on it so it will move 15 degrees every time I hit a button and maybe I will go nuts and program a swing in there along with a stop.
24  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 29, 2012, 12:17:13 pm
I took a look at the signal going to the servo with my o-scope and AWOL is 100% correct, I got a ton of noise on there. Now, when I reset the Arduino or I load the sketch it moves to the 120 degree position. then if I hit either directional buttons it will move to the 90 degree position. After that, I get no response from the servo. I don't know if this is from my poor code writing skills or the noise. I figure I can hook up an LM7805 with some caps to filter it out, however I don't know if that will do anything if it's because of my code as AWOL has claimed above.
25  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 29, 2012, 09:57:05 am
NICE! You know they don't make anything like they used to! lol! Good luck with that!!! I'm still plugging away over here, I think I might have figured this out... I'll post on it once I finish up what I'm doing to see if it will work. I'm crossing my fingers, praying to god, Buddha and Tom Cruse that this will work!

So, I got the Serial.print to read the "Are you here yet" and the directional IR signals!!!!! The servo however is not moving yet, but I'm getting there!

Code:
#include <IRremote.h>
#include <IRremoteInt.h>
#include <Servo.h>


Servo triggerservo;
Servo PanServo;

                
 int pos = 0;    
 int button = 7;   //<---- Nothing in pin (DO NOT USE PIN 7)
  
 const int irReceiverPin = 2;
 int Saftey =5;
 int RelayTrig = 4;
 int RelayLaser = 3;

 int PanServoVal;
 int PanServoMovement = (15);
 int PanServoPos = (0);
 
 IRrecv irrecv(irReceiverPin);
 decode_results results;

 
 void setup()
{
  triggerservo.attach(9);  
  PanServo.attach(10);
  
 pinMode(pos, OUTPUT);
 pinMode(button, INPUT);
 digitalWrite (button, LOW);
 
pinMode (Saftey, OUTPUT);
pinMode(RelayTrig, OUTPUT);
pinMode(RelayLaser, OUTPUT);
irrecv.enableIRIn();

Serial.begin(9600);
Serial.print("!!STARTED!!");

PanServo.write(PanServoVal);
}
 
 int on = 0;
 unsigned long last = millis();
 
 
 void loop()
{
  
    if (digitalRead(button) == LOW)

  for(pos = 0; pos < 90; pos += 90)   //
  {                                  
    triggerservo.write(pos);              
                
  }
  if (digitalRead(button) == HIGH)
  
  for(pos=90; pos>=0; pos-=90)    
  {                                
     triggerservo.write(pos);              
                                
                          
  }
{
  if (irrecv.decode(&results)) {    
    if (results.value == 0x20DFC23D) { //Menu Button: pulls/releases trigger only if saftey is off (LED on when released).
      if (millis() - last > 250) {
        on = !on;
        digitalWrite(RelayTrig, on ? HIGH : LOW);
                Serial.print(" TRIGGER ACTION ");
        
      }
      last = millis();
    }    
  }
  
  if (irrecv.decode(&results)) {    
    if (results.value == 0x20DF10EF) { //Power Button: Turns on/off the saftey on the trigger
      if (millis() - last > 250) {
        on = !on;
        digitalWrite(Saftey, on ? HIGH : LOW);
        Serial.print(" SAFTEY ACTION ");
      }
      last = millis();
    }    
  
  }
{
  if (irrecv.decode(&results)) {
    if (results.value == 0x20DF906F) { //Mute Button: Turns on/off the targeting laser.
    if (millis() - last > 250) {
        on = !on;
        digitalWrite(RelayLaser, on ? HIGH : LOW);
        Serial.print(" LASER ACTION ");
     }
      last = millis();
    }    
     if (irrecv.decode(&results))  {
  Serial.print("Are you here yet");
  
    if (results.value == 0x20DFC03F){
     PanServoVal = PanServoMovement + PanServoPos;
     PanServo.write(PanServoVal);
  Serial.print("20DFC03F WORKING (LEFT)");
 
    }
     if (results.value == 0x20DF40BF) {
      PanServoVal = PanServoMovement - PanServoPos;
      PanServo.write(PanServoVal);
  Serial.print("20DF40BF WORKING (RIGHT)");

  
    }    
    irrecv.resume();
}
}
  }
}
}

In the sketch above the "Are you here yet" is in there but I have taken that out because it is working and that line is coming up every time I hit a button. I found it to be annoying so I took it out...
26  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 29, 2012, 09:25:40 am
I think I'm making some headway.... Still working on it though. I'll update later.
27  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 29, 2012, 01:18:09 am
Yea, something is really screwed up with this. My other sketch isn't working at all once I add this to it I will continue my struggle and see what I can come up with on it. I really believe the problem lies within the if statements and the way it was set up. I have my other servo sketch running off of millis and I don't think you can add degrees in there once you use millis, it's either one or the other.

Well, now that I know the trick with the Serial.Print this should make life a little easier and not so much of a guess. Again, thank you everyone for your help thus far, have a goodnight or good morning, or good day depending on where you are! Jimbo, thanks a lot for the help brother, I would still be here pulling my hair out without man! Enjoy work, I'm going to get some sleep. I'll check back in the AM!
28  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 29, 2012, 12:57:46 am
My bright idea of putting it on the other sketch didn't work either. I will have to look this over in some detail in the morning and see if I can find where I went wrong. I don't think the if statements are correct. This is the entire sketch with all the other working things on there along with what I have added in this sketch. It's a giant mess, but it does work... Well other than this.

Code:
#include <IRremote.h>
#include <IRremoteInt.h>
#include <Servo.h>


Servo triggerservo;
Servo PanServo;
             
 int pos = 0;     
 int button = 7;   //<---- Nothing in pin (DO NOT USE PIN 7)
 
 const int laserButton = 8; 
 const int irReceiverPin = 2;
 int Saftey =5;
 int RelayTrig = 4;
 int RelayLaser = 3;
 
 int PanServoPos = (90);
 int PanServoMovement = (15);
 
 IRrecv irrecv(irReceiverPin);
 decode_results results;

 
 void setup()
{
  triggerservo.attach(9); 
 pinMode(pos, OUTPUT);
 pinMode(button, INPUT);
 digitalWrite (button, LOW);
 
  PanServo.attach(10);
 PanServo.write(0);
 Serial.begin(9600);
 Serial.print("STARTED");
 
 pinMode (Saftey, OUTPUT);
 pinMode(RelayTrig, OUTPUT);
 pinMode(RelayLaser, OUTPUT);
 irrecv.enableIRIn();
}
 
 int on = 0;
 unsigned long last = millis();
 
 
 void loop()
{
 
    if (digitalRead(button) == LOW)

  for(pos = 0; pos < 90; pos += 90)   //
  {                                   
    triggerservo.write(pos);               
                 
  }
  if (digitalRead(button) == HIGH)
 
  for(pos=90; pos>=0; pos-=90)      //-----> Original
  {                               
     triggerservo.write(pos);               
                               
                           
  }
{
  if (irrecv.decode(&results)) {   
    if (results.value == 0x20DFC23D) { //Menu Button: pulls/releases trigger only if saftey is off (LED on when released).
      if (millis() - last > 250) {
        on = !on;
        digitalWrite(RelayTrig, on ? HIGH : LOW);
      }
      last = millis();
    }   
  }
 
  if (irrecv.decode(&results)) {   
    if (results.value == 0x20DF10EF) { //Power Button: Turns on/off the saftey on the trigger
      if (millis() - last > 250) {
        on = !on;
        digitalWrite(Saftey, on ? HIGH : LOW);
      }
      last = millis();
    }   
   
  }
{
  if (irrecv.decode(&results)) {
    if (results.value == 0x20DF906F) { //Mute Button: Turns on/off the targeting laser.
    if (millis() - last > 250) {
        on = !on;
        digitalWrite(RelayLaser, on ? HIGH : LOW);
     }
      last = millis();
     
     
    }   
   
}
}
  }
   if (irrecv.decode(&results))  {
  Serial.print("Are you here yet");
    if (results.value == 0x20DFC03F){
     PanServoPos = PanServoMovement + PanServoPos;
     PanServo.write(PanServoPos);
  Serial.print(PanServoMovement);
  Serial.print("20DFC03F WORKING (LEFT)");
  Serial.println(PanServoPos);
    }
     if (results.value == 0x20DF40BF) {
      PanServoPos = PanServoMovement - PanServoPos;
      PanServo.write(PanServoPos);
  Serial.print(PanServoMovement);
  Serial.print("20DF40BF WORKING (RIGHT)");
  Serial.println(PanServoPos);
   
    }     
  }
   irrecv.resume();
}


29  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 29, 2012, 12:47:31 am
Opps... Sorry about that. However, I'm getting the same results, nothing.

Code:
/*Help from JimboZA, AWOL, WildBill & PeterH from Arduino Fourm. Sample sketch provided by JimboZA  */
#include <Servo.h>
#include <IRremote.h>
#include <IRremoteInt.h>


Servo PanServo;
int PanServoPos = (90);
int PanServoMovement = (15);  //how many degrees per move

int irReceiver = 2;
/*int IROutput = 10;*/

IRrecv irrecv(irReceiver);
decode_results results;

void setup() {
 /* pinMode (IROutput, OUTPUT);*/
  PanServo.attach(10);
  PanServo.write(0);
  Serial.begin(9600);
  Serial.print("STARTED");

  irrecv.enableIRIn();
}
   
void loop() {
 

  if (irrecv.decode(&results))  {
  Serial.print("Are you here yet");
    if (results.value == 0x20DFC03F){
     PanServoPos = PanServoMovement + PanServoPos;
     PanServo.write(PanServoPos);
  Serial.print(PanServoMovement);
  Serial.print("20DFC03F WORKING (LEFT)");
  Serial.println(PanServoPos);
    }
     if (results.value == 0x20DF40BF) {
      PanServoPos = PanServoMovement - PanServoPos;
      PanServo.write(PanServoPos);
  Serial.print(PanServoMovement);
  Serial.print("20DF40BF WORKING (RIGHT)");
  Serial.println(PanServoPos);
   
    }     
  }
  irrecv.resume();
}
30  Using Arduino / Project Guidance / Re: PWM Servo via IR on: June 29, 2012, 12:36:25 am
On my other sketch it works fine so this is what I think I'm going to do, I will take the setups and all the if statements and put that into my sketch that this belongs to anyways (that the IR is working with no problems) and see if I can get it working in there.
Pages: 1 [2] 3 4 ... 7