Author Topic: Inspire Clone Electronics  (Read 64153 times)

Offline CdRsKuLL

  • Administrator
  • Master Builder
  • *****
  • Posts: 817
  • Karma: +50/-3
  • The fat dude
    • View Profile
Re: Inspire Clone Electronics
« Reply #15 on: August 11, 2015, 11:23:06 PM »
Hi, the esc gets it power from the main power inputs so no need to run the positive wire up... Not sure on opto esc's but mine seems to work OK just using the signal wire.  If they do have a bec built in you could run a single one up if you want.
If you use any of my designs and can afford to donate to help pay for this site and the filament, or just buy me a beer then please click on the link below, enter an amount and donate what you want.


Offline Eltrocha

  • Junior Designer
  • **
  • Posts: 58
  • Karma: +1/-0
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #16 on: August 12, 2015, 11:29:03 AM »
What about flight times. How much are you getting on a single battery?

Offline jkralinddd

  • Drinks Maker
  • *
  • Posts: 8
  • Karma: +1/-0
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #17 on: August 16, 2015, 08:49:32 PM »
Any progress on the diagram for the microswitch Arduino wiring?  Can't seem to get this to function properly.  I have both pins from microswitch N.C. wired to Arduino 5v out.  Both pins from microswitch N.O. wired to Arduino ground and C. to respective top bottom positions.  I think this is correct but maybe I'm missing something because I can't get it to workk properly.


Thank you!

Offline CdRsKuLL

  • Administrator
  • Master Builder
  • *****
  • Posts: 817
  • Karma: +50/-3
  • The fat dude
    • View Profile
Re: Inspire Clone Electronics
« Reply #18 on: August 16, 2015, 09:10:02 PM »
You could have play with the code.. and change the state it's looking for.. ie..

current code -
 if (msupstate == LOW){
      if (movedown){myservo.write(pos);}
    flashtime = 200;
    flashled();
    } else {
      movedown = false;
      myservo.detach();
      turnledon();
    }

Change to

 if (msupstate == HIGH){
      if (movedown){myservo.write(pos);}
    flashtime = 200;
    flashled();
    } else {
      movedown = false;
      myservo.detach();
      turnledon();
    }


Also change the LOW to HIGH here;


if (msdownstate == LOW){

Let me know if that helps...

If the switches are working back to front ie.. when you press the bottom one it stops moving up then swap the pins around in the code;


const int msdown = 5;
const int msup = 4;

becomes



const int msdown = 4;
const int msup = 5;


Hope this helps
« Last Edit: August 16, 2015, 09:11:51 PM by CdRsKuLL »
If you use any of my designs and can afford to donate to help pay for this site and the filament, or just buy me a beer then please click on the link below, enter an amount and donate what you want.


Offline jkralinddd

  • Drinks Maker
  • *
  • Posts: 8
  • Karma: +1/-0
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #19 on: August 17, 2015, 03:32:31 AM »
Thanks for getting back, I'll give this a try.

Offline jkralinddd

  • Drinks Maker
  • *
  • Posts: 8
  • Karma: +1/-0
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #20 on: August 17, 2015, 03:55:01 AM »
FYI, I began this project to try out a 3D printer I had just purchased.  I am new to 3D printing and this project seemed like a good test of making parts and trying to make something functional.  Knowing nothing about quads or 3D printers I dove right in. Needless to say I am a little overwhelmed.  I believe the Arduino is programmed properly and the wires seem to be correct for the leg lift.  Is it possible there is something I am missing with the assignment to the switch I am using with my transmitter?  Just a thought.  I also was unaware there is a Tower Pro MG995 and a Tower Pro MG995 360 which I did not have the correct one.  I hacked the Tower Pro by removing the limit pin on one of the gears, removed the plastic around the potentiometer so the gear spins free of the potentiometer and wired in two 2.2k resistors and it keeps spinning around now.  So I think the servo is ok.  I have no clue how to use my transmiitter yet and was thinking I am doing something wrong as far as the signal for direction of travel goes when I flip the switch.  Could this be an issue?

Offline CdRsKuLL

  • Administrator
  • Master Builder
  • *****
  • Posts: 817
  • Karma: +50/-3
  • The fat dude
    • View Profile
Re: Inspire Clone Electronics
« Reply #21 on: August 17, 2015, 08:18:16 AM »
Hi, you can test to see if your transmitter is working by plugging the servo directly into the channel you have your TX programmed to. So if it's a two position switch then when you power everything up your servo should rotate one way. When you move the switch to the other position then your servo should rotate the other way.

Which transmitter do you have and we should be able to help you double check everything and get it working :-)
If you use any of my designs and can afford to donate to help pay for this site and the filament, or just buy me a beer then please click on the link below, enter an amount and donate what you want.


Offline jkralinddd

  • Drinks Maker
  • *
  • Posts: 8
  • Karma: +1/-0
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #22 on: August 17, 2015, 02:58:54 PM »
Thanks for your help, nothing was wrong with your code.  As you have previously advised the updown position needed to be changed in the Arduino code due to mixing of wires (my error) when routing wires on build.  Thanks again for your help.


Dan

Offline Eltrocha

  • Junior Designer
  • **
  • Posts: 58
  • Karma: +1/-0
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #23 on: August 21, 2015, 03:29:46 AM »
Steve is it possible for you to make a diagram of the arduino ?

Thanks

Fede

Offline rcfiddy1

  • Designer
  • ***
  • Posts: 161
  • Karma: +5/-1
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #24 on: August 26, 2015, 09:53:09 PM »
Can you help me out. I'm new to the Arduino stuff. I got it working with normal leds but would rather use a pwm signal to operate my led driver instead of the 4 outputs to leds. any chance you can help me out with a modified code?

Offline CdRsKuLL

  • Administrator
  • Master Builder
  • *****
  • Posts: 817
  • Karma: +50/-3
  • The fat dude
    • View Profile
Re: Inspire Clone Electronics
« Reply #25 on: August 27, 2015, 07:45:35 AM »
Hi,

Fede, there is a diagram on the first page.. Let me know what more you need.

Rcfiddy1
. no probs, I've not seen one of these LEDs before. How do they work?  Txs
If you use any of my designs and can afford to donate to help pay for this site and the filament, or just buy me a beer then please click on the link below, enter an amount and donate what you want.


Offline rcfiddy1

  • Designer
  • ***
  • Posts: 161
  • Karma: +5/-1
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #26 on: August 27, 2015, 09:58:40 AM »
They are great, extremely bright. The led driver can power up to 10 of these once, so I will run 1 driver and 4 leds. 2-red in front and 2-green in rear. I can take a pwm signal from the arduino pin 9 to the driver board PWM and it should blink them just like the original led code. I might just need to modify the code for the pwm analog write. Still trying to figure it out.

Offline CdRsKuLL

  • Administrator
  • Master Builder
  • *****
  • Posts: 817
  • Karma: +50/-3
  • The fat dude
    • View Profile
Re: Inspire Clone Electronics
« Reply #27 on: August 27, 2015, 03:43:22 PM »
Yep, will need to rewrite the LED sub so it has analogWrite(ledPin, Value);

You can try replacing the turnledoff and turnledon with the below;



 void turnledoff() {
   analogWrite(led4, 0);
  }
  void turnledon() {
   analogWrite(led4, 255); 
}


might also need to get rid of the set up line - pinMode(led4, OUTPUT);         // Assign output mode to pin for LED 4



Let me know if this works.


« Last Edit: August 27, 2015, 03:54:31 PM by CdRsKuLL »
If you use any of my designs and can afford to donate to help pay for this site and the filament, or just buy me a beer then please click on the link below, enter an amount and donate what you want.


Offline rcfiddy1

  • Designer
  • ***
  • Posts: 161
  • Karma: +5/-1
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #28 on: August 28, 2015, 10:11:32 PM »
Thanks a million....Its working..I just needed tp switch the analogWrite to 255 for off and 0 to on.

Offline Eltrocha

  • Junior Designer
  • **
  • Posts: 58
  • Karma: +1/-0
  • rookie
    • View Profile
Re: Inspire Clone Electronics
« Reply #29 on: August 29, 2015, 01:45:22 PM »
Steve I don't get the part where you want me to connect the signal in from Rx and then to the receiver. Any help would be highly appreciated.

Thanks