Go Down

Topic: TANK (Read 1 time) previous topic - next topic

hadjisra

Hey I built a robot on some tank treads and used this circuit

and this code
int dcr = 11;
int dcl = 8;


void setup()
{
  pinMode(dcr, OUTPUT);
  pinMode(dcl, OUTPUT);

}

void loop()
{
  digitalWrite(dcr, HIGH);
  digitalWrite(dcl, HIGH);



}

All i want it do do is drive forward and turn for my curcuit the 5v the supplies the transistors is the 5v pin and the other two are pins 11 and 8 so my problem is my arduino isnt giving off 5v on pin 11 and 8 how do i fix this

hadjisra

wait my code didnt show up here it is?

Grumpy_Mike

Quote
Hey I built a robot on some tank treads and used this circuit

Well that looks like code not a circuit.
When posting code select it and hit the #icon.

So can you actually post a circuit diagram of how you have wired it up?
That file you posted means nothing to my machine.

graynomad

What the heck is a .fz file and a .pictClipping file?

Please post using common formats.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com


Go Up