Model Boat Mayhem

Technical, Techniques, Hints, and Tips => Microprocessor control => Topic started by: timgarrod on February 03, 2018, 10:23:10 pm

Title: Home Made PCB Board
Post by: timgarrod on February 03, 2018, 10:23:10 pm
Always wanted to try this as my veroboard always looks messy.
Took a couple off goes (plus printing on off in reverse in error  :} ), but finally cracked it one released one of the terminals was to near a capacitor so had to twist it abit.

was funny designing the board as kept hitting dead end with the tracks (it reminded me of playing pipedreams years ago).

Title: Re: Home Made PCB Board
Post by: Stavros on February 03, 2018, 10:31:18 pm
That to my eye and I know naff all about what you have built looks Darned good  O0 O0 O0 O0


Pipe dreams YUP that was a good frustrating game



Dave
Title: Re: Home Made PCB Board
Post by: timgarrod on February 03, 2018, 11:07:51 pm
Thanks Dave,

its to replace the board for my tug boat. really pleased with it.
it controls the Leds, power to the smoking unit and controls the fan speed to match the motor.

lost to many hours to the game too lol

Title: Re: Home Made PCB Board
Post by: Stavros on February 03, 2018, 11:11:56 pm
Is this one of the Arduno(if thats how you spell it)boards that you have been developing and if so how do you control it form your transmitter.....OH PLEASE when you answer this do it in simple terms....you are dealing with a Welshman ...careful


Dave
Title: Re: Home Made PCB Board
Post by: timgarrod on February 03, 2018, 11:18:18 pm
Yep thats it. once you got the basics they are really handly and come into there own in a model.

even if it just for turning on leds. 

this is part of what its controlling https://www.youtube.com/watch?v=EsbWWbqPQPI (https://www.youtube.com/watch?v=EsbWWbqPQPI)

the best thing about the Arduino is there so many people willing to help out if stuck or needing help.



Title: Re: Home Made PCB Board
Post by: warspite on February 04, 2018, 10:16:59 am
Pity you don't have a letraset - 1 or 2mm high to identify on the underside what's on the topside in case you need to retrace a fault in the future, lol
Title: Re: Home Made PCB Board
Post by: timgarrod on February 04, 2018, 10:46:12 am
did think about it, might do it on another one i make.

just realised, i should of but another two fet on it to control the two water pumps instead of esc.  doh!.

Title: Re: Home Made PCB Board
Post by: Brian60 on February 04, 2018, 05:34:00 pm
Liking that Tim, take a look at this schematic I'm working on in Fritzing.

 Arduino nano to two shift registers, to rather a lot of mosfets %% All this to control the multitude of led's I have installed, we've discussed this on the arduino forum and I think this is my best way forward. The mosfets are because I have linked leds together and their total current draw is greater than the outputs of any of the arduino boards.

Now all I have to do is finish it off and then turn it into a pcb :}
Title: Re: Home Made PCB Board
Post by: The Old Fart on February 04, 2018, 08:09:06 pm
have you thought of addressable leds?

3 wires for as many leds as your'll ever need
Title: Re: Home Made PCB Board
Post by: timgarrod on February 04, 2018, 08:12:08 pm
cheers Brian,

i've got mine wired up so the ardiuno is only powering the mosfets gates. That way they should handle alot more currents(thats my understanding but might be wrong  {-) ) .

Sorry Dave forgot to answer your question about how its controlled.

basicly there's a template file to read up to 4 rc channel inputs. Think c3p0 posted it.

then to turn leds on for example you would enter something like this into the void loop in the template.
RC_CH3  would be the input from the receiver to arduino. the number would be the signal. normally that would be 1000ms to 2000ms.


void loop(){

  if (rc_values[RC_CH3] > 1800) // leds on
    {
     digitalWrite(poww, HIGH);
   }
 
 if (rc_values[RC_CH1] < 1800) // turn leds off
   {
      digitalWrite(poww, LOW);
   }

hope that makes sense. took me a long time to figure it out from video and websites as they were only telling you how to read the receiver signal or it was for autonomous and not what to do, but with the help of people on here it some fell into place.

it gets a bit more complex when controlling the speed of a motor but now i got a working file, i just cut and paste. I think for the cost of one £3, it worth a play and if you or anyone else do get one and get stuck, we'll help out :) cheers

Tim
Title: Re: Home Made PCB Board
Post by: The Old Fart on February 04, 2018, 08:18:14 pm
if (rcvalue>1500) digital.write(leds,HIGH);
else digital.write(leds,LOW);

somit like that.
Title: Re: Home Made PCB Board
Post by: The Old Fart on February 04, 2018, 08:26:53 pm
Liking that Tim, take a look at this schematic I'm working on in Fritzing.

 Arduino nano to two shift registers, to rather a lot of mosfets %% All this to control the multitude of led's I have installed, we've discussed this on the arduino forum and I think this is my best way forward. The mosfets are because I have linked leds together and their total current draw is greater than the outputs of any of the arduino boards.

Now all I have to do is finish it off and then turn it into a pcb :}

Think you need resistors in each gate leg. just in case mosfet voltage backfeed to control chip.
A resistor is also needed to pull the gate voltage below threshold switch on.
Your switching the positive side on mosfet, so you need a negative voltage to make mosfet conduct.
I have made boards with uln2803a to interface between arduino and mosfet.
the 2803 will take 500ma per leg, 4Amps per chip. use without mosfet to switch negative side.

hope that makes sense, ...
Title: Re: Home Made PCB Board
Post by: Brian60 on February 05, 2018, 08:52:28 am
The first part made sense - I have not yet put in the resistors to stop voltage backfeed ( I did say I was still working on it) The circuit is to give me a rough layout and to see what quantity of parts I need.

I didn't understand the part about needing a negative voltage to make the mosfet conduct? So far I have followed online descriptions of similar circuits -  could you explain a little more?

This is the diagram I am working off of, as you see it shows a resistor in the gate line. Are you saying I also need the one shown in the diagram between drain and the VDD, could you explain this part to me if so.
Title: Re: Home Made PCB Board
Post by: The Old Fart on February 05, 2018, 10:22:24 am
that mosfet is switching the negative rail. Your drawing shows switching the positive rail.
Title: Re: Home Made PCB Board
Post by: timgarrod on February 07, 2018, 09:20:01 pm
really please,

just had it running for about 30 min. All running leds, smoker (24 inverter ) and fan and all stone cold and no majic black smoke :)